Interface DispatchProcessorEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface DispatchProcessorEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply DispatchProcessorEnablers to DispatchProcessors . Multiple DispatchProcessorEnablers applied to an DispatchProcessor may be sequenced such that the first positive evaluation results in the DispatchProcessorEnabler used.

  • Method Details

    • getPublisherId

      Id getPublisherId()
      Gets the Publisher Id associated with this session.
      Returns:
      the Publisher Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getPublisher

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

      boolean canAssignDispatchProcessorEnablers()
      Tests if this user can alter dispatch processor enabler/dispatch 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.
    • assignDispatchProcessorEnablerToDispatchProcessor

      void assignDispatchProcessorEnablerToDispatchProcessor(Id dispatchProcessorEnablerId, Id dispatchProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing DispatchProcessorEnabler to a DispatchProcessor .
      Parameters:
      dispatchProcessorEnablerId - the Id of the DispatchProcessorEnabler
      dispatchProcessorId - the Id of the DispatchProcessor
      Throws:
      AlreadyExistsException - dispatchProcessorEnablerId already applied to dispatchProcessorId
      NotFoundException - dispatchProcessorEnablerId or dispatchProcessorId not found
      NullArgumentException - dispatchProcessorEnablerId or dispatchProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignDispatchProcessorEnablerFromDispatchProcessor

      void unassignDispatchProcessorEnablerFromDispatchProcessor(Id dispatchProcessorEnablerId, Id dispatchProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing DispatchProcessorEnabler from a DispatchProcessor .
      Parameters:
      dispatchProcessorEnablerId - the Id of the DispatchProcessorEnabler
      dispatchProcessorId - the Id of the DispatchProcessor
      Throws:
      NotFoundException - dispatchProcessorEnablerId or dispatchProcessorId not found or dispatchProcessorEnablerId already applied to dispatchProcessorId
      NullArgumentException - dispatchProcessorEnablerId or dispatchProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceDispatchProcessorEnablers

      boolean canSequenceDispatchProcessorEnablers()
      Tests if this user can order DispatchProcessorEnablers . 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 DispatchProcessorEnabler ordering is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • moveDispatchProcessorEnablerAhead

      void moveDispatchProcessorEnablerAhead(Id dispatchProcessorEnablerId, Id dispatchProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler in front of a reference dispatch processor enabler.
      Parameters:
      dispatchProcessorEnablerId - the Id of the DispatchProcessorEnabler
      dispatchProcessorId - the Id of the DispatchProcessor
      referenceId - the reference dispatch processor enabler Id
      Throws:
      NotFoundException - dispatchProcessorEnablerId dispatchProcessorId , or referenceId not found or, dispatchProcessorEnablerId or referenceId not related to dispatchProcessorId
      NullArgumentException - dispatchProcessorEnablerId, dispatchProcessorId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveDispatchProcessorEnablerBehind

      void moveDispatchProcessorEnablerBehind(Id dispatchProcessorEnablerId, Id dispatchProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders dispatch processor enablers for a dispatch processor by moving the specified dispatch processor enabler behind a reference dispatch processor enabler.
      Parameters:
      dispatchProcessorEnablerId - the Id of the DispatchProcessorEnabler
      dispatchProcessorId - the Id of the DispatchProcessor
      referenceId - the reference dispatch processor Id
      Throws:
      NotFoundException - dispatchProcessorEnablerId dispatchProcessorId , or referenceId not found or, dispatchProcessorEnablerId or referenceId not related to dispatchProcessorId
      NullArgumentException - dispatchProcessorEnablerId, dispatchProcessorId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderDispatchProcessorEnablers

      void orderDispatchProcessorEnablers(Id[] dispatchProcessorEnablerIds, Id dispatchProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of dispatch processor enablers for a dispatch processor.
      Parameters:
      dispatchProcessorEnablerIds - the Ids for a set of DispatchProcessorEnablers
      dispatchProcessorId - the Id of the DispatchProcessor
      Throws:
      NotFoundException - dispatchProcessorId not found or, a dispatchProcessorEnablerId not related to dispatchProcessorId
      NullArgumentException - dispatchProcessorEnablerIds or dispatchProcessorId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.