Interface QueueEnablerFrontOfficeAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign QueueEnabler to
FrontOffice mappings. A QueueEnabler may appear in
multiple FrontOffice catalogs and removing the last reference to a
QueueEnabler 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 QueueEnabler to another
FrontOffice is not a copy operation (eg: does not change its Id
).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueEnablerToFrontOffice(Id queueEnablerId, Id frontOfficeId) Adds an existingQueueEnablerto aFrontOffice.booleanTests if this user can alter queue enabler/front office mappings.booleancanAssignQueueEnablerToFrontOffice(Id frontOfficeId) Tests if this user can alter queue enabler/front office mappings.getAssignableFrontOfficeIds(Id frontOfficeId) Gets a list of front offices including and under the given front office node in which any queue enabler can be assigned.getAssignableFrontOfficeIdsForQueueEnabler(Id frontOfficeId, Id queueEnablerId) Gets a list of front offices including and under the given front office node in which a specific queue enabler can be assigned.voidreassignQueueEnablerToFrontOffice(Id queueEnablerId, Id fromFrontOfficeId, Id toFrontOfficeId) Moves aQueueEnablerfrom oneFrontOfficeto another.voidunassignQueueEnablerFromFrontOffice(Id queueEnablerId, Id frontOfficeId) Removes aQueueEnablerfrom 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
-
canAssignQueueEnablers
boolean canAssignQueueEnablers()Tests if this user can alter queue enabler/front office mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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.
-
canAssignQueueEnablerToFrontOffice
Tests if this user can alter queue enabler/front office mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 enabler 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.
-
getAssignableFrontOfficeIdsForQueueEnabler
IdList getAssignableFrontOfficeIdsForQueueEnabler(Id frontOfficeId, Id queueEnablerId) throws OperationFailedException Gets a list of front offices including and under the given front office node in which a specific queue enabler can be assigned.- Parameters:
frontOfficeId- theIdof theFrontOfficequeueEnablerId- theIdof theQueueEnabler- Returns:
- list of assignable front office
Ids - Throws:
NullArgumentException-frontOfficeIdorqueueEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignQueueEnablerToFrontOffice
void assignQueueEnablerToFrontOffice(Id queueEnablerId, Id frontOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueEnablerto aFrontOffice.- Parameters:
queueEnablerId- theIdof theQueueEnablerfrontOfficeId- theIdof theFrontOffice- Throws:
AlreadyExistsException-queueEnablerIdis already assigned tofrontOfficeIdNotFoundException-queueEnablerIdorfrontOfficeIdnot foundNullArgumentException-queueEnablerIdorfrontOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueEnablerFromFrontOffice
void unassignQueueEnablerFromFrontOffice(Id queueEnablerId, Id frontOfficeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aQueueEnablerfrom aFrontOffice.- Parameters:
queueEnablerId- theIdof theQueueEnablerfrontOfficeId- theIdof theFrontOffice- Throws:
NotFoundException-queueEnablerIdorfrontOfficeIdnot found orqueueEnablerIdnot assigned tofrontOfficeIdNullArgumentException-queueEnablerIdorfrontOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignQueueEnablerToFrontOffice
void reassignQueueEnablerToFrontOffice(Id queueEnablerId, Id fromFrontOfficeId, Id toFrontOfficeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aQueueEnablerfrom oneFrontOfficeto another. Mappings to otherFrontOfficesare unaffected.- Parameters:
queueEnablerId- theIdof theQueueEnablerfromFrontOfficeId- theIdof the currentFrontOfficetoFrontOfficeId- theIdof the destinationFrontOffice- Throws:
AlreadyExistsException-queueEnablerIdalready assigned totoFrontOfficeIdNotFoundException-queueEnablerId, fromFrontOfficeId, ortoFrontOfficeIdnot found orqueueEnablerIdnot mapped tofromFrontOfficeIdNullArgumentException-queueEnablerId, fromFrontOfficeId, ortoFrontOfficeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-