public interface QueueProcessorDistributorAssignmentSession extends OsidSession
This session provides methods to re-assign QueueProcessor
to Distributor
mappings. a QueueProcessor
may appear in multiple Distributor
objects and
removing the last reference to a QueueProcessor
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 QueueProcessor
to another
Distributor
is not a copy operation (eg: does not change
its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignQueueProcessorToDistributor(Id queueProcessorId,
Id distributorId)
Adds an existing
QueueProcessor to a
Distributor. |
boolean |
canAssignQueueProcessors()
Tests if this user can alter queue processor/distributor mappings.
|
boolean |
canAssignQueueProcessorsToDistributor(Id distributorId)
Tests if this user can alter queue processor/distributor mappings.
|
IdList |
getAssignableDistributorIds(Id distributorId)
Gets a list of distributors including and under the given distributor
node in which any queue processor can be assigned.
|
IdList |
getAssignableDistributorIdsForQueueProcessor(Id distributorId,
Id queueProcessorId)
Gets a list of distributors including and under the given distributor
node in which a specific queue processor can be assigned.
|
void |
unassignQueueProcessorFromDistributor(Id queueProcessorId,
Id distributorId)
Removes a
QueueProcessor from a Distributor. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignQueueProcessors()
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 canAssignQueueProcessorsToDistributor(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 getAssignableDistributorIdsForQueueProcessor(Id distributorId, Id queueProcessorId) throws OperationFailedException
distributorId
- the Id
of the Distributor
queueProcessorId
- the Id
of the
QueueProcessor
Ids
NullArgumentException
- distributorId
or
queueProcessorId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignQueueProcessorToDistributor(Id queueProcessorId, Id distributorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
QueueProcessor
to a
Distributor.
queueProcessorId
- the Id
of the
QueueProcessor
distributorId
- the Id
of the Distributor
AlreadyExistsException
- queueProcessorId
is already assigned to distributorId
NotFoundException
- queueProcessorId
or
distributorId
not foundNullArgumentException
- queueProcessorId
or distributorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignQueueProcessorFromDistributor(Id queueProcessorId, Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
QueueProcessor
from a Distributor.
queueProcessorId
- the Id
of the
QueueProcessor
distributorId
- the Id
of the Distributor
NotFoundException
- queueProcessorId
or
distributorId
not or queueProcessorId
not assigned to distributorId
NullArgumentException
- queueProcessorId
or distributorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.