Interface ProcessEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface ProcessEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply ProcessEnablers to Processs . A Process with multiple ProcessEnablers means any positive rule evaluation across the constrainers result in an accessible Process .

  • Method Details

    • getOfficeId

      Id getOfficeId()
      Gets the Office Id associated with this session.
      Returns:
      the Office Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getOffice

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

      boolean canAssignProcessEnablers()
      Tests if this user can alter process enabler/process 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.
    • assignProcessEnablerToProcess

      void assignProcessEnablerToProcess(Id processEnablerId, Id processId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing ProcessEnabler to a Process .
      Parameters:
      processEnablerId - the Id of the ProcessEnabler
      processId - the Id of the Process
      Throws:
      AlreadyExistsException - processEnablerId is already applied to processId
      NotFoundException - processEnablerId or processId not found
      NullArgumentException - processEnablerId or processId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignProcessEnablerFromProcess

      void unassignProcessEnablerFromProcess(Id processEnablerId, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes a ProcessEnabler from a Process .
      Parameters:
      processEnablerId - the Id of the ProcessEnabler
      processId - the Id of the Process
      Throws:
      NotFoundException - processEnablerId or processId not found or processEnablerId not applied to processId
      NullArgumentException - processEnablerId or processId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceProcessEnablers

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

      void moveProcessEnablerAhead(Id processEnablerId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders process enablers for a process by moving the specified process enabler in front of a reference process enabler.
      Parameters:
      processEnablerId - the Id of a ProcessEnabler
      processId - the Id of a Process
      referenceId - the reference process enabler Id
      Throws:
      NotFoundException - processEnablerId, processId , or referenceId not found or, processEnablerId or referenceId not related to processId
      NullArgumentException - processEnablerId, processId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveProcessEnablerBehind

      void moveProcessEnablerBehind(Id processEnablerId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders process enablers for a process by moving the specified process enabler behind a reference process enabler.
      Parameters:
      processEnablerId - the Id of a ProcessEnabler
      processId - the Id of a Process
      referenceId - the reference process enabler Id
      Throws:
      NotFoundException - processEnablerId, processId , or referenceId not found or, processEnablerId or referenceId not related to processId
      NullArgumentException - processEnablerId, processId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderProcessEnablers

      void orderProcessEnablers(Id[] processEnablerIds, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of process enablers for a process.
      Parameters:
      processEnablerIds - the Ids for a set of ProcessEnablers
      processId - the Id of a Process
      Throws:
      NotFoundException - processId not found or, an processEnablerId not related to processId
      NullArgumentException - processEnabelrIds or processId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.