public interface ParticipantCatalogueAssignmentSession extends OsidSession
This session provides methods to re-assign Participants
to Bilings. A Participant may map to
multiple Catalogues and removing the last reference to a
Participant is the equivalent of deleting it. Each
Catalogue may have its own authorizations governing who is allowed
to operate on it.
Adding a reference of a Participant to another
Catalogue is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignParticipantToCatalogue(Id participantId,
Id catalogueId)
Adds an existing
Participant to a Catalogue. |
boolean |
canAssignParticipants()
Tests if this user can alter participant/catalogue mappings.
|
boolean |
canAssignParticipantsToCatalogue(Id catalogueId)
Tests if this user can alter participant/catalogue mappings.
|
IdList |
getAssignableCatalogueIds(Id catalogueId)
Gets a list of catalogues including and under the given catalogue node
in which any participant can be assigned.
|
IdList |
getAssignableCatalogueIdsForParticipant(Id catalogueId,
Id participantId)
Gets a list of catalogues including and under the given catalogue node
in which a specific participant can be assigned.
|
void |
unassignParticipantFromCatalogue(Id participantId,
Id catalogueId)
Removes a
Participant from a Catalogue. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignParticipants()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignParticipantsToCatalogue(Id catalogueId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.catalogueId - the Id of the Catalogue
false if mapping is not authorized, true
otherwiseNullArgumentException - catalogueId is
null mandatory - This method must be implemented. IdList getAssignableCatalogueIds(Id catalogueId) throws OperationFailedException
catalogueId - the Id of the Catalogue
Ids NullArgumentException - catalogueId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableCatalogueIdsForParticipant(Id catalogueId, Id participantId) throws OperationFailedException
catalogueId - the Id of the Catalogue
participantId - the Id of the Participant
Ids NullArgumentException - catalogueId or
participantId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignParticipantToCatalogue(Id participantId, Id catalogueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Participant to a Catalogue.
participantId - the Id of the Participant
catalogueId - the Id of the Catalogue
AlreadyExistsException - participantId
already assigned to catalogueId NotFoundException - participantId or
catalogueId not foundNullArgumentException - participantId or
catalogueId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignParticipantFromCatalogue(Id participantId, Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Participant from a Catalogue. participantId - the Id of the Participant
catalogueId - the Id of the Catalogue
NotFoundException - participantId or
catalogueId not found or participantId
not mapped to catalogueId NullArgumentException - participantId or
catalogueId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.