public interface QueueFrontOfficeAssignmentSession extends OsidSession
This session provides methods to re-assign Queues
to
FrontOffice
objects. A Queue
may appear in
multiple FrontOffice
objects and removing the last
reference to a Queue
is the equivalent of deleting it. Each
FrontOffice
may have its own authorizations governing who
is allowed to operate on it.
Adding a reference of a Queue
to another
FrontOffice
is not a copy operation (eg: does not change its
Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignQueueToFrontOffice(Id queueId,
Id frontOfficeId)
Adds an existing
Queue to a FrontOffice. |
boolean |
canAssignQueues()
Tests if this user can alter queue/front office mappings.
|
boolean |
canAssignQueuesToFrontOffice(Id frontOfficeId)
Tests if this user can alter queue/front office mappings.
|
IdList |
getAssignableFrontOfficeIds(Id frontOfficeId)
Gets a list of front offices including and under the given front
office node in which any queue can be assigned.
|
IdList |
getAssignableFrontOfficeIdsForQueue(Id frontOfficeId,
Id queueId)
Gets a list of front offices including and under the given front
office node in which a specific queue can be assigned.
|
void |
unassignQueueFromFrontOffice(Id queueId,
Id frontOfficeId)
Removes a
Queue from a FrontOffice. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignQueues()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canAssignQueuesToFrontOffice(Id frontOfficeId)
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.frontOfficeId
- the Id
of the FrontOffice
false
if mapping is not authorized, true
otherwiseNullArgumentException
- frontOfficeId
is
null
mandatory
- This method must be implemented. IdList getAssignableFrontOfficeIds(Id frontOfficeId) throws OperationFailedException
frontOfficeId
- the Id
of the FrontOffice
Ids
NullArgumentException
- frontOfficeId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableFrontOfficeIdsForQueue(Id frontOfficeId, Id queueId) throws OperationFailedException
frontOfficeId
- the Id
of the FrontOffice
queueId
- the Id
of the Queue
Ids
NullArgumentException
- frontOfficeId
or
queueId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignQueueToFrontOffice(Id queueId, Id frontOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Queue
to a FrontOffice.
queueId
- the Id
of the Queue
frontOfficeId
- the Id
of the FrontOffice
AlreadyExistsException
- queueId
is
already assigned to frontOfficeId
NotFoundException
- queueId
or
frontOfficeId
not foundNullArgumentException
- queueId
or
frontOfficeId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignQueueFromFrontOffice(Id queueId, Id frontOfficeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Queue
from a FrontOffice.
queueId
- the Id
of the Queue
frontOfficeId
- the Id
of the FrontOffice
NotFoundException
- queueId
or
frontOfficeId
not found or queueId
not
assigned to frontOfficeId
NullArgumentException
- queueId
or
frontOfficeId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.