public interface QueueConstrainerRuleApplicationSession extends OsidSession
This session provides methods to apply QueueConstrainers
to Queues.
A Queue
with multiple
QueueConstrainers
means any positive rule evaluation across the
constrainers result in an accessible Queue.
Modifier and Type | Method and Description |
---|---|
void |
assignQueueConstrainerToQueue(Id queueConstrainerId,
Id queueId)
Adds an existing
QueueConstrainer to a Queue. |
boolean |
canAssignQueueConstrainers()
Tests if this user can alter queue constrainer/queue mappings.
|
boolean |
canSequenceQueueConstrainers()
Tests if this user can order
QueueConstrainers. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
moveQueueConstrainerAhead(Id queueConstrainerId,
Id queueId,
Id referenceId)
Reorders queue constrainer for a queue by moving the specified queue
constrainer in front of a reference queue constrainer.
|
void |
moveQueueConstrainerBehind(Id queueConstrainerId,
Id queueId,
Id referenceId)
Reorders queue constrainer for a queue by moving the specified queue
constrainer behind a reference queue constrainer.
|
void |
orderQueueConstrainers(Id[] queueConstrainerIds,
Id queueId)
Reorders a set of queue constrainers for a queue.
|
void |
unassignQueueConstrainerFromQueue(Id queueConstrainerId,
Id queueId)
Removes a
QueueConstrainer from a Queue. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getDistributorId()
Distributor
Id
associated with
this session. Distributor Id
associated with this sessionmandatory
- This method must be implemented. Distributor getDistributor() throws OperationFailedException, PermissionDeniedException
Distributor
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignQueueConstrainers()
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. void assignQueueConstrainerToQueue(Id queueConstrainerId, Id queueId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
QueueConstrainer
to a Queue.
queueConstrainerId
- the Id
of the
QueueConstrainer
queueId
- the Id
of the Queue
AlreadyExistsException
- queueConstrainerId
is already applied to queueId
NotFoundException
- queueConstrainerId
or queueId
not foundNullArgumentException
- queueConstrainerId
or queueId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignQueueConstrainerFromQueue(Id queueConstrainerId, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
QueueConstrainer
from a Queue.
queueConstrainerId
- the Id
of the
QueueConstrainer
queueId
- the Id
of the Queue
NotFoundException
- queueConstrainerId
or queueId
not found or
queueConstrainerId
not applied to queueId
NullArgumentException
- queueConstrainerId
or queueId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceQueueConstrainers()
QueueConstrainers.
A
return of true does not guarantee successful authorization. A return
of false indicates that it is known sequencing operations will result
in a PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer sequencing operations to an
unauthorized user. false
if QueueConstrainer
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveQueueConstrainerAhead(Id queueConstrainerId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
queueConstrainerId
- the Id
of a
QueueConstrainer
queueId
- the Id
of a Queue
referenceId
- the reference queue constrainer Id
NotFoundException
- queueConstrainerId, queueId,
or referenceId
not found or,
queueConstrainerId
or referenceId
not
related to queueId
NullArgumentException
- queueConstrainerId,
queueId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveQueueConstrainerBehind(Id queueConstrainerId, Id queueId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
queueConstrainerId
- the Id
of a
QueueConstrainer
queueId
- the Id
of a Queue
referenceId
- the reference queue constrainer Id
NotFoundException
- queueConstrainerId, queueId,
or referenceId
not found or,
queueConstrainerId
or referenceId
not
related to queueId
NullArgumentException
- queueConstrainerId,
queueId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderQueueConstrainers(Id[] queueConstrainerIds, Id queueId) throws NotFoundException, OperationFailedException, PermissionDeniedException
queueConstrainerIds
- the Ids
for a set of
QueueConstrainers
queueId
- the Id
of a QueueConstrainer
NotFoundException
- queueId
not found
or, a queueConstrainerId
not related to
queueId
NullArgumentException
- queueConstrainerIds
or queueId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.