Interface SequenceRuleEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply SequenceRuleEnablers to
SequenceRules . a SequenceRule with multiple
SequenceRuleEnablers means any positive rule evaluation across the
enablers result in an effective SequenceRule .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSequenceRuleEnablerToSequenceRule(Id sequenceRuleEnablerId, Id sequenceRuleId) Adds an existingSequenceRuleEnablerto aSequenceRule.booleanTests if this user can alter sequence rule enabler/sequence rule mappings.booleanTests if this user can orderSequenceRuleEnablers.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.voidmoveSequenceRuleEnablerAhead(Id sequenceRuleEnablerId, Id sequenceRuleId, Id referenceId) Reorders sequence rule enablers for a sequence rule by moving the specified sequence rule enabler in front of a reference sequence rule enabler.voidmoveSequenceRuleEnablerBehind(Id sequenceRuleEnablerId, Id sequenceRuleId, Id referenceId) Reorders sequence rule enablers for a sequence rule by moving the specified sequence rule enabler behind a reference sequence rule enabler.voidorderSequenceRuleEnablers(Id[] sequenceRuleEnablerIds, Id sequenceRuleId) Reorders a set of sequence rule enablers for a sequence rule.voidunassignSequenceRuleEnablerFromSequenceRule(Id sequenceRuleEnablerId, Id sequenceRuleId) Removes aSequenceRuleEnablerfrom aSequenceRule.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
-
getBankId
Id getBankId()Gets theBankIdassociated with this session.- Returns:
- the
Bank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBank
Gets theBankassociated with this session.- Returns:
- the bank
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignSequenceRuleEnablers
boolean canAssignSequenceRuleEnablers()Tests if this user can alter sequence rule enabler/sequence rule 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.
-
assignSequenceRuleEnablerToSequenceRule
void assignSequenceRuleEnablerToSequenceRule(Id sequenceRuleEnablerId, Id sequenceRuleId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSequenceRuleEnablerto aSequenceRule.- Parameters:
sequenceRuleEnablerId- theIdof theSequenceRuleEnablersequenceRuleId- theIdof theSequenceRule- Throws:
AlreadyExistsException-sequenceRuleEnablerIdis already applied tosequenceRuleIdNotFoundException-sequenceRuleEnablerIdorsequenceRuleIdnot foundNullArgumentException-sequenceRuleEnablerIdorsequenceRuleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSequenceRuleEnablerFromSequenceRule
void unassignSequenceRuleEnablerFromSequenceRule(Id sequenceRuleEnablerId, Id sequenceRuleId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSequenceRuleEnablerfrom aSequenceRule.- Parameters:
sequenceRuleEnablerId- theIdof theSequenceRuleEnablersequenceRuleId- theIdof theSequenceRule- Throws:
NotFoundException-sequenceRuleEnablerIdorsequenceRuleIdnot found orsequenceRuleEnablerIdnot applied tosequenceRuleIdNullArgumentException-sequenceRuleEnablerIdorsequenceRuleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceSequenceRuleEnablers
boolean canSequenceSequenceRuleEnablers()Tests if this user can orderSequenceRuleEnablers. 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:
falseifSequenceRuleEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveSequenceRuleEnablerAhead
void moveSequenceRuleEnablerAhead(Id sequenceRuleEnablerId, Id sequenceRuleId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders sequence rule enablers for a sequence rule by moving the specified sequence rule enabler in front of a reference sequence rule enabler.- Parameters:
sequenceRuleEnablerId- theIdof aSequenceRuleEnablersequenceRuleId- theIdof aSequenceRulereferenceId- the reference sequence rule enablerId- Throws:
NotFoundException-sequenceRuleEnablerId, sequenceRuleId, orreferenceIdnot found or,sequenceRuleEnablerIdorreferenceIdnot related tosequenceRuleIdNullArgumentException-sequenceRuleEnablerId, sequenceRuleId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveSequenceRuleEnablerBehind
void moveSequenceRuleEnablerBehind(Id sequenceRuleEnablerId, Id sequenceRuleId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders sequence rule enablers for a sequence rule by moving the specified sequence rule enabler behind a reference sequence rule enabler.- Parameters:
sequenceRuleEnablerId- theIdof aSequenceRuleEnablersequenceRuleId- theIdof aSequenceRulereferenceId- the reference sequence rule enablerId- Throws:
NotFoundException-sequenceRuleEnablerId, sequenceRuleId, orreferenceIdnot found or,sequenceRuleEnablerIdorreferenceIdnot related tosequenceRuleIdNullArgumentException-sequenceRuleEnablerId, sequenceRuleId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderSequenceRuleEnablers
void orderSequenceRuleEnablers(Id[] sequenceRuleEnablerIds, Id sequenceRuleId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of sequence rule enablers for a sequence rule.- Parameters:
sequenceRuleEnablerIds- theIdsfor a set ofSequenceRuleEnablerssequenceRuleId- theIdof aSequenceRule- Throws:
NotFoundException-sequenceRuleIdnot found or, ansequenceRuleEnablerIdnot related tosequenceRuleIdNullArgumentException-sequenceRuleEnablerIdsorsequenceRuleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-