Interface QueueProcessorEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface QueueProcessorEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply QueueProcessorEnablers to QueueProcessors. Multiple QueueProcessorEnablers applied to an QueueProcessor may be sequenced such that the first positive evaluation results in the QueueProcessorEnabler used.

  • Method Details

    • getDistributorId

      Id getDistributorId()
      Gets the Distributor Id associated with this session.
      Returns:
      the Distributor Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getDistributor

      Gets the Distributor associated with this session.
      Returns:
      the distributor
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canAssignQueueProcessorEnablers

      boolean canAssignQueueProcessorEnablers()
      Tests if this user can alter queue processor enabler/queue processor mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
      Returns:
      false if mapping is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • assignQueueProcessorEnablerToQueueProcessor

      void assignQueueProcessorEnablerToQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing QueueProcessorEnabler to a QueueProcessor.
      Parameters:
      queueProcessorEnablerId - the Id of the QueueProcessorEnabler
      queueProcessorId - the Id of the QueueProcessor
      Throws:
      AlreadyExistsException - queueProcessorEnablerId already applied to queueProcessorId
      NotFoundException - queueProcessorEnablerId or queueProcessorId not found
      NullArgumentException - queueProcessorEnablerId or queueProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignQueueProcessorEnablerFromQueueProcessor

      void unassignQueueProcessorEnablerFromQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing QueueProcessorEnabler from a QueueProcessor.
      Parameters:
      queueProcessorEnablerId - the Id of the QueueProcessorEnabler
      queueProcessorId - the Id of the QueueProcessor
      Throws:
      NotFoundException - queueProcessorEnablerId or queueProcessorId not found or queueProcessorEnablerId already applied to queueProcessorId
      NullArgumentException - queueProcessorEnablerId or queueProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceQueueProcessorEnablers

      boolean canSequenceQueueProcessorEnablers()
      Tests if this user can order QueueProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.
      Returns:
      false if QueueProcessorEnabler ordering is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • moveQueueProcessorEnablerAhead

      void moveQueueProcessorEnablerAhead(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders queue processor enablers for a queue processor by moving the specified queue processor enabler in front of a reference queue processor enabler.
      Parameters:
      queueProcessorEnablerId - the Id of the QueueProcessorEnabler
      queueProcessorId - the Id of the QueueProcessor
      referenceId - the reference queue processor enabler Id
      Throws:
      NotFoundException - queueProcessorEnablerId queueProcessorId, or referenceId not found or, queueProcessorEnablerId or referenceId not related to queueProcessorId
      NullArgumentException - queueProcessorEnablerId, queueProcessorId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveQueueProcessorEnablerBehind

      void moveQueueProcessorEnablerBehind(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders queue processor enablers for a queue processor by moving the specified queue processor enabler behind a reference queue processor enabler.
      Parameters:
      queueProcessorEnablerId - the Id of the QueueProcessorEnabler
      queueProcessorId - the Id of the QueueProcessor
      referenceId - the reference queue processor Id
      Throws:
      NotFoundException - queueProcessorEnablerId queueProcessorId, or referenceId not found or, queueProcessorEnablerId or referenceId not related to queueProcessorId
      NullArgumentException - queueProcessorEnablerId, queueProcessorId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderQueueProcessorEnablers

      void orderQueueProcessorEnablers(Id[] queueProcessorEnablerIds, Id queueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of queue processor enablers for a queue processor.
      Parameters:
      queueProcessorEnablerIds - the Ids for a set of QueueProcessorEnablers
      queueProcessorId - the Id of the QueueProcessor
      Throws:
      NotFoundException - queueProcessorId not found or, a queueProcessorEnablerId not related to queueProcessorId
      NullArgumentException - queueProcessorEnablerIds or queueProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.