public interface OfferingConstrainerCatalogueSession extends OsidSession
This session provides methods to retrieve OfferingConstrainer
to Catalogue
mappings. An
OfferingConstrainer
may appear in multiple Catalogue
objects. 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 |
canLookupOfferingConstrainerCatalogueMappings()
Tests if this user can perform lookups of offering
constrainer/catalogue mappings.
|
IdList |
getCatalogueIdsByOfferingConstrainer(Id offeringConstrainerId)
Gets the
Catalogue Ids mapped to an
OfferingConstrainer. |
CatalogueList |
getCataloguesByOfferingConstrainer(Id offeringConstrainerId)
Gets the
Catalogues mapped to an
OfferingConstrainer. |
IdList |
getOfferingConstrainerIdsByCatalogue(Id catalogueId)
Gets the list of
OfferingConstrainerIds associated with
a Catalogue. |
IdList |
getOfferingConstrainerIdsByCatalogues(IdList catalogueIds)
Gets the list of
OfferingConstrainer Ids corresponding
to a list of Catalogues. |
OfferingConstrainerList |
getOfferingConstrainersByCatalogue(Id catalogueId)
Gets the list of offering constrainer associated with a
Catalogue. |
OfferingConstrainerList |
getOfferingConstrainersByCatalogues(IdList catalogueIds)
Gets the list of offering constrainer corresponding to a list of
Catalogues. |
void |
useComparativeOfferingConstrainerCatalogueView()
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 |
usePlenaryOfferingConstrainerCatalogueView()
A complete view of the
OfferingConstrainer and
Catalogue returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupOfferingConstrainerCatalogueMappings()
PERMISSION_DENIED.
This is intended as 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 useComparativeOfferingConstrainerCatalogueView()
mandatory
- This method is must be implemented. void usePlenaryOfferingConstrainerCatalogueView()
OfferingConstrainer
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 getOfferingConstrainerIdsByCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OfferingConstrainerIds
associated with
a Catalogue.
catalogueId
- Id
of the Catalogue
Ids
NotFoundException
- catalogueId
is not
foundNullArgumentException
- catalogueId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainersByCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue.
catalogueId
- Id
of the Catalogue
NotFoundException
- catalogueId
is not
foundNullArgumentException
- catalogueId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getOfferingConstrainerIdsByCatalogues(IdList catalogueIds) throws OperationFailedException, PermissionDeniedException
OfferingConstrainer Ids
corresponding
to a list of Catalogues.
catalogueIds
- list of catalogue Ids
Ids
NullArgumentException
- catalogueIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfferingConstrainerList getOfferingConstrainersByCatalogues(IdList catalogueIds) throws OperationFailedException, PermissionDeniedException
Catalogues.
catalogueIds
- list of catalogue Ids
NullArgumentException
- catalogueIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCatalogueIdsByOfferingConstrainer(Id offeringConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue
Ids
mapped to an
OfferingConstrainer.
offeringConstrainerId
- Id
of an
OfferingConstrainer
NotFoundException
- offeringConstrainerId
is not foundNullArgumentException
- offeringConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CatalogueList getCataloguesByOfferingConstrainer(Id offeringConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogues
mapped to an
OfferingConstrainer.
offeringConstrainerId
- Id
of an
OfferingConstrainer
NotFoundException
- offeringConstrainerId
is not foundNullArgumentException
- offeringConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.