public interface BrokerConstrainerRuleApplicationSession extends OsidSession
This session provides methods to apply BrokerConstrainers
to Brokers.
A Broker
with multiple
BrokerConstrainers
means any positive rule evaluation
across the result in an effective Broker.
Modifier and Type | Method and Description |
---|---|
void |
assignBrokerConstrainerToBroker(Id brokerConstrainerId,
Id brokerId)
Adds an existing
BrokerConstrainer to a Broker. |
boolean |
canAssignBrokerConstrainers()
Tests if this user can alter broker constrainer/broker mappings.
|
boolean |
canSequenceBrokerConstrainers()
Tests if this user can order
BrokerConstrainers. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
void |
moveBrokerConstrainerAhead(Id brokerConstrainerId,
Id brokerId,
Id referenceId)
Reorders broker constrainers for a broker by moving the specified
broker constrainer in front of a reference broker.
|
void |
moveBrokerConstrainerBehind(Id brokerConstrainerId,
Id brokerId,
Id referenceId)
Reorders broker constrainers for a broker by moving the specified
broker constrainer behind a reference broker.
|
void |
orderBrokerConstrainers(Id[] brokerConstrainerIds,
Id brokerId)
Reorders a set of broker constrainers for a broker.
|
void |
unassignBrokerConstrainerFromBroker(Id brokerConstrainerId,
Id brokerId)
Removes a
BrokerConstrainer from a Broker. |
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 canAssignBrokerConstrainers()
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 assignBrokerConstrainerToBroker(Id brokerConstrainerId, Id brokerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
BrokerConstrainer
to a Broker.
brokerConstrainerId
- the Id
of the
BrokerConstrainer
brokerId
- the Id
of the Broker
AlreadyExistsException
- brokerConstrainerId
is already applied to brokerId
NotFoundException
- brokerConstrainerId
or brokerId
not foundNullArgumentException
- brokerConstrainerId
or brokerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignBrokerConstrainerFromBroker(Id brokerConstrainerId, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerConstrainer
from a Broker.
brokerConstrainerId
- the Id
of the
BrokerConstrainer
brokerId
- the Id
of the Broker
NotFoundException
- brokerConstrainerId
or brokerId
not found or
brokerConstrainerId
not applied to brokerId
NullArgumentException
- brokerConstrainerId
or brokerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceBrokerConstrainers()
BrokerConstrainers.
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 BrokerConstrainer
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveBrokerConstrainerAhead(Id brokerConstrainerId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
brokerConstrainerId
- the Id
of a
BrokerConstrainer
brokerId
- the Id
of a Broker
referenceId
- the reference broker constrainer Id
NotFoundException
- brokerConstrainerId,
brokerId,
or referenceId
not found or,
brokerConstrainerId
or referenceId
not related to brokerId
NullArgumentException
- brokerConstrainerId,
brokerId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveBrokerConstrainerBehind(Id brokerConstrainerId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
brokerConstrainerId
- the Id
of a
BrokerConstrainer
brokerId
- the Id
of a Broker
referenceId
- the reference broker constrainer Id
NotFoundException
- brokerConstrainerId,
brokerId,
or referenceId
not found or,
brokerConstrainerId
or referenceId
not related to brokerId
NullArgumentException
- brokerConstrainerId,
brokerId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderBrokerConstrainers(Id[] brokerConstrainerIds, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
brokerConstrainerIds
- the Ids
for a set of
BrokerConstrainers
brokerId
- the Id
of a Broker
NotFoundException
- brokerId
not found
or, a brokerConstrainerId
not related to
brokerId
NullArgumentException
- brokerConstrainerIds
or brokerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.