Interface HoldEnablerLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving HoldEnablers .
This session defines views that offer differing behaviors when retrieving multiple objects.
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- isolated oubliette view: All hold enabler methods in this session
operate, retrieve and pertain to hold enablers defined explicitly in
the current oubliette. Using an isolated view is useful for managing
HoldEnablerswith theHoldEnablerAdminSession. - federated oubliette view: All hold enabler methods in this session operate, retrieve and pertain to all hold enablers defined in this oubliette and any other hold enablers implicitly available in this oubliette through oubliette inheritence.
- active hold enabler view: All hold enabler lookup methods return active hold enablers.
- any active hold enabler view: Hold enablers of any active or inactive status are returned from methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performHoldEnablerslookups.getHoldEnabler(Id holdEnablerId) Gets theHoldEnablerspecified by itsId.Gets allHoldEnablers.getHoldEnablersByGenusType(Type holdEnablerGenusType) Gets aHoldEnablerListcorresponding to the given hold enabler genusTypewhich does not include hold enablers of genus types derived from the specifiedType.getHoldEnablersByIds(IdList holdEnablerIds) Gets aHoldEnablerListcorresponding to the givenIdList.getHoldEnablersByParentGenusType(Type holdEnablerGenusType) Gets aHoldEnablerListcorresponding to the given hold enabler genusTypeand include any additional hold enablers with genus types derived from the specifiedType.getHoldEnablersByRecordType(Type holdEnablerRecordType) Gets aHoldEnablerListcontaining the given hold enabler recordType.getHoldEnablersOnDate(DateTime from, DateTime to) Gets aHoldEnablerListthat are effective for the entire given date range inclusive but not confined to the date range for any agent.getHoldEnablersOnDateWithAgent(Id agentId, DateTime from, DateTime to) Gets aHoldEnablerListthat are effective for the entire given date range inclusive but not confined to the date range and evaluated against the given agent.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidOnly active hold enablers are returned by methods in this session.voidAll active and inactive hold enablers are returned by methods in this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theHoldEnablerreturns is desired.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.
-
canLookupHoldEnablers
boolean canLookupHoldEnablers()Tests if this user can performHoldEnablerslookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeHoldEnablerView
void useComparativeHoldEnablerView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryHoldEnablerView
void usePlenaryHoldEnablerView()A complete view of theHoldEnablerreturns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedOublietteView
void useFederatedOublietteView()Federates the view for methods in this session. A federated view will include hold enablers in oubliettes which are children of this oubliette in the oubliette hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedOublietteView
void useIsolatedOublietteView()Isolates the view for methods in this session. An isolated view restricts lookups to this oubliette only.- Compliance:
mandatory- This method is must be implemented.
-
useActiveHoldEnablerView
void useActiveHoldEnablerView()Only active hold enablers are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyStatusHoldEnablerView
void useAnyStatusHoldEnablerView()All active and inactive hold enablers are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getHoldEnabler
HoldEnabler getHoldEnabler(Id holdEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theHoldEnablerspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedHoldEnablermay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aHoldEnablerand retained for compatibility. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
holdEnablerId-Idof theHoldEnabler- Returns:
- the hold enabler
- Throws:
NotFoundException-holdEnablerIdnot foundNullArgumentException-holdEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getHoldEnablersByIds
HoldEnablerList getHoldEnablersByIds(IdList holdEnablerIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aHoldEnablerListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the hold enablers specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleHoldEnablersmay be omitted from the list and may present the elements in any order including returning a unique set. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
holdEnablerIds- the list ofIdsto retrieve- Returns:
- the returned
HoldEnablerlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-holdEnablerIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getHoldEnablersByGenusType
HoldEnablerList getHoldEnablersByGenusType(Type holdEnablerGenusType) throws OperationFailedException, PermissionDeniedException Gets aHoldEnablerListcorresponding to the given hold enabler genusTypewhich does not include hold enablers of genus types derived from the specifiedType. In plenary mode, the returned list contains all known hold enablers or an error results. Otherwise, the returned list may contain only those hold enablers that are accessible through this session. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
holdEnablerGenusType- a hold enabler genus type- Returns:
- the returned
HoldEnablerlist - Throws:
NullArgumentException-holdEnablerGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getHoldEnablersByParentGenusType
HoldEnablerList getHoldEnablersByParentGenusType(Type holdEnablerGenusType) throws OperationFailedException, PermissionDeniedException Gets aHoldEnablerListcorresponding to the given hold enabler genusTypeand include any additional hold enablers with genus types derived from the specifiedType. In plenary mode, the returned list contains all known hold enablers or an error results. Otherwise, the returned list may contain only those hold enablers that are accessible through this session. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
holdEnablerGenusType- a hold enabler genus type- Returns:
- the returned
HoldEnablerlist - Throws:
NullArgumentException-holdEnablerGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getHoldEnablersByRecordType
HoldEnablerList getHoldEnablersByRecordType(Type holdEnablerRecordType) throws OperationFailedException, PermissionDeniedException Gets aHoldEnablerListcontaining the given hold enabler recordType. In plenary mode, the returned list contains all known hold enablers or an error results. Otherwise, the returned list may contain only those hold enablers that are accessible through this session. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
holdEnablerRecordType- a hold enabler record type- Returns:
- the returned
HoldEnablerlist - Throws:
NullArgumentException-holdEnablerRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getHoldEnablersOnDate
HoldEnablerList getHoldEnablersOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aHoldEnablerListthat are effective for the entire given date range inclusive but not confined to the date range for any agent. In plenary mode, the returned list contains all known hold enablers or an error results. Otherwise, the returned list may contain only those hold enablers that are accessible through this session. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
from- a start dateto- an end date- Returns:
- the returned
HoldEnablerlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getHoldEnablersOnDateWithAgent
HoldEnablerList getHoldEnablersOnDateWithAgent(Id agentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aHoldEnablerListthat are effective for the entire given date range inclusive but not confined to the date range and evaluated against the given agent. In plenary mode, the returned list contains all known hold enablers or an error results. Otherwise, the returned list may contain only those hold enablers that are accessible through this session. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Parameters:
agentId- an agentIdfrom- a start dateto- an end date- Returns:
- the returned
HoldEnablerlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-agentId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getHoldEnablers
Gets allHoldEnablers. In plenary mode, the returned list contains all known hold enablers or an error results. Otherwise, the returned list may contain only those hold enablers that are accessible through this session. In active mode, hold enablers are returned that are currently active. In any status mode, active and inactive hold enablers are returned.- Returns:
- the returned
HoldEnablerlist - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-