public interface OfferingCatalogueAssignmentSession extends OsidSession
This session provides methods to re-assign Offerings to
Bilings. An Offering may map to multiple
Catalogues and removing the last reference to an
Offering 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 an Offering to another
Catalogue is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignOfferingToCatalogue(Id offeringId,
Id catalogueId)
Adds an existing
Offering to a Catalogue. |
boolean |
canAssignOfferings()
Tests if this user can alter offering/catalogue mappings.
|
boolean |
canAssignOfferingsToCatalogue(Id catalogueId)
Tests if this user can alter offering/catalogue mappings.
|
IdList |
getAssignableCatalogueIds(Id catalogueId)
Gets a list of catalogues including and under the given catalogue node
in which any offering can be assigned.
|
IdList |
getAssignableCatalogueIdsForOffering(Id catalogueId,
Id offeringId)
Gets a list of catalogues including and under the given catalogue node
in which a specific offering can be assigned.
|
void |
unassignOfferingFromCatalogue(Id offeringId,
Id catalogueId)
Removes an
Offering from a Catalogue. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignOfferings()
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 canAssignOfferingsToCatalogue(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 getAssignableCatalogueIdsForOffering(Id catalogueId, Id offeringId) throws OperationFailedException
catalogueId - the Id of the Catalogue
offeringId - the Id of the Offering
Ids NullArgumentException - catalogueId or
offeringId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignOfferingToCatalogue(Id offeringId, Id catalogueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Offering to a Catalogue.
offeringId - the Id of the Offering
catalogueId - the Id of the Catalogue
AlreadyExistsException - offeringId
already assigned to catalogueId NotFoundException - offeringId or
catalogueId not foundNullArgumentException - offeringId or
catalogueId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignOfferingFromCatalogue(Id offeringId, Id catalogueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Offering from a Catalogue. offeringId - the Id of the Offering
catalogueId - the Id of the Catalogue
NotFoundException - offeringId or
catalogueId not found or offeringId not
mapped to catalogueId NullArgumentException - offeringId or
catalogueId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.