Interface IssueConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 Summary
Modifier and TypeMethodDescriptionvoidassignIssueConstrainerEnablerToIssueConstrainer(Id issueConstrainerEnablerId, Id issueConstrainerId) Adds an existingIssueConstrainerEnablerto anIssueConstrainer.booleanTests if this user can alter issue constrainer enabler/issue constrainer mappings.booleanTests if this user can orderIssueConstrainerEnablers.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidmoveIssueConstrainerEnablerAhead(Id issueConstrainerEnablerId, Id issueConstrainerId, Id referenceId) Reorders issue constrainer enablers for an issue constrainer by moving the specified issue constrainer enabler in front of a reference issue constrainer enabler.voidmoveIssueConstrainerEnablerBehind(Id issueConstrainerEnablerId, Id issueConstrainerId, Id referenceId) Reorders issue constrainer enablers for an issue constrainer by moving the specified issue constrainer enabler behind a reference issue constrainer enabler.voidorderIssueConstrainerEnablers(Id[] issueConstrainerEnablerIds, Id issueConstrainerId) Reorders a set of issue constrainer enablers for an issue constrainer.voidunassignIssueConstrainerEnablerFromIssueConstrainer(Id issueConstrainerEnablerId, Id issueConstrainerId) Removes an existingIssueConstrainerEnablerfrom anIssueConstrainer.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.
-
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 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.
-
assignIssueConstrainerEnablerToIssueConstrainer
void assignIssueConstrainerEnablerToIssueConstrainer(Id issueConstrainerEnablerId, Id issueConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingIssueConstrainerEnablerto anIssueConstrainer.- Parameters:
issueConstrainerEnablerId- theIdof theIssueConstrainerEnablerissueConstrainerId- theIdof theIssueConstrainer- Throws:
AlreadyExistsException-issueConstrainerEnablerIdalready applied toissueConstrainerIdNotFoundException-issueConstrainerEnablerIdorissueConstrainerIdnot foundNullArgumentException-issueConstrainerEnablerIdorissueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignIssueConstrainerEnablerFromIssueConstrainer
void unassignIssueConstrainerEnablerFromIssueConstrainer(Id issueConstrainerEnablerId, Id issueConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingIssueConstrainerEnablerfrom anIssueConstrainer.- Parameters:
issueConstrainerEnablerId- theIdof theIssueConstrainerEnablerissueConstrainerId- theIdof theIssueConstrainer- Throws:
NotFoundException-issueConstrainerEnablerIdorissueConstrainerIdnot found orissueConstrainerEnablerIdalready applied toissueConstrainerIdNullArgumentException-issueConstrainerEnablerIdorissueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceIssueConstrainerEnablers
boolean canSequenceIssueConstrainerEnablers()Tests if this user can orderIssueConstrainerEnablers. 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:
falseifIssueConstrainerEnablerordering is not authorized,trueotherwise- 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- theIdof theIssueConstrainerEnablerissueConstrainerId- theIdof theIssueConstrainerreferenceId- the reference issue constrainer enablerId- Throws:
NotFoundException-issueConstrainerEnablerId issueConstrainerId, orreferenceIdnot found or,issueConstrainerEnablerIdorreferenceIdnot related toissueConstrainerIdNullArgumentException-issueConstrainerEnablerId, issueConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- 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- theIdof theIssueConstrainerEnablerissueConstrainerId- theIdof theIssueConstrainerreferenceId- the reference issue constrainerId- Throws:
NotFoundException-issueConstrainerEnablerId issueConstrainerId, orreferenceIdnot found or,issueConstrainerEnablerIdorreferenceIdnot related toissueConstrainerIdNullArgumentException-issueConstrainerEnablerId, issueConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- 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- theIdsfor a set ofIssueConstrainerEnablersissueConstrainerId- theIdof theIssueConstrainer- Throws:
NotFoundException-issueConstrainerIdnot found or, anissueConstrainerEnablerIdnot related toissueConstrainerIdNullArgumentException-issueConstrainerEnablerIdsorissueConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-