Interface BrokerConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply
BrokerConstrainerEnablers to BrokerConstrainers . Multiple
BrokerConstrainerEnablers applied to an BrokerConstrainer may be
sequenced such that the first positive evaluation results in the
BrokerConstrainerEnabler used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignBrokerConstrainerEnablerToBrokerConstrainer(Id brokerConstrainerEnablerId, Id brokerConstrainerId) Adds an existingBrokerConstrainerEnablerto aBrokerConstrainer.booleanTests if this user can alter broker constrainer enabler/broker constrainer mappings.booleanTests if this user can orderBrokerConstrainerEnablers.Gets theDistributorassociated with this session.Gets theDistributorIdassociated with this session.voidmoveBrokerConstrainerEnablerAhead(Id brokerConstrainerEnablerId, Id brokerConstrainerId, Id referenceId) Reorders broker constrainer enablers for a broker constrainer by moving the specified broker constrainer enabler in front of a reference broker constrainer enabler.voidmoveBrokerConstrainerEnablerBehind(Id brokerConstrainerEnablerId, Id brokerConstrainerId, Id referenceId) Reorders broker constrainer enablers for a broker constrainer by moving the specified broker constrainer enabler behind a reference broker constrainer enabler.voidorderBrokerConstrainerEnablers(Id[] brokerConstrainerEnablerIds, Id brokerConstrainerId) Reorders a set of broker constrainer enablers for a broker constrainer.voidunassignBrokerConstrainerEnablerFromBrokerConstrainer(Id brokerConstrainerEnablerId, Id brokerConstrainerId) Removes an existingBrokerConstrainerEnablerfrom aBrokerConstrainer.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.
-
canAssignBrokerConstrainerEnablers
boolean canAssignBrokerConstrainerEnablers()Tests if this user can alter broker constrainer enabler/broker constrainer 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.
-
assignBrokerConstrainerEnablerToBrokerConstrainer
void assignBrokerConstrainerEnablerToBrokerConstrainer(Id brokerConstrainerEnablerId, Id brokerConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingBrokerConstrainerEnablerto aBrokerConstrainer.- Parameters:
brokerConstrainerEnablerId- theIdof theBrokerConstrainerEnablerbrokerConstrainerId- theIdof theBrokerConstrainer- Throws:
AlreadyExistsException-brokerConstrainerEnablerIdalready applied tobrokerConstrainerIdNotFoundException-brokerConstrainerEnablerIdorbrokerConstrainerIdnot foundNullArgumentException-brokerConstrainerEnablerIdorbrokerConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignBrokerConstrainerEnablerFromBrokerConstrainer
void unassignBrokerConstrainerEnablerFromBrokerConstrainer(Id brokerConstrainerEnablerId, Id brokerConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingBrokerConstrainerEnablerfrom aBrokerConstrainer.- Parameters:
brokerConstrainerEnablerId- theIdof theBrokerConstrainerEnablerbrokerConstrainerId- theIdof theBrokerConstrainer- Throws:
NotFoundException-brokerConstrainerEnablerIdorbrokerConstrainerIdnot found orbrokerConstrainerEnablerIdalready applied tobrokerConstrainerIdNullArgumentException-brokerConstrainerEnablerIdorbrokerConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceBrokerConstrainerEnablers
boolean canSequenceBrokerConstrainerEnablers()Tests if this user can orderBrokerConstrainerEnablers. 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:
falseifBrokerConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveBrokerConstrainerEnablerAhead
void moveBrokerConstrainerEnablerAhead(Id brokerConstrainerEnablerId, Id brokerConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker constrainer enablers for a broker constrainer by moving the specified broker constrainer enabler in front of a reference broker constrainer enabler.- Parameters:
brokerConstrainerEnablerId- theIdof theBrokerConstrainerEnablerbrokerConstrainerId- theIdof theBrokerConstrainerreferenceId- the reference broker constrainer enablerId- Throws:
NotFoundException-brokerConstrainerEnablerId brokerConstrainerId, orreferenceIdnot found or,brokerConstrainerEnablerIdorreferenceIdnot related tobrokerConstrainerIdNullArgumentException-brokerConstrainerEnablerId, brokerConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveBrokerConstrainerEnablerBehind
void moveBrokerConstrainerEnablerBehind(Id brokerConstrainerEnablerId, Id brokerConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders broker constrainer enablers for a broker constrainer by moving the specified broker constrainer enabler behind a reference broker constrainer enabler.- Parameters:
brokerConstrainerEnablerId- theIdof theBrokerConstrainerEnablerbrokerConstrainerId- theIdof theBrokerConstrainerreferenceId- the reference broker constrainerId- Throws:
NotFoundException-brokerConstrainerEnablerId brokerConstrainerId, orreferenceIdnot found or,brokerConstrainerEnablerIdorreferenceIdnot related tobrokerConstrainerIdNullArgumentException-brokerConstrainerEnablerId, brokerConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderBrokerConstrainerEnablers
void orderBrokerConstrainerEnablers(Id[] brokerConstrainerEnablerIds, Id brokerConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of broker constrainer enablers for a broker constrainer.- Parameters:
brokerConstrainerEnablerIds- theIdsfor a set ofBrokerConstrainerEnablersbrokerConstrainerId- theIdof theBrokerConstrainer- Throws:
NotFoundException-brokerConstrainerIdnot found or, abrokerConstrainerEnablerIdnot related tobrokerConstrainerIdNullArgumentException-brokerConstrainerEnablerIdsorbrokerConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-