public interface HoldLookupSession extends OsidSession
This session provides methods for retrieving Hold
relationships.
This session defines views that offer differing behaviors when retrieving multiple objects.
Holds with the HoldAdminSession. Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedOublietteView() and
useIsolatedOublietteView() behave as a radio group and one should
be selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupHolds()
Tests if this user can perform
Hold lookups. |
Hold |
getHold(Id holdId)
Gets the
Hold specified by its Id. |
HoldList |
getHolds()
Gets all
Holds. |
HoldList |
getHoldsByGenusType(Type holdGenusType)
Gets a
HoldList corresponding to the given hold genus
Type which does not include holds of genus types
derived from the specified Type. |
HoldList |
getHoldsByIds(IdList holdIds)
Gets a
HoldList corresponding to the given
IdList. |
HoldList |
getHoldsByParentGenusType(Type holdGenusType)
Gets a
HoldList corresponding to the given hold genus
Type and include any additional holds with genus types
derived from the specified Type. |
HoldList |
getHoldsByRecordType(Type holdRecordType)
Gets a
HoldList containing the given hold record
Type. |
HoldList |
getHoldsForAgent(Id agentId)
Gets a list of holds for an agent.
|
HoldList |
getHoldsForAgentAndIssue(Id agentId,
Id issueId)
Gets a list of holds for an agent.
|
HoldList |
getHoldsForAgentAndIssueOnDate(Id agentId,
Id issueId,
DateTime from,
DateTime to)
Gets a list of holds for an agent and issue and effective during the
entire given date range inclusive but not confined to the date range.
|
HoldList |
getHoldsForAgentOnDate(Id agentId,
DateTime from,
DateTime to)
Gets a list of holds for an agent and effective during the entire
given date range inclusive but not confined to the date range.
|
HoldList |
getHoldsForIssue(Id issueId)
Gets a list of holds for an issue.
|
HoldList |
getHoldsForIssueOnDate(Id issueId,
DateTime from,
DateTime to)
Gets a list of holds for an issue and effective during the entire
given date range inclusive but not confined to the date range.
|
HoldList |
getHoldsForResource(Id resourceId)
Gets a list of holds for a resource including any holds for agents
related to the resource.
|
HoldList |
getHoldsForResourceAndIssue(Id resourceId,
Id issueId)
Gets a list of holds for a resource and issue including any holds for
agents related to the resource.
|
HoldList |
getHoldsForResourceAndIssueOnDate(Id resourceId,
Id issueId,
DateTime from,
DateTime to)
Gets a list of holds for a resource, including any holds for agents
related to the resource, and issue and effective during the entire
given date range inclusive but not confined to the date range.
|
HoldList |
getHoldsForResourceOnDate(Id resourceId,
DateTime from,
DateTime to)
Gets a list of holds for a resource, including any holds for agents
related to the resource, and effective during the entire given date
range inclusive but not confined to the date range.
|
HoldList |
getHoldsOnDate(DateTime from,
DateTime to)
Gets a list of holds for a resource, including any holds for agents
related to the resource, and effective during the entire given date
range inclusive but not confined to the date range.
|
Oubliette |
getOubliette()
Gets the
Oubliette associated with this session. |
Id |
getOublietteId()
Gets the
Oubliette Id associated with
this session. |
void |
useAnyEffectiveHoldView()
All holds of any effective dates are returned by methods in this
session.
|
void |
useComparativeHoldView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useEffectiveHoldView()
Only holds whose effective dates are current are returned by methods
in this session.
|
void |
useFederatedOublietteView()
Federates the view for methods in this session.
|
void |
useIsolatedOublietteView()
Isolates the view for methods in this session.
|
void |
usePlenaryHoldView()
A complete view of the
Hold returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOublietteId()
Oubliette Id associated with
this session. Oubliette Id associated with this sessionmandatory - This method must be implemented. Oubliette getOubliette() throws OperationFailedException, PermissionDeniedException
Oubliette associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupHolds()
Hold lookups. 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
a PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeHoldView()
mandatory - This method is must be implemented. void usePlenaryHoldView()
Hold returns 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.mandatory - This method is must be implemented. void useFederatedOublietteView()
mandatory - This method is must be implemented. void useIsolatedOublietteView()
mandatory - This method is must be implemented. void useEffectiveHoldView()
mandatory - This method is must be implemented. void useAnyEffectiveHoldView()
mandatory - This method is must be implemented. Hold getHold(Id holdId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Hold specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
Hold may have a different Id than requested,
such as the case where a duplicate Id was assigned to a
Hold and retained for compatibility.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.holdId - Id of the Hold NotFoundException - holdId not foundNullArgumentException - holdId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. HoldList getHoldsByIds(IdList holdIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
HoldList corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
holds specified in the Id list, in the order of the
list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Holds may be omitted from the list and may
present the elements in any order including returning a unique set.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.holdIds - the list of Ids to retrieve Hold listNotFoundException - an Id was not foundNullArgumentException - holdIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsByGenusType(Type holdGenusType) throws OperationFailedException, PermissionDeniedException
HoldList corresponding to the given hold genus
Type which does not include holds of genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
holds or an error results. Otherwise, the returned list may contain
only those holds that are accessible through this session.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.holdGenusType - a hold genus type Hold listNullArgumentException - holdGenusType is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsByParentGenusType(Type holdGenusType) throws OperationFailedException, PermissionDeniedException
HoldList corresponding to the given hold genus
Type and include any additional holds with genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
holds or an error results. Otherwise, the returned list may contain
only those holds that are accessible through this session.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.holdGenusType - a hold genus type Hold listNullArgumentException - holdGenusType is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsByRecordType(Type holdRecordType) throws OperationFailedException, PermissionDeniedException
HoldList containing the given hold record
Type.
In plenary mode, the returned list contains all known
holds or an error results. Otherwise, the returned list may contain
only those holds that are accessible through this session.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.holdRecordType - a hold record type Hold listNullArgumentException - holdRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
from - start of date rangeto - end of date range Hold listInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id Hold listNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForResourceOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id from - start of date rangeto - end of date range Hold listInvalidArgumentException - from is
greater than to NullArgumentException - resourceId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForAgent(Id agentId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
holds or an error results. Otherwise, the returned list may contain
only those holds that are accessible through this session.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.agentId - an agent Id Hold listNullArgumentException - agentId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForAgentOnDate(Id agentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
agentId - an agent Id from - start of date rangeto - end of date range Hold listInvalidArgumentException - from is
greater than to NullArgumentException - agentId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForIssue(Id issueId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
holds or an error results. Otherwise, the returned list may contain
only those holds that are accessible through this session.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned.issueId - an issue Id ommission listNullArgumentException - issueid is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForIssueOnDate(Id issueId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
issueId - an issue Id from - start of date rangeto - end of date range ommission listInvalidArgumentException - from is
greater than to NullArgumentException - issueId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForResourceAndIssue(Id resourceId, Id issueId) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id issueId - an issue Id ommission listNullArgumentException - resourceId or
issueid is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForResourceAndIssueOnDate(Id resourceId, Id issueId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id issueId - an issue Id from - start of date rangeto - end of date range ommission listInvalidArgumentException - from is
greater than to NullArgumentException - resourceId, issueId,
from, or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForAgentAndIssue(Id agentId, Id issueId) throws OperationFailedException, PermissionDeniedException
agentId - an agent Id issueId - an issue Id ommission listNullArgumentException - agentId or
issueid is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHoldsForAgentAndIssueOnDate(Id agentId, Id issueId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
agentId - an agent Id issueId - an issue Id from - start of date rangeto - end of date range ommission listInvalidArgumentException - from is
greater than to NullArgumentException - agentId, issueId, from,
or to is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. HoldList getHolds() throws OperationFailedException, PermissionDeniedException
Holds.
In plenary mode, the returned list contains all known holds or an
error results. Otherwise, the returned list may contain only those
holds that are accessible through this session.
In effective mode, holds are returned that are currently effective. In
any effective mode, effective holds and those currently expired are
returned. Holds OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.