Interface IssueConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply IssueConstrainers to
Issues . Multiple IssueConstrainers applied to an
Issue may be sequenced such that the first positive evaluation results in
the IssueConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueConstrainerToIssue(Id issueConstrainerId, Id issueId) Adds an existingIssueConstrainerto anIssue.booleanTests if this user can alter issue constrainer/issue mappings.booleanTests if this user can orderIssueConstrainers.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidmoveIssueConstrainerAhead(Id issueConstrainerId, Id issueId, Id referenceId) Reorders issue constrainers for an issue by moving the specified issue constrainer in front of a reference issue constrainer.voidmoveIssueConstrainerBehind(Id issueConstrainerId, Id issueId, Id referenceId) Reorders issue constrainers for an issue by moving the specified issue constrainer behind a reference issue constrainer.voidorderIssueConstrainers(Id[] issueConstrainerIds, Id issueId) Reorders a set of issue constrainers for an issue.voidunassignIssueConstrainerFromIssue(Id issueConstrainerId, Id issueId) Removes an existingIssueConstrainerfrom anIssue.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getOublietteId
Id getOublietteId()Gets theOublietteIdassociated with this session.- Returns:
- the
Oubliette Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOubliette
Gets theOublietteassociated with this session.- Returns:
- the oubliette
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignIssueConstrainers
boolean canAssignIssueConstrainers()Tests if this user can alter issue constrainer/issue 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignIssueConstrainerToIssue
void assignIssueConstrainerToIssue(Id issueConstrainerId, Id issueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueConstrainerto anIssue.- Parameters:
issueConstrainerId- theIdof theIssueConstrainerissueId- theIdof theIssue- Throws:
AlreadyExistsException-issueConstrainerIdalready applied toissueIdNotFoundException-issueConstrainerIdorissueIdnot foundNullArgumentException-issueConstrainerIdorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueConstrainerFromIssue
void unassignIssueConstrainerFromIssue(Id issueConstrainerId, Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingIssueConstrainerfrom anIssue.- Parameters:
issueConstrainerId- theIdof theIssueConstrainerissueId- theIdof theIssue- Throws:
NotFoundException-issueConstrainerIdorissueIdnot found orissueConstrainerIdalready applied toissueIdNullArgumentException-issueConstrainerIdorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceIssueConstrainers
boolean canSequenceIssueConstrainers()Tests if this user can orderIssueConstrainers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifIssueConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveIssueConstrainerAhead
void moveIssueConstrainerAhead(Id issueConstrainerId, Id issueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders issue constrainers for an issue by moving the specified issue constrainer in front of a reference issue constrainer.- Parameters:
issueConstrainerId- theIdof theIssueConstrainerissueId- theIdof theIssuereferenceId- the reference issue constrainerId- Throws:
NotFoundException-issueConstrainerId, issueId, orreferenceIdnot found or,issueConstrainerIdorreferenceIdnot related toissueIdNullArgumentException-issueConstrainerId, issueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveIssueConstrainerBehind
void moveIssueConstrainerBehind(Id issueConstrainerId, Id issueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders issue constrainers for an issue by moving the specified issue constrainer behind a reference issue constrainer.- Parameters:
issueConstrainerId- theIdof theIssueConstrainerissueId- theIdof theIssuereferenceId- the reference issue constrainerId- Throws:
NotFoundException-issueConstrainerId, issueId, orreferenceIdnot found or,issueConstrainerIdorreferenceIdnot related toissueIdNullArgumentException-issueConstrainerId, issueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderIssueConstrainers
void orderIssueConstrainers(Id[] issueConstrainerIds, Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of issue constrainers for an issue.- Parameters:
issueConstrainerIds- theIdsfor a set ofIssueConstrainersissueId- theIdof theIssue- Throws:
NotFoundException-issueIdnot found or, anissueConstrainerIdnot related toissueIdNullArgumentException-issueConstrainerIdsorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-