Interface DispatchConstrainerEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface DispatchConstrainerEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply DispatchConstrainerEnablers to DispatchConstrainers . Multiple DispatchConstrainerEnablers applied to an DispatchConstrainer may be sequenced such that the first positive evaluation results in the DispatchConstrainerEnabler 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.
    • canAssignDispatchConstrainerEnablers

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

      void assignDispatchConstrainerEnablerToDispatchConstrainer(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing DispatchConstrainerEnabler to a DispatchConstrainer .
      Parameters:
      dispatchConstrainerEnablerId - the Id of the DispatchConstrainerEnabler
      dispatchConstrainerId - the Id of the DispatchConstrainer
      Throws:
      AlreadyExistsException - dispatchConstrainerEnablerId already applied to dispatchConstrainerId
      NotFoundException - dispatchConstrainerEnablerId or dispatchConstrainerId not found
      NullArgumentException - dispatchConstrainerEnablerId or dispatchConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignDispatchConstrainerEnablerFromDispatchConstrainer

      void unassignDispatchConstrainerEnablerFromDispatchConstrainer(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing DispatchConstrainerEnabler from a DispatchConstrainer .
      Parameters:
      dispatchConstrainerEnablerId - the Id of the DispatchConstrainerEnabler
      dispatchConstrainerId - the Id of the DispatchConstrainer
      Throws:
      NotFoundException - dispatchConstrainerEnablerId or dispatchConstrainerId not found or dispatchConstrainerEnablerId already applied to dispatchConstrainerId
      NullArgumentException - dispatchConstrainerEnablerId or dispatchConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceDispatchConstrainerEnablers

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

      void moveDispatchConstrainerEnablerAhead(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders dispatch constrainer enablers for a dispatch constrainer by moving the specified dispatch constrainer enabler in front of a reference dispatch constrainer enabler.
      Parameters:
      dispatchConstrainerEnablerId - the Id of the DispatchConstrainerEnabler
      dispatchConstrainerId - the Id of the DispatchConstrainer
      referenceId - the reference dispatch constrainer enabler Id
      Throws:
      NotFoundException - dispatchConstrainerEnablerId dispatchConstrainerId , or referenceId not found or, dispatchConstrainerEnablerId or referenceId not related to dispatchConstrainerId
      NullArgumentException - dispatchConstrainerEnablerId, dispatchConstrainerId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveDispatchConstrainerEnablerBehind

      void moveDispatchConstrainerEnablerBehind(Id dispatchConstrainerEnablerId, Id dispatchConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders dispatch constrainer enablers for a dispatch constrainer by moving the specified dispatch constrainer enabler behind a reference dispatch constrainer enabler.
      Parameters:
      dispatchConstrainerEnablerId - the Id of the DispatchConstrainerEnabler
      dispatchConstrainerId - the Id of the DispatchConstrainer
      referenceId - the reference dispatch constrainer Id
      Throws:
      NotFoundException - dispatchConstrainerEnablerId dispatchConstrainerId , or referenceId not found or, dispatchConstrainerEnablerId or referenceId not related to dispatchConstrainerId
      NullArgumentException - dispatchConstrainerEnablerId, dispatchConstrainerId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderDispatchConstrainerEnablers

      void orderDispatchConstrainerEnablers(Id[] dispatchConstrainerEnablerIds, Id dispatchConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of dispatch constrainer enablers for a dispatch constrainer.
      Parameters:
      dispatchConstrainerEnablerIds - the Ids for a set of DispatchConstrainerEnablers
      dispatchConstrainerId - the Id of the DispatchConstrainer
      Throws:
      NotFoundException - dispatchConstrainerId not found or, a dispatchConstrainerEnablerId not related to dispatchConstrainerId
      NullArgumentException - dispatchConstrainerEnablerIds or dispatchConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.