public interface ParticipantCatalogueSession extends OsidSession
This session provides methods to retrieve Participant
to
Catalogue
mappings. A Participant
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 |
canLookupParticipantCatalogueMappings()
Tests if this user can perform lookups of participant/catalogue
mappings.
|
IdList |
getCatalogueIdsByParticipant(Id participantId)
Gets the list of
Catalogue Ids mapped to
a Participant. |
CatalogueList |
getCataloguesByParticipant(Id participantId)
Gets the list of
Catalogue objects mapped to a
Participant. |
IdList |
getParticipantIdsByCatalogue(Id catalogueId)
Gets the list of participant
Ids associated with a
Catalogue. |
IdList |
getParticipantIdsByCatalogues(IdList catalogueIds)
Gets the list of
Participant Ids corresponding to a
list of Catalogue objects. |
ParticipantList |
getParticipantsByCatalogue(Id catalogueId)
Gets the list of
Participants associated with a
Catalogue. |
ParticipantList |
getParticipantsByCatalogues(IdList catalogueIds)
Gets the list of
Participants corresponding to a list
of Catalogues. |
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
Participant and Catalogue
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupParticipantCatalogueMappings()
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()
Participant
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 getParticipantIdsByCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Ids
associated with a
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. ParticipantList getParticipantsByCatalogue(Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Participants
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 getParticipantIdsByCatalogues(IdList catalogueIds) throws OperationFailedException, PermissionDeniedException
Participant 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. ParticipantList getParticipantsByCatalogues(IdList catalogueIds) throws OperationFailedException, PermissionDeniedException
Participants
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 getCatalogueIdsByParticipant(Id participantId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue
Ids
mapped to
a Participant.
participantId
- Id
of a Participant
Ids
NotFoundException
- participantId
is not
foundNullArgumentException
- participantId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CatalogueList getCataloguesByParticipant(Id participantId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Catalogue
objects mapped to a
Participant.
participantId
- Id
of a Participant
NotFoundException
- participantId
is not
foundNullArgumentException
- participantId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.