Interface CommissionEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply CommissionEnablers to
Commissions . A Commission with multiple
CommissionEnablers means any positive rule evaluation across the enablers
result in an accessible Commission .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCommissionEnablerToCommission(Id commissionEnablerId, Id commissionId) Adds an existingCommissionEnablerto aCommission.booleanTests if this user can alter commission enabler/commission mappings.booleanTests if this user can orderCommissionEnablers.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.voidmoveCommissionEnablerAhead(Id commissionEnablerId, Id commissionId, Id referenceId) Reorders commission enablers for a commission by moving the specified commission enabler in front of a reference commission enabler.voidmoveCommissionEnablerBehind(Id commissionEnablerId, Id commissionId, Id referenceId) Reorders commission enablers for a commission by moving the specified commission enabler behind a reference commission enabler.voidorderCommissionEnablers(Id[] commissionEnablerIds, Id commissionId) Reorders a set of commission enablers for a commission.voidunassignCommissionEnablerFromCommission(Id commissionEnablerId, Id commissionId) Removes aCommissionEnablerfrom aCommission.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
-
getFoundryId
Id getFoundryId()Gets theFoundryIdassociated with this session.- Returns:
- the
Foundry Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFoundry
Gets theFoundryassociated with this session.- Returns:
- the foundry
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignCommissionEnablers
boolean canAssignCommissionEnablers()Tests if this user can alter commission enabler/commission 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.
-
assignCommissionEnablerToCommission
void assignCommissionEnablerToCommission(Id commissionEnablerId, Id commissionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingCommissionEnablerto aCommission.- Parameters:
commissionEnablerId- theIdof theCommissionEnablercommissionId- theIdof theCommission- Throws:
AlreadyExistsException-commissionEnablerIdis already applied tocommissionIdNotFoundException-commissionEnablerIdorcommissionIdnot foundNullArgumentException-commissionEnablerIdorcommissionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignCommissionEnablerFromCommission
void unassignCommissionEnablerFromCommission(Id commissionEnablerId, Id commissionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aCommissionEnablerfrom aCommission.- Parameters:
commissionEnablerId- theIdof theCommissionEnablercommissionId- theIdof theCommission- Throws:
NotFoundException-commissionEnablerIdorcommissionIdnot found orcommissionEnablerIdnot applied tocommissionIdNullArgumentException-commissionEnablerIdorcommissionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceCommissionEnablers
boolean canSequenceCommissionEnablers()Tests if this user can orderCommissionEnablers. 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:
falseifCommissionEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveCommissionEnablerAhead
void moveCommissionEnablerAhead(Id commissionEnablerId, Id commissionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders commission enablers for a commission by moving the specified commission enabler in front of a reference commission enabler.- Parameters:
commissionEnablerId- theIdof aCommissionEnablercommissionId- theIdof aCommissionreferenceId- the reference commission enablerId- Throws:
NotFoundException-commissionEnablerId, commissionId, orreferenceIdnot found or,commissionEnablerIdorreferenceIdnot related tocommissionIdNullArgumentException-commissionEnablerId,commissionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveCommissionEnablerBehind
void moveCommissionEnablerBehind(Id commissionEnablerId, Id commissionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders commission enablers for a commission by moving the specified commission enabler behind a reference commission enabler.- Parameters:
commissionEnablerId- theIdof aCommissionEnablercommissionId- theIdof aCommissionreferenceId- the reference commission enablerId- Throws:
NotFoundException-commissionEnablerId, commissionId, orreferenceIdnot found or,commissionEnablerIdorreferenceIdnot related tocommissionIdNullArgumentException-commissionEnablerId,commissionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderCommissionEnablers
void orderCommissionEnablers(Id[] commissionEnablerIds, Id commissionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of commission enablers for a commission.- Parameters:
commissionEnablerIds- theIdsfor a set ofCommissionnEnablerscommissionId- theIdof aCommission- Throws:
NotFoundException-commissionIdnot found or, acommissionEnablerIdnot related tocommissionIdNullArgumentException-commissionEnablerIdsorcommissionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-