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.
Like all OsidSessions,
HoldEnablerRuleApplicationSessions are dedicated to single processing
threads and a single authenticated user.
-
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, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
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.
-