Interface BrokerConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply BrokerConstrainers to
Brokers . Multiple BrokerConstrainers applied to an
Broker may be sequenced such that the first positive evaluation results
in the BrokerConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignBrokerConstrainerToBroker(Id brokerConstrainerId, Id brokerId) Adds an existingBrokerConstrainerto aBroker.booleanTests if this user can alter broker constrainer/broker mappings.booleanTests if this user can orderBrokerConstrainers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveBrokerConstrainerAhead(Id brokerConstrainerId, Id brokerId, Id referenceId) Reorders broker constrainers for a broker by moving the specified broker constrainer in front of a reference broker constrainer.voidmoveBrokerConstrainerBehind(Id brokerConstrainerId, Id brokerId, Id referenceId) Reorders broker constrainers for a broker by moving the specified broker constrainer behind a reference broker constrainer.voidorderBrokerConstrainers(Id[] brokerConstrainerIds, Id brokerId) Reorders a set of broker constrainers for a broker.voidunassignBrokerConstrainerFromBroker(Id brokerConstrainerId, Id brokerId) Removes an existingBrokerConstrainerfrom aBroker.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
-
getDistributorId
Id getDistributorId()Gets theDistributorIdassociated with this session.- Returns:
- the
Distributor Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getDistributor
Gets theDistributorassociated with this session.- Returns:
- the distributor
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignBrokerConstrainers
boolean canAssignBrokerConstrainers()Tests if this user can alter broker constrainer/broker 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 lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignBrokerConstrainerToBroker
void assignBrokerConstrainerToBroker(Id brokerConstrainerId, Id brokerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingBrokerConstrainerto aBroker.- Parameters:
brokerConstrainerId- theIdof theBrokerConstrainerbrokerId- theIdof theBroker- Throws:
AlreadyExistsException-brokerConstrainerIdalready applied tobrokerIdNotFoundException-brokerConstrainerIdorbrokerIdnot foundNullArgumentException-brokerConstrainerIdorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignBrokerConstrainerFromBroker
void unassignBrokerConstrainerFromBroker(Id brokerConstrainerId, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingBrokerConstrainerfrom aBroker.- Parameters:
brokerConstrainerId- theIdof theBrokerConstrainerbrokerId- theIdof theBroker- Throws:
NotFoundException-brokerConstrainerIdorbrokerIdnot found orbrokerConstrainerIdalready applied tobrokerIdNullArgumentException-brokerConstrainerIdorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceBrokerConstrainers
boolean canSequenceBrokerConstrainers()Tests if this user can orderBrokerConstrainers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifBrokerConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveBrokerConstrainerAhead
void moveBrokerConstrainerAhead(Id brokerConstrainerId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker constrainers for a broker by moving the specified broker constrainer in front of a reference broker constrainer.- Parameters:
brokerConstrainerId- theIdof theBrokerConstrainerbrokerId- theIdof theBrokerreferenceId- the reference broker constrainerId- Throws:
NotFoundException-brokerConstrainerId, brokerId, orreferenceIdnot found or,brokerConstrainerIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerConstrainerId, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveBrokerConstrainerBehind
void moveBrokerConstrainerBehind(Id brokerConstrainerId, Id brokerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker constrainers for a broker by moving the specified broker constrainer behind a reference broker constrainer.- Parameters:
brokerConstrainerId- theIdof theBrokerConstrainerbrokerId- theIdof theBrokerreferenceId- the reference broker constrainerId- Throws:
NotFoundException-brokerConstrainerId, brokerId, orreferenceIdnot found or,brokerConstrainerIdorreferenceIdnot related tobrokerIdNullArgumentException-brokerConstrainerId, brokerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderBrokerConstrainers
void orderBrokerConstrainers(Id[] brokerConstrainerIds, Id brokerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of broker constrainers for a broker.- Parameters:
brokerConstrainerIds- theIdsfor a set ofBrokerConstrainersbrokerId- theIdof theBroker- Throws:
NotFoundException-brokerIdnot found or, abrokerConstrainerIdnot related tobrokerIdNullArgumentException-brokerConstrainerIdsorbrokerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-