Interface IssueConstrainerEnablerRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface IssueConstrainerEnablerRuleApplicationSession extends OsidSession

This session provides methods to apply IssueConstrainerEnablers to IssueConstrainers. Multiple IssueConstrainerEnablers applied to an IssueConstrainer may be sequenced such that the first positive evaluation results in the IssueConstrainerEnabler used.

  • Method Details

    • getOublietteId

      Id getOublietteId()
      Gets the Oubliette Id associated with this session.
      Returns:
      the Oubliette Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getOubliette

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

      boolean canAssignIssueConstrainerEnablers()
      Tests if this user can alter issue constrainer enabler/issue 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.
    • assignIssueConstrainerEnablerToIssueConstrainer

      void assignIssueConstrainerEnablerToIssueConstrainer(Id issueConstrainerEnablerId, Id issueConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing IssueConstrainerEnabler to an IssueConstrainer.
      Parameters:
      issueConstrainerEnablerId - the Id of the IssueConstrainerEnabler
      issueConstrainerId - the Id of the IssueConstrainer
      Throws:
      AlreadyExistsException - issueConstrainerEnablerId already applied to issueConstrainerId
      NotFoundException - issueConstrainerEnablerId or issueConstrainerId not found
      NullArgumentException - issueConstrainerEnablerId or issueConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignIssueConstrainerEnablerFromIssueConstrainer

      void unassignIssueConstrainerEnablerFromIssueConstrainer(Id issueConstrainerEnablerId, Id issueConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing IssueConstrainerEnabler from an IssueConstrainer.
      Parameters:
      issueConstrainerEnablerId - the Id of the IssueConstrainerEnabler
      issueConstrainerId - the Id of the IssueConstrainer
      Throws:
      NotFoundException - issueConstrainerEnablerId or issueConstrainerId not found or issueConstrainerEnablerId already applied to issueConstrainerId
      NullArgumentException - issueConstrainerEnablerId or issueConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceIssueConstrainerEnablers

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

      void moveIssueConstrainerEnablerAhead(Id issueConstrainerEnablerId, Id issueConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders issue constrainer enablers for an issue constrainer by moving the specified issue constrainer enabler in front of a reference issue constrainer enabler.
      Parameters:
      issueConstrainerEnablerId - the Id of the IssueConstrainerEnabler
      issueConstrainerId - the Id of the IssueConstrainer
      referenceId - the reference issue constrainer enabler Id
      Throws:
      NotFoundException - issueConstrainerEnablerId issueConstrainerId, or referenceId not found or, issueConstrainerEnablerId or referenceId not related to issueConstrainerId
      NullArgumentException - issueConstrainerEnablerId, issueConstrainerId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • moveIssueConstrainerEnablerBehind

      void moveIssueConstrainerEnablerBehind(Id issueConstrainerEnablerId, Id issueConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders issue constrainer enablers for an issue constrainer by moving the specified issue constrainer enabler behind a reference issue constrainer enabler.
      Parameters:
      issueConstrainerEnablerId - the Id of the IssueConstrainerEnabler
      issueConstrainerId - the Id of the IssueConstrainer
      referenceId - the reference issue constrainer Id
      Throws:
      NotFoundException - issueConstrainerEnablerId issueConstrainerId, or referenceId not found or, issueConstrainerEnablerId or referenceId not related to issueConstrainerId
      NullArgumentException - issueConstrainerEnablerId, issueConstrainerId, or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • orderIssueConstrainerEnablers

      void orderIssueConstrainerEnablers(Id[] issueConstrainerEnablerIds, Id issueConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Reorders a set of issue constrainer enablers for an issue constrainer.
      Parameters:
      issueConstrainerEnablerIds - the Ids for a set of IssueConstrainerEnablers
      issueConstrainerId - the Id of the IssueConstrainer
      Throws:
      NotFoundException - issueConstrainerId not found or, an issueConstrainerEnablerId not related to issueConstrainerId
      NullArgumentException - issueConstrainerEnablerIds or issueConstrainerId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.