Interface HoldEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply HoldEnablers to
Holds . A Hold with multiple HoldEnablers means any
positive rule evaluation across the enablers result in an effective
Hold .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignHoldEnablerToHold(Id holdEnablerId, Id holdId) Adds an existingHoldEnablerto aHold.booleanTests if this user can alter hold enabler/hold mappings.booleanTests if this user can orderHoldEnablers.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidmoveHoldEnablerAhead(Id holdEnablerId, Id holdId, Id referenceId) Reorders hold enablers for a hold by moving the specified hold enabler in front of a reference hold enabler.voidmoveHoldEnablerBehind(Id holdEnablerId, Id holdId, Id referenceId) Reorders hold enablers for a hold by moving the specified hold enabler behind a reference hold enabler.voidorderHoldEnablers(Id[] holdEnablerId, Id holdId) Reorders a set of hold enablers for a hold.voidunassignHoldEnablerFromHold(Id holdEnablerId, Id holdId) Removes aHoldEnablerfrom aHold.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.
-
canAssignHoldEnablers
boolean canAssignHoldEnablers()Tests if this user can alter hold enabler/hold 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.
-
assignHoldEnablerToHold
void assignHoldEnablerToHold(Id holdEnablerId, Id holdId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingHoldEnablerto aHold.- Parameters:
holdEnablerId- theIdof theHoldEnablerholdId- theIdof theHold- Throws:
AlreadyExistsException-holdEnablerIdis already applied toholdIdNotFoundException-holdEnablerIdorholdIdnot foundNullArgumentException-holdEnablerIdorholdIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignHoldEnablerFromHold
void unassignHoldEnablerFromHold(Id holdEnablerId, Id holdId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aHoldEnablerfrom aHold.- Parameters:
holdEnablerId- theIdof theHoldEnablerholdId- theIdof theHold- Throws:
NotFoundException-holdEnablerIdorholdIdnot found orholdEnablerIdis not applied toholdIdNullArgumentException-holdEnablerIdorholdIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceHoldEnablers
boolean canSequenceHoldEnablers()Tests if this user can orderHoldEnablers. 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:
falseifHoldEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveHoldEnablerAhead
void moveHoldEnablerAhead(Id holdEnablerId, Id holdId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders hold enablers for a hold by moving the specified hold enabler in front of a reference hold enabler.- Parameters:
holdEnablerId- theIdof aHoldEnablerholdId- theIdof aHoldreferenceId- the reference hold enablerId- Throws:
NotFoundException-holdEnablerId, holdId, orreferenceIdnot found or,holdEnablerIdorreferenceIdnot related toholdIdNullArgumentException-holdEnablerId, holdId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveHoldEnablerBehind
void moveHoldEnablerBehind(Id holdEnablerId, Id holdId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders hold enablers for a hold by moving the specified hold enabler behind a reference hold enabler.- Parameters:
holdEnablerId- theIdof aHoldEnablerholdId- theIdof aHoldreferenceId- the reference hold enablerId- Throws:
NotFoundException-holdEnablerId, holdId, orreferenceIdnot found or,holdEnablerIdorreferenceIdnot related toholdIdNullArgumentException-holdEnablerId, holdId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderHoldEnablers
void orderHoldEnablers(Id[] holdEnablerId, Id holdId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of hold enablers for a hold.- Parameters:
holdEnablerId- theIdsfor a set ofHoldEnablersholdId- theIdof aHold- Throws:
NotFoundException-holdIdnot found or, aholdnEnablerIdnot related toholdIdNullArgumentException-holdEnablerIdsorholdIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-