Interface IssueProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply IssueProcessors to
Issues . Multiple IssueProcessors applied to an
Issue may be sequenced such that the first positive evaluation results in
the IssueProcessor used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignIssueProcessorToIssue(Id issueProcessorId, Id issueId) Adds an existingIssueProcessorrto anIssue.booleanTests if this user can alter issue processor/issue mappings.booleanTests if this user can orderIssueProcessors.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidmoveIssueProcessorAhead(Id issueProcessorId, Id issueId, Id referenceId) Reorders issue processors for an issue by moving the specified issue processor in front of a reference issue processor.voidmoveIssueProcessorBehind(Id issueProcessorId, Id issueId, Id referenceId) Reorders issue processors for an issue by moving the specified issue processor behind a reference issue processor.voidorderIssueProcessors(Id[] issueProcessorIds, Id issueId) Reorders a set of issue processors for an issue.voidunassignIssueProcessorFromIssue(Id issueProcessorId, Id issueId) Removes an existingIssueProcessorfrom 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.
-
canAssignIssueProcessors
boolean canAssignIssueProcessors()Tests if this user can alter issue processor/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.
-
assignIssueProcessorToIssue
void assignIssueProcessorToIssue(Id issueProcessorId, Id issueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueProcessorrto anIssue.- Parameters:
issueProcessorId- theIdof theIssueProcessorissueId- theIdof theIssue- Throws:
AlreadyExistsException-issueProcessorIdalready applied toissueIdNotFoundException-issueProcessorIdorissueIdnot foundNullArgumentException-issueProcessorIdorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueProcessorFromIssue
void unassignIssueProcessorFromIssue(Id issueProcessorId, Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingIssueProcessorfrom anIssue.- Parameters:
issueProcessorId- theIdof theIssueProcessorissueId- theIdof theIssue- Throws:
NotFoundException-issueProcessorIdorissueIdnot found orissueProcessorIdalready applied toissueIdNullArgumentException-issueProcessorIdorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceIssueProcessors
boolean canSequenceIssueProcessors()Tests if this user can orderIssueProcessors. 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:
falseifIssueProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveIssueProcessorAhead
void moveIssueProcessorAhead(Id issueProcessorId, Id issueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders issue processors for an issue by moving the specified issue processor in front of a reference issue processor.- Parameters:
issueProcessorId- theIdof theIssueProcessorissueId- theIdof theIssuereferenceId- the reference issue processorId- Throws:
NotFoundException-issueProcessorId issueId, orreferenceIdnot found or,issueProcessorIdorreferenceIdnot related toissueIdNullArgumentException-issueProcessorId, issueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveIssueProcessorBehind
void moveIssueProcessorBehind(Id issueProcessorId, Id issueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders issue processors for an issue by moving the specified issue processor behind a reference issue processor.- Parameters:
issueProcessorId- theIdof theIssueProcessorissueId- theIdof theIssuereferenceId- the reference issue processorId- Throws:
NotFoundException-issueProcessorId, issueId, orreferenceIdnot found or,issueProcessorIdorreferenceIdnot related toissueIdNullArgumentException-issueProcessorId, issueId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderIssueProcessors
void orderIssueProcessors(Id[] issueProcessorIds, Id issueId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of issue processors for an issue.- Parameters:
issueProcessorIds- theIdsfor a set ofIssueProcessorsissueId- theIdof theIssue- Throws:
NotFoundException-issueIdnot found or, anissueProcessorIdnot related toissueIdNullArgumentException-issueProcessorIdsorissueIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-