Interface ProcessConstrainerOfficeAssignmentSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface ProcessConstrainerOfficeAssignmentSession extends OsidSession

This session provides methods to re-assign ProcessConstrainer to Office mappings. A ProcessConstrainer may appear in multiple Office catalogs and removing the last reference to a ProcessConstrainer is the equivalent of deleting it. Each Office may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a ProcessConstrainer to another Office is not a copy operation (eg: does not change its Id ).

  • Method Details

    • canAssignProcessConstrainers

      boolean canAssignProcessConstrainers()
      Tests if this user can alter process constrainer/office 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. T his is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
      Returns:
      false if mapping is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • canAssignProcessConstrainerToOffice

      boolean canAssignProcessConstrainerToOffice(Id officeId)
      Tests if this user can alter process constrainer/office 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. T his is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.
      Parameters:
      officeId - the Id of the Office
      Returns:
      false if mapping is not authorized, true otherwise
      Throws:
      NullArgumentException - officeId is null
      Compliance:
      mandatory - This method must be implemented.
    • getAssignableOfficeIds

      IdList getAssignableOfficeIds(Id officeId) throws OperationFailedException
      Gets a list of offices including and under the given office node in which any process constrainer can be assigned.
      Parameters:
      officeId - the Id of the Office
      Returns:
      list of assignable office Ids
      Throws:
      NullArgumentException - officeId is null
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getAssignableOfficeIdsForProcessConstrainer

      IdList getAssignableOfficeIdsForProcessConstrainer(Id officeId, Id processConstrainerId) throws OperationFailedException
      Gets a list of offices including and under the given office node in which a specific process constrainer can be assigned.
      Parameters:
      officeId - the Id of the Office
      processConstrainerId - the Id of the ProcessConstrainer
      Returns:
      list of assignable office Ids
      Throws:
      NullArgumentException - officeId or processConstrainerId is null
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • assignProcessConstrainerToOffice

      void assignProcessConstrainerToOffice(Id processConstrainerId, Id officeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing ProcessConstrainer to an Office .
      Parameters:
      processConstrainerId - the Id of the ProcessConstrainer
      officeId - the Id of the Office
      Throws:
      AlreadyExistsException - processConstrainerId is already assigned to officeId
      NotFoundException - processConstrainerId or officeId not found
      NullArgumentException - processConstrainerId or officeId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignProcessConstrainerFromOffice

      void unassignProcessConstrainerFromOffice(Id processConstrainerId, Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes a ProcessConstrainer from an Office .
      Parameters:
      processConstrainerId - the Id of the ProcessConstraienr
      officeId - the Id of the Office
      Throws:
      NotFoundException - processConstrainerId or officeId not found or processConstrainerId not assigned to officeId
      NullArgumentException - processConstrainerId or officeId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • reassignProcessConstrainerToOffice

      void reassignProcessConstrainerToOffice(Id processConstrainerId, Id fromOfficeId, Id toOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Moves a ProcessConstrainer from one Office to another. Mappings to other Offices are unaffected.
      Parameters:
      processConstrainerId - the Id of the ProcessConstrainer
      fromOfficeId - the Id of the current Office
      toOfficeId - the Id of the destination Office
      Throws:
      AlreadyExistsException - processConstrainerId already assigned to toOfficeId
      NotFoundException - processConstrainerId, fromOfficeId , or toOfficeId not found or processConstrainerId not mapped to fromOfficeId
      NullArgumentException - processConstrainerId, fromOfficeId , or toOfficeId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.