public interface CatalogueLookupSession extends OsidSession
This session provides methods for retrieving Catalogue
objects. The Catalogue represents a collection of
CanonicalUnits.
This session defines views that offer differing behaviors when retrieving multiple objects.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupCatalogues()
Tests if this user can perform
Catalogue lookups. |
Catalogue |
getCatalogue(Id catalogueId)
Gets the
Catalogue specified by its Id. |
CatalogueList |
getCatalogues()
Gets all
Catalogues. |
CatalogueList |
getCataloguesByGenusType(Type catalogueGenusType)
Gets a
CatalogueList corresponding to the given
catalogue genus Type which does not include catalogues
of genus types derived from the specified Type. |
CatalogueList |
getCataloguesByIds(IdList catalogueIds)
Gets a
CatalogueList corresponding to the given
IdList. |
CatalogueList |
getCataloguesByParentGenusType(Type catalogueGenusType)
Gets a
CatalogueList corresponding to the given
catalogue genus Type and include any additional
catalogues with genus types derived from the specified Type. |
CatalogueList |
getCataloguesByProvider(Id resourceId)
Gets a
CatalogueList for the given provider. |
CatalogueList |
getCataloguesByRecordType(Type catalogueRecordType)
Gets a
CatalogueList containing the given catalogue
record Type. |
void |
useComparativeCatalogueView()
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 |
usePlenaryCatalogueView()
A complete view of the
Catalogue returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupCatalogues()
Catalogue 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 not offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeCatalogueView()
mandatory - This method is must be implemented. void usePlenaryCatalogueView()
Catalogue 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. Catalogue getCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue specified by its Id.
In plenary mode, the exact Id is found or a
NOT_FOUND results. Otherwise, the returned Catalogue
may have a different Id than requested, such as
the case where a duplicate Id was assigned to a
Catalogue and retained for compatibility.catalogueId - Id of the Catalogue NotFoundException - catalogueId not
foundNullArgumentException - catalogueId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. CatalogueList getCataloguesByIds(IdList catalogueIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
CatalogueList corresponding to the given
IdList. In plenary mode, the returned list contains all of the
catalogues 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 Catalogues may be omitted from the list
and may present the elements in any order including returning a unique
set.catalogueIds - the list of Ids to retrieve Catalogue listNotFoundException - an Id was not foundNullArgumentException - catalogueIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CatalogueList getCataloguesByGenusType(Type catalogueGenusType) throws OperationFailedException, PermissionDeniedException
CatalogueList corresponding to the given
catalogue genus Type which does not include catalogues
of genus types derived from the specified Type. In
plenary mode, the returned list contains all known catalogues or an
error results. Otherwise, the returned list may contain only those
catalogues that are accessible through this session.catalogueGenusType - a catalogue genus type Catalogue listNullArgumentException - catalogueGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CatalogueList getCataloguesByParentGenusType(Type catalogueGenusType) throws OperationFailedException, PermissionDeniedException
CatalogueList corresponding to the given
catalogue genus Type and include any additional
catalogues with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
catalogues or an error results. Otherwise, the returned list may
contain only those catalogues that are accessible through this
session.catalogueGenusType - a catalogue genus type Catalogue listNullArgumentException - catalogueGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CatalogueList getCataloguesByRecordType(Type catalogueRecordType) throws OperationFailedException, PermissionDeniedException
CatalogueList containing the given catalogue
record Type. In plenary mode, the returned list
contains all known catalogues or an error results. Otherwise, the
returned list may contain only those catalogues that are accessible
through this session.catalogueRecordType - a catalogue record type Catalogue listNullArgumentException - catalogueRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CatalogueList getCataloguesByProvider(Id resourceId) throws OperationFailedException, PermissionDeniedException
CatalogueList for the given provider. In plenary
mode, the returned list contains all known catalogues or an error
results. Otherwise, the returned list may contain only those
catalogues that are accessible through this session.resourceId - a resource Id Catalogue listNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CatalogueList getCatalogues() throws OperationFailedException, PermissionDeniedException
Catalogues. In plenary mode, the returned list
contains all known catalogues or an error results. Otherwise, the
returned list may contain only those catalogues that are accessible
through this session. Catalogues OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.