public interface QueueProcessorEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply QueueProcessorEnablers
to QueueProcessors.
a QueueProcessor
with multiple QueueProcessorEnablers
means any positive
rule evaluation across the enablers result in an effective
QueueProcessor.
Modifier and Type | Method and Description |
---|---|
void |
assignQueueProcessorEnablerToQueueProcessor(Id queueProcessorEnablerId,
Id queueProcessorId)
Adds an existing
QueueProcessorEnabler to a
QueueProcessor. |
boolean |
canAssignQueueProcessorEnablers()
Tests if this user can alter queue processor enabler/queue processor
mappings.
|
boolean |
canSequenceQueueProcessorEnablers()
Tests if this user can order
QueueProcessorEnablers. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
moveQueueProcessorEnablerAhead(Id queueProcessorEnablerId,
Id queueProcessorId,
Id referenceId)
Reorders queue processor enablers for a queue processor by moving the
specified queue processor enabler in front of a reference queue
processor enabler.
|
void |
moveQueueProcessorEnablerBehind(Id queueProcessorEnablerId,
Id queueProcessorId,
Id referenceId)
Reorders queue processor enablers for a queue processor by moving the
specified queue processor enabler behind a reference queue processor
enabler.
|
void |
orderQueueProcessorEnablers(Id[] queueProcessorEnablerIds,
Id queueProcessorId)
Reorders a set of queue processor enablers for a queue processor.
|
void |
unassignQueueProcessorEnablerFromQueueProcessor(Id queueProcessorEnablerId,
Id queueProcessorId)
Removes a
QueueProcessorEnabler from a
QueueProcessor. |
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 canAssignQueueProcessorEnablers()
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 assignQueueProcessorEnablerToQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
QueueProcessorEnabler
to a
QueueProcessor.
queueProcessorEnablerId
- the Id
of the
QueueProcessorEnabler
queueProcessorId
- the Id
of the
QueueProcessor
AlreadyExistsException
- queueProcessorEnablerId
is already applied to queueProcessorId
NotFoundException
- queueProcessorEnablerId
or queueProcessorId
not foundNullArgumentException
- queueProcessorEnablerId
or queueProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignQueueProcessorEnablerFromQueueProcessor(Id queueProcessorEnablerId, Id queueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
QueueProcessorEnabler
from a
QueueProcessor.
queueProcessorEnablerId
- the Id
of the
QueueProcessorEnabler
queueProcessorId
- the Id
of the
QueueProcessor
NotFoundException
- queueProcessorEnablerId
or queueProcessorId
not found or
queueProcessorEnablerId
not applied to
queueProcessorId
NullArgumentException
- queueProcessorEnablerId
or queueProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceQueueProcessorEnablers()
QueueProcessorEnablers.
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 QueueProcessorEnabler
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveQueueProcessorEnablerAhead(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
queueProcessorEnablerId
- the Id
of a
QueueProcessorEnabler
queueProcessorId
- the Id
of a
QueueProcessor
referenceId
- the reference queue processor enabler Id
NotFoundException
- queueProcessorEnablerId,
queueProcessorId,
or referenceId
not
found or, queueProcessorEnablerId
or
referenceId
not related to queueProcessorId
NullArgumentException
- queueProcessorEnablerId,
queueProcessorId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveQueueProcessorEnablerBehind(Id queueProcessorEnablerId, Id queueProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
queueProcessorEnablerId
- the Id
of a
QueueProcessorEnabler
queueProcessorId
- the Id
of a
QueueProcessor
referenceId
- the reference queue processor enabler Id
NotFoundException
- queueProcessorEnablerId,
queueProcessorId,
or referenceId
not
found or, queueProcessorEnablerId
or
referenceId
not related to queueProcessorId
NullArgumentException
- queueProcessorEnablerId,
queueProcessorId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderQueueProcessorEnablers(Id[] queueProcessorEnablerIds, Id queueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
queueProcessorEnablerIds
- the Ids
for a set of
QueueProcessorEnablers
queueProcessorId
- the Id
of a
QueueProcessor
NotFoundException
- queueProcessorId
not
found or, a queueProcessorEnablerId
not related
to queueProcessorId
NullArgumentException
- queueProcessorEnablerIds
or queueProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.