Interface QueueFrontOfficeAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, 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 ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueToFrontOffice(Id queueId, Id frontOfficeId) Adds an existingQueueto aFrontOffice.booleanTests if this user can alter queue/front office mappings.booleancanAssignQueuesToFrontOffice(Id frontOfficeId) Tests if this user can alter queue/front office mappings.getAssignableFrontOfficeIds(Id frontOfficeId) Gets a list of front offices including and under the given front office node in which any queue can be assigned.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.voidreassignQueueToFrontOffice(Id queueId, Id fromFrontOfficeId, Id toFrontOfficeId) Moves aQueuefrom oneFrontOfficeto another.voidunassignQueueFromFrontOffice(Id queueId, Id frontOfficeId) Removes aQueuefrom aFrontOffice.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
canAssignQueues
boolean canAssignQueues()Tests if this user can alter queue/front office mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known queue methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignQueuesToFrontOffice
Tests if this user can alter queue/front office mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known queue methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.- Parameters:
frontOfficeId- theIdof theFrontOffice- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-frontOfficeIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableFrontOfficeIds
Gets a list of front offices including and under the given front office node in which any queue can be assigned.- Parameters:
frontOfficeId- theIdof theFrontOffice- Returns:
- list of assignable front office
Ids - Throws:
NullArgumentException-frontOfficeIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableFrontOfficeIdsForQueue
IdList getAssignableFrontOfficeIdsForQueue(Id frontOfficeId, Id queueId) throws OperationFailedException Gets a list of front offices including and under the given front office node in which a specific queue can be assigned.- Parameters:
frontOfficeId- theIdof theFrontOfficequeueId- theIdof theQueue- Returns:
- list of assignable front office
Ids - Throws:
NullArgumentException-frontOfficeIdorqueueIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignQueueToFrontOffice
void assignQueueToFrontOffice(Id queueId, Id frontOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueto aFrontOffice.- Parameters:
queueId- theIdof theQueuefrontOfficeId- theIdof theFrontOffice- Throws:
AlreadyExistsException-queueIdis already assigned tofrontOfficeIdNotFoundException-queueIdorfrontOfficeIdnot foundNullArgumentException-queueIdorfrontOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueFromFrontOffice
void unassignQueueFromFrontOffice(Id queueId, Id frontOfficeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aQueuefrom aFrontOffice.- Parameters:
queueId- theIdof theQueuefrontOfficeId- theIdof theFrontOffice- Throws:
NotFoundException-queueIdorfrontOfficeIdnot found orqueueIdnot assigned tofrontOfficeIdNullArgumentException-queueIdorfrontOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignQueueToFrontOffice
void reassignQueueToFrontOffice(Id queueId, Id fromFrontOfficeId, Id toFrontOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aQueuefrom oneFrontOfficeto another. Mappings to otherFrontOfficesare unaffected.- Parameters:
queueId- theIdof theQueuefromFrontOfficeId- theIdof the currentFrontOfficetoFrontOfficeId- theIdof the destinationFrontOffice- Throws:
AlreadyExistsException-queueIdalready assigned totoFrontOfficeIdNotFoundException-queueId, fromFrontOfficeId, ortoFrontOfficeIdnot found orqueueIdnot mapped tofromFrontOfficeIdNullArgumentException-queueId, fromFrontOfficeId, ortoFrontOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-