Interface DispatchEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface DispatchEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply DispatchEnablers to Dispatches . Multiple DispatchEnablers applied to an Dispatch may be sequenced such that the first positive evaluation results in the DispatchEnablers 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.
    • canAssignDispatchEnablers

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

      void assignDispatchEnablerToDispatch(Id dispatchEnablerId, Id dispatchId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing DispatchEnabler to a Dispatch .
      Parameters:
      dispatchEnablerId - the Id of the DispatchEnabler
      dispatchId - the Id of the Dispatch
      Throws:
      AlreadyExistsException - dispatchEnablerId already applied to dispatchId
      NotFoundException - dispatchEnablerId or dispatchId not found
      NullArgumentException - dispatchEnablerId or dispatchId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignDispatchEnablerFromDispatch

      void unassignDispatchEnablerFromDispatch(Id dispatchEnablerId, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing DispatchEnabler from a Dispatch .
      Parameters:
      dispatchEnablerId - the Id of the DispatchEnabler
      dispatchId - the Id of the Dispatch
      Throws:
      NotFoundException - dispatchEnablerId or dispatchId not found or dispatchEnablerId already applied to dispatchId
      NullArgumentException - dispatchEnablerId or dispatchId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceDispatchEnablers

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

      void moveDispatchEnablerAhead(Id dispatchEnablerId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders dispatch enablers for a dispatch by moving the specified dispatch enabler in front of a reference dispatch enabler.
      Parameters:
      dispatchEnablerId - the Id of the DispatchEnabler
      dispatchId - the Id of the Dispatch
      referenceId - the reference dispatch enabler Id
      Throws:
      NotFoundException - dispatchEnablerId, dispatchId , or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
      NullArgumentException - dispatchEnablerId, dispatchId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveDispatchEnablerBehind

      void moveDispatchEnablerBehind(Id dispatchEnablerId, Id dispatchId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders dispatch enablers for a dispatch by moving the specified dispatch enabler behind a reference dispatch enabler.
      Parameters:
      dispatchEnablerId - the Id of the DispatchEnabler
      dispatchId - the Id of the Dispatch
      referenceId - the reference dispatch enabler Id
      Throws:
      NotFoundException - dispatchEnablerId, dispatchId , or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
      NullArgumentException - dispatchEnablerId, dispatchId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderDispatchEnablers

      void orderDispatchEnablers(Id[] dispatchEnablerIds, Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of dispatch enablers for a dispatch.
      Parameters:
      dispatchEnablerIds - the Ids for a set of DispatchEnablers
      dispatchId - the Id of the Dispatch
      Throws:
      NotFoundException - dispatchEnablerId, dispatchId , or referenceId not found or, dispatchEnablerId or referenceId not related to dispatchId
      NullArgumentException - dispatchEnablerIds, dispatchId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.