Interface PriceEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply PriceEnablers to
Prices . A Price with multiple PriceEnablers means any
positive rule evaluation across the enablers result in an effective
Price .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPriceEnablerToPrice(Id priceEnablerId, Id priceId) Adds an existingPriceEnablerto aPrice.booleanTests if this user can alter price enabler/price mappings.booleanTests if this user can orderProceEnablers.getStore()Gets theStoreassociated with this session.Gets theStoreIdassociated with this session.voidmovePriceEnablerAhead(Id priceEnablerId, Id priceId, Id referenceId) Reorders price enablers for a price by moving the specified price enabler in front of a reference price enabler.voidmovePriceEnablerBehind(Id priceEnablerId, Id priceId, Id referenceId) Reorders price enablers for a price by moving the specified price enabler behind a reference price enabler.voidorderPriceEnablers(Id[] priceEnablerIds, Id priceId) Reorders a set of price enablers for a price.voidunassignPriceEnablerFromPrice(Id priceEnablerId, Id priceId) Removes aPriceEnablerfrom aPrice.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
-
getStoreId
Id getStoreId()Gets theStoreIdassociated with this session.- Returns:
- the
Store Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getStore
Gets theStoreassociated with this session.- Returns:
- the store
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignPriceEnablers
boolean canAssignPriceEnablers()Tests if this user can alter price enabler/price 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.
-
assignPriceEnablerToPrice
void assignPriceEnablerToPrice(Id priceEnablerId, Id priceId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingPriceEnablerto aPrice.- Parameters:
priceEnablerId- theIdof thePriceEnablerpriceId- theIdof thePrice- Throws:
AlreadyExistsException-priceEnablerIdis already applied topriceIdNotFoundException-priceEnablerIdorpriceIdnot foundNullArgumentException-priceEnablerIdorpriceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignPriceEnablerFromPrice
void unassignPriceEnablerFromPrice(Id priceEnablerId, Id priceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aPriceEnablerfrom aPrice.- Parameters:
priceEnablerId- theIdof thePriceEnablerpriceId- theIdof thePrice- Throws:
NotFoundException-priceEnablerIdorpriceIdnot found orpriceEnablerIdis not applied topriceIdNullArgumentException-priceEnablerIdorpriceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequencePriceEnablers
boolean canSequencePriceEnablers()Tests if this user can orderProceEnablers. 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:
falseifPriceEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
movePriceEnablerAhead
void movePriceEnablerAhead(Id priceEnablerId, Id priceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders price enablers for a price by moving the specified price enabler in front of a reference price enabler.- Parameters:
priceEnablerId- theIdof aPriceEnablerpriceId- theIdof aPricereferenceId- the reference price enablerId- Throws:
NotFoundException-priceEnablerId, priceId, orreferenceIdnot found or,priceEnablerIdorreferenceIdnot related topriceIdNullArgumentException-priceEnablerId, priceId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
movePriceEnablerBehind
void movePriceEnablerBehind(Id priceEnablerId, Id priceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders price enablers for a price by moving the specified price enabler behind a reference price enabler.- Parameters:
priceEnablerId- theIdof aPriceEnablerpriceId- theIdof aPricereferenceId- the reference price enablerId- Throws:
NotFoundException-priceEnablerId, priceId, orreferenceIdnot found or,priceEnablerIdorreferenceIdnot related topriceIdNullArgumentException-priceEnablerId, priceId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderPriceEnablers
void orderPriceEnablers(Id[] priceEnablerIds, Id priceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of price enablers for a price.- Parameters:
priceEnablerIds- theIdsfor a set ofPriceEnablerspriceId- theIdof aPrice- Throws:
NotFoundException-priceIdnot found or, apriceEnablerIdnot related topriceIdNullArgumentException-priceEnablerIdsorpriceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-