public interface PoolConstrainerDistributorAssignmentSession extends OsidSession
This session provides methods to re-assign PoolConstrainer
to Distributor mappings. A PoolConstrainer
may appear in multiple Distributor objects and
removing the last reference to a PoolConstrainer 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 PoolConstrainer to another
Distributor is not a copy operation (eg: does not change
its Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignPoolConstrainerToDistributor(Id poolConstrainerId,
Id distributorId)
Adds an existing
PoolConstrainer to a
Distributor. |
boolean |
canAssignPoolConstrainers()
Tests if this user can alter pool constrainer/distributor mappings.
|
boolean |
canAssignPoolConstrainersToDistributor(Id distributorId)
Tests if this user can alter pool constrainer/distributor mappings.
|
IdList |
getAssignableDistributorIds(Id distributorId)
Gets a list of distributors including and under the given distributor
node in which any pool constrainer can be assigned.
|
IdList |
getAssignableDistributorIdsForPoolConstrainer(Id distributorId,
Id poolConstrainerId)
Gets a list of distributors including and under the given distributor
node in which a specific pool constrainer can be assigned.
|
void |
unassignPoolConstrainerFromDistributor(Id poolConstrainerId,
Id distributorId)
Removes a
PoolConstrainer from a Distributor. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignPoolConstrainers()
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 canAssignPoolConstrainersToDistributor(Id distributorId)
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.distributorId - the Id of the Distributor
false if mapping 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 getAssignableDistributorIdsForPoolConstrainer(Id distributorId, Id poolConstrainerId) throws OperationFailedException
distributorId - the Id of the Distributor
poolConstrainerId - the Id of the
PoolConstrainer Ids NullArgumentException - distributorId or
poolConstrainerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignPoolConstrainerToDistributor(Id poolConstrainerId, Id distributorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
PoolConstrainer to a
Distributor. poolConstrainerId - the Id of the
PoolConstrainer distributorId - the Id of the Distributor
AlreadyExistsException - poolConstrainerId
is already assigned to distributorId NotFoundException - poolConstrainerId or
distributorId not foundNullArgumentException - poolConstrainerId
or distributorId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignPoolConstrainerFromDistributor(Id poolConstrainerId, Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PoolConstrainer from a Distributor.
poolConstrainerId - the Id of the
PoolConstrainer distributorId - the Id of the Distributor
NotFoundException - poolConstrainerId or
distributorId not found or
poolConstrainerId not assigned to distributorId
NullArgumentException - poolConstrainerId
or distributorId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.