Interface QueueConstrainerEnablerDistributorAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign
QueueConstrainerEnabler to Distributor mappings. A
QueueConstrainerEnabler may appear in multiple Distributor
catalogs and removing the last reference to a
QueueConstrainerEnabler 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 QueueConstrainerEnabler to another
Distributor is not a copy operation (eg: does not change its
Id).
Like all OsidSessions,
QueueConstrainerEnablerDistributorAssignmentSessions are dedicated to
single processing threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignQueueConstrainerEnablerToDistributor(Id queueConstrainerEnablerId, Id distributorId) Adds an existingQueueConstrainerEnablerto aDistributor.booleanTests if this user can alter queue constrainer enabler/distributor mappings.booleancanAssignQueueConstrainerEnablerToDistributor(Id distributorId) Tests if this user can alter queue constrainer enabler/distributor mappings.getAssignableDistributorIds(Id distributorId) Gets a list of distributors including and under the given distributor node in which any queue constrainer enabler can be assigned.getAssignableDistributorIdsForQueueConstrainerEnabler(Id distributorId, Id queueConstrainerEnablerId) Gets a list of distributors including and under the given distributor node in which a specific queue constrainer enabler can be assigned.voidreassignQueueConstrainerEnablerToDistributor(Id queueConstrainerEnablerId, Id fromDistributorId, Id toDistributorId) Moves aQueueConstrainerEnablerfrom oneDistributorto another.voidunassignQueueConstrainerEnablerFromDistributor(Id queueConstrainerEnablerId, Id distributorId) Removes aQueueConstrainerEnablerfrom aDistributor.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
canAssignQueueConstrainerEnablers
boolean canAssignQueueConstrainerEnablers()Tests if this user can alter queue constrainer enabler/distributor 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.
-
canAssignQueueConstrainerEnablerToDistributor
Tests if this user can alter queue constrainer enabler/distributor 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:
distributorId- theIdof theDistributor- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-distributorIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableDistributorIds
Gets a list of distributors including and under the given distributor node in which any queue constrainer enabler can be assigned.- Parameters:
distributorId- theIdof theDistributor- Returns:
- list of assignable distributor
Ids - Throws:
NullArgumentException-distributorIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableDistributorIdsForQueueConstrainerEnabler
IdList getAssignableDistributorIdsForQueueConstrainerEnabler(Id distributorId, Id queueConstrainerEnablerId) throws OperationFailedException Gets a list of distributors including and under the given distributor node in which a specific queue constrainer enabler can be assigned.- Parameters:
distributorId- theIdof theDistributorqueueConstrainerEnablerId- theIdof theQueueConstrainerEnabler- Returns:
- list of assignable distributor
Ids - Throws:
NullArgumentException-distributorIdorqueueConstrainerEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignQueueConstrainerEnablerToDistributor
void assignQueueConstrainerEnablerToDistributor(Id queueConstrainerEnablerId, Id distributorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingQueueConstrainerEnablerto aDistributor.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerdistributorId- theIdof theDistributor- Throws:
AlreadyExistsException-queueConstrainerEnablerIdis already assigned todistributorIdNotFoundException-queueConstrainerEnablerIdordistributorIdnot foundNullArgumentException-queueConstrainerEnablerIdordistributorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignQueueConstrainerEnablerFromDistributor
void unassignQueueConstrainerEnablerFromDistributor(Id queueConstrainerEnablerId, Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aQueueConstrainerEnablerfrom aDistributor.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstraienrEnablerdistributorId- theIdof theDistributor- Throws:
NotFoundException-queueConstrainerEnablerIdordistributorIdnot found orqueueConstrainerEnablerIdnot assigned todistributorIdNullArgumentException-queueConstrainerEnablerIdordistributorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignQueueConstrainerEnablerToDistributor
void reassignQueueConstrainerEnablerToDistributor(Id queueConstrainerEnablerId, Id fromDistributorId, Id toDistributorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aQueueConstrainerEnablerfrom oneDistributorto another. Mappings to otherDistributorsare unaffected.- Parameters:
queueConstrainerEnablerId- theIdof theQueueConstrainerEnablerfromDistributorId- theIdof the currentDistributortoDistributorId- theIdof the destinationDistributor- Throws:
AlreadyExistsException-queueConstrainerEnablerIdalready assigned totoDistributorIdNotFoundException-queueConstrainerEnablerId, fromDistributorId, ortoDistributorIdnot found orqueueConstrainerEnablerIdnot mapped tofromDistributorIdNullArgumentException-queueConstrainerEnablerId, fromDistributorId, ortoDistributorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-