Interface IssueEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply IssueEnablers to
Issues . Multiple IssueEnablers applied to an Issue may
be sequenced such that the first positive evaluation results in the
IssueEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueEnablerToIssue(Id issueEnablerId, Id issueId) Adds an existingIssueEnablerto anIssue.booleanTests if this user can alter issue enabler/issue mappings.booleanTests if this user can orderIssueEnablers.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidmoveIssueEnablerAhead(Id issueEnablerId, Id issueId, Id referenceId) Reorders issue enablers for an issue by moving the specified issue enabler in front of a reference issue enabelrs.voidmoveIssueEnablerBehind(Id issueEnablerId, Id issueId, Id referenceId) Reorders issue enablers for an issue by moving the specified issue enabler behind a reference issue enabler.voidorderIssueEnablers(Id[] issueEnablerIds, Id issueId) Reorders a set of issue enablers for an issue.voidunassignIssueEnablerFromIssue(Id issueEnablerId, Id issueId) Removes an existingIssueEnablerfrom 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.
-
canAssignIssueEnablers
boolean canAssignIssueEnablers()Tests if this user can alter issue enabler/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.
-
assignIssueEnablerToIssue
void assignIssueEnablerToIssue(Id issueEnablerId, Id issueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueEnablerto anIssue.- Parameters:
issueEnablerId- theIdof theIssueEnablerissueId- theIdof theIssue- Throws:
AlreadyExistsException-issueEnablerIdalready applied toissueIdNotFoundException-issueEnablerIdorissueIdnot foundNullArgumentException-issueEnablerIdorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueEnablerFromIssue
void unassignIssueEnablerFromIssue(Id issueEnablerId, Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingIssueEnablerfrom anIssue.- Parameters:
issueEnablerId- theIdof theIssueEnablerissueId- theIdof theIssue- Throws:
NotFoundException-issueEnablerIdorissueIdnot found orissueEnablerIdalready applied toissueIdNullArgumentException-issueEnablerIdorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceIssueEnablers
boolean canSequenceIssueEnablers()Tests if this user can orderIssueEnablers. 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:
falseifIssueEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveIssueEnablerAhead
void moveIssueEnablerAhead(Id issueEnablerId, Id issueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders issue enablers for an issue by moving the specified issue enabler in front of a reference issue enabelrs.- Parameters:
issueEnablerId- theIdof theIssueEnablerissueId- theIdof theIssuereferenceId- the reference issue enablerId- Throws:
NotFoundException-issueEnablerId, issueId, orreferenceIdnot found or,issueEnablerIdorreferenceIdnot related toissueIdNullArgumentException-issueEnablerId, issueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveIssueEnablerBehind
void moveIssueEnablerBehind(Id issueEnablerId, Id issueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders issue enablers for an issue by moving the specified issue enabler behind a reference issue enabler.- Parameters:
issueEnablerId- theIdof theIssueEnablerissueId- theIdof theIssuereferenceId- the reference issue enablerId- Throws:
NotFoundException-issueEnablerId, issueId, orreferenceIdnot found or,issueEnablerIdorreferenceIdnot related toissueIdNullArgumentException-issueEnablerId, issueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderIssueEnablers
void orderIssueEnablers(Id[] issueEnablerIds, Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of issue enablers for an issue.- Parameters:
issueEnablerIds- theIdsfor a set ofIssueEnablersissueId- theIdof theIssue- Throws:
NotFoundException-issueIdnot found or, anissueEnablerIdnot related toissueIdNullArgumentException-issueEnablerIdsorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-