public interface ProvisionDistributorAssignmentSession extends OsidSession
This session provides methods to re-assign Provisions to
Distributor mappings. A Provision may appear
in multiple Distributor objects and removing the last
reference to a Provision is the equivalent of deleting it.
Each Distributor may have its own authorizations governing
who is allowed to operate on it.
Adding a reference of a Provision to another
Distributor is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignProvisionToDistributor(Id provisionId,
Id distributorId)
Adds an existing
Provision to a Distributor. |
boolean |
canAssignProvisions()
Tests if this user can alter provision/distributor mappings.
|
boolean |
canAssignProvisionsToDistributor(Id distributorId)
Tests if this user can alter provision/distributor mappings.
|
IdList |
getAssignableDistributorIds(Id distributorId)
Gets a list of distributors including and under the given distributor
node in which any provision can be assigned.
|
IdList |
getAssignableDistributorIdsForProvision(Id distributorId,
Id provisionId)
Gets a list of distributors including and under the given distributor
node in which a specific provision can be assigned.
|
void |
unassignProvisionFromDistributor(Id provisionId,
Id distributorId)
Removes a
Provision from a Distributor. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignProvisions()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if provisioning is not authorized,
true otherwisemandatory - This method must be implemented. boolean canAssignProvisionsToDistributor(Id distributorId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.distributorId - the Id of the Distributor
false if provisioning is not authorized,
true otherwiseNullArgumentException - distributorId is
null mandatory - This method must be implemented. IdList getAssignableDistributorIds(Id distributorId) throws OperationFailedException
distributorId - the Id of the Distributor
Ids NullArgumentException - distributorId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableDistributorIdsForProvision(Id distributorId, Id provisionId) throws OperationFailedException
distributorId - the Id of the Distributor
provisionId - the Id of the Provision
Ids NullArgumentException - distributorId or
provisionId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignProvisionToDistributor(Id provisionId, Id distributorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Provision to a Distributor.
provisionId - the Id of the Provision
distributorId - the Id of the Distributor
AlreadyExistsException - provisionId is
slready assigned to distributorId NotFoundException - provisionId or
distributorId not foundNullArgumentException - provisionId or
distributorId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignProvisionFromDistributor(Id provisionId, Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Provision from a Distributor. provisionId - the Id of the Provision
distributorId - the Id of the Distributor
NotFoundException - provisionId or
distributorId not found or provisionId
not assigned to distributorId NullArgumentException - provisionId or
distributorId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.