public interface CanonicalUnitCatalogueSession extends OsidSession
This session provides methods to retrieve CanonicalUnit
to Catalogue
mappings. A CanonicalUnit
may
appear in multiple Catalogues.
Each Catalogue
may have its own authorizations governing who is allowed to look
at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupCanonicalUnitCatalogueMappings()
Tests if this user can perform lookups of canonical unit/catalogue
mappings.
|
IdList |
getCanonicalUnitIdsByCatalogue(Id catalogueId)
Gets the list of CanonicalUnit Ids associated with a
Catalogue. |
IdList |
getCanonicalUnitIdsByCatalogues(IdList catalogueIds)
Gets the list of
CanonicalUnit Ids corresponding to a
list of Catalogue objects. |
CanonicalUnitList |
getCanonicalUnitsByCatalogue(Id catalogueId)
Gets the list of
CanonicalUnits associated with a
Catalogue. |
CanonicalUnitList |
getCanonicalUnitsByCatalogues(IdList catalogueIds)
Gets the list of
CanonicalUnits corresponding to a list
of Catalogues. |
IdList |
getCatalogueIdsByCanonicalUnit(Id canonicalUnitId)
Gets the list of
Catalogue Ids mapped to
a CanonicalUnit. |
CatalogueList |
getCataloguesByCanonicalUnit(Id canonicalUnitId)
Gets the list of
Catalogue objects mapped to a
CanonicalUnit. |
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
CanonicalUnit and
Catalogue returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupCanonicalUnitCatalogueMappings()
PERMISSION_DENIED.
This is intendedas a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeCatalogueView()
mandatory
- This method is must be implemented. void usePlenaryCatalogueView()
CanonicalUnit
and
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. IdList getCanonicalUnitIdsByCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue.
catalogueId
- Id
of a Catalogues.
Ids
NotFoundException
- catalogueId
is not
foundNullArgumentException
- catalogueId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CanonicalUnitList getCanonicalUnitsByCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnits
associated with a
Catalogue.
catalogueId
- Id
of a Catalogue
NotFoundException
- catalogueId
is not
foundNullArgumentException
- catalogueId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCanonicalUnitIdsByCatalogues(IdList catalogueIds) throws OperationFailedException, PermissionDeniedException
CanonicalUnit Ids
corresponding to a
list of Catalogue
objects.catalogueIds
- list of catalogue Ids
Ids
NullArgumentException
- catalogueIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CanonicalUnitList getCanonicalUnitsByCatalogues(IdList catalogueIds) throws OperationFailedException, PermissionDeniedException
CanonicalUnits
corresponding to a list
of Catalogues.
catalogueIds
- list of catalogue Ids
NullArgumentException
- catalogueIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCatalogueIdsByCanonicalUnit(Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue
Ids
mapped to
a CanonicalUnit.
canonicalUnitId
- Id
of a CanonicalUnit
Ids
NotFoundException
- canonicalUnitId
is
not foundNullArgumentException
- canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CatalogueList getCataloguesByCanonicalUnit(Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue
objects mapped to a
CanonicalUnit.
canonicalUnitId
- Id
of a CanonicalUnit
NotFoundException
- canonicalUnitId
is
not foundNullArgumentException
- canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.