public interface BrokerProcessorEnablerDistributorAssignmentSession extends OsidSession
This session provides methods to re-assign
BrokerProcessorEnabler
to Distributor
mappings. A
BrokerProcessorEnabler
may appear in multiple
Distributor
objects and removing the last reference to a
BrokerProcessorEnabler
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 BrokerProcessorEnabler
to
another Distributor
is not a copy operation (eg: does not
change its Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignBrokerProcessorEnablerToDistributor(Id brokerProcessorEnablerId,
Id distributorId)
Adds an existing
BrokerProcessorEnabler to a
Distributor. |
boolean |
canAssignBrokerProcessorEnablers()
Tests if this user can alter broker processor enabler/distributor
mappings.
|
boolean |
canAssignBrokerProcessorEnablersToDistributor(Id distributorId)
Tests if this user can alter broker processor enabler/distributor
mappings.
|
IdList |
getAssignableDistributorIds(Id distributorId)
Gets a list of distributors including and under the given distributor
node in which any broker processor enabler can be assigned.
|
IdList |
getAssignableDistributorIdsForBrokerProcessorEnabler(Id distributorId,
Id brokerProcessorEnablerId)
Gets a list of distributors including and under the given distributor
node in which a specific broker processor enabler can be assigned.
|
void |
unassignBrokerProcessorEnablerFromDistributor(Id brokerProcessorEnablerId,
Id distributorId)
Removes a
BrokerProcessorEnabler from a
Distributor. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignBrokerProcessorEnablers()
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. boolean canAssignBrokerProcessorEnablersToDistributor(Id distributorId)
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users.distributorId
- the Id
of the Distributor
false
if mapping is not authorized, true
otherwiseNullArgumentException
- distributorId
is
null
mandatory
- This method must be implemented. IdList getAssignableDistributorIds(Id distributorId) throws OperationFailedException
distributorId
- the Id
of the Distributor
Ids
NullArgumentException
- distributorId
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAssignableDistributorIdsForBrokerProcessorEnabler(Id distributorId, Id brokerProcessorEnablerId) throws OperationFailedException
distributorId
- the Id
of the Distributor
brokerProcessorEnablerId
- the Id
of the
BrokerProcessorEnabler
Ids
NullArgumentException
- distributorId
or
brokerProcessorEnablerId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignBrokerProcessorEnablerToDistributor(Id brokerProcessorEnablerId, Id distributorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
BrokerProcessorEnabler
to a
Distributor.
brokerProcessorEnablerId
- the Id
of the
BrokerProcessorEnabler
distributorId
- the Id
of the Distributor
AlreadyExistsException
-
brokerProcessorEnablerId
is already assigned to
distributorId
NotFoundException
- brokerProcessorEnablerId
or distributorId
not foundNullArgumentException
- brokerProcessorEnablerId
or distributorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignBrokerProcessorEnablerFromDistributor(Id brokerProcessorEnablerId, Id distributorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BrokerProcessorEnabler
from a
Distributor.
brokerProcessorEnablerId
- the Id
of the
BrokerProcessorEnabler
distributorId
- the Id
of the Distributor
NotFoundException
- brokerProcessorEnablerId
or distributorId
not found or
brokerProcessorEnablerId
not assigned to
distributorId
NullArgumentException
- brokerProcessorEnablerId
or distributorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.