public interface PriceEnablerRuleApplicationSession extends 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.
| Modifier and Type | Method and Description |
|---|---|
void |
assignPriceEnablerToPrice(Id priceEnablerId,
Id priceId)
Adds an existing
PriceEnabler to a Price. |
boolean |
canAssignPriceEnablers()
Tests if this user can alter price enabler/price mappings.
|
boolean |
canSequencePriceEnablers()
Tests if this user can order
ProceEnablers. |
Store |
getStore()
Gets the
Store associated with this session. |
Id |
getStoreId()
Gets the
Store Id associated with this
session. |
void |
movePriceEnablerAhead(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.
|
void |
movePriceEnablerBehind(Id priceEnablerId,
Id priceId,
Id referenceId)
Reorders price enablers for a price by moving the specified price
enabler behind a reference price enabler.
|
void |
orderPriceEnablers(Id[] priceEnablerIds,
Id priceId)
Reorders a set of price enablers for an price.
|
void |
unassignPriceEnablerFromPrice(Id priceEnablerId,
Id priceId)
Removes a
PriceEnabler from a Price. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getStoreId()
Store Id associated with this
session. Store Id associated with this sessionmandatory - This method must be implemented. Store getStore() throws OperationFailedException, PermissionDeniedException
Store associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAssignPriceEnablers()
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. void assignPriceEnablerToPrice(Id priceEnablerId, Id priceId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
PriceEnabler to a Price.
priceEnablerId - the Id of the
PriceEnabler priceId - the Id of the Price AlreadyExistsException - priceEnablerId
is already applied to priceId NotFoundException - priceEnablerId or
priceId not foundNullArgumentException - priceEnablerId
or priceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignPriceEnablerFromPrice(Id priceEnablerId, Id priceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PriceEnabler from a Price. priceEnablerId - the Id of the
PriceEnabler priceId - the Id of the Price NotFoundException - priceEnablerId or
priceId not found or priceEnablerId
is not applied to priceId NullArgumentException - priceEnablerId
or priceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSequencePriceEnablers()
ProceEnablers. A return of
true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false if PriceEnabler ordering
is not authorized, true otherwisemandatory - This method must be implemented. void movePriceEnablerAhead(Id priceEnablerId, Id priceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
priceEnablerId - the Id of a PriceEnabler
priceId - the Id of a Price referenceId - the reference price enabler Id NotFoundException - priceEnablerId, priceId,
or referenceId not found or,
priceEnablerId or referenceId not
related to priceId NullArgumentException - priceEnablerId, priceId,
or referenceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void movePriceEnablerBehind(Id priceEnablerId, Id priceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
priceEnablerId - the Id of a PriceEnabler
priceId - the Id of a Price referenceId - the reference price enabler Id NotFoundException - priceEnablerId, priceId,
or referenceId not found or,
priceEnablerId or referenceId not
related to priceId NullArgumentException - priceEnablerId, priceId,
or referenceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void orderPriceEnablers(Id[] priceEnablerIds, Id priceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
priceEnablerIds - the Ids for a set of
PriceEnablers priceId - the Id of a Price NotFoundException - priceId not found
or, a priceEnablerId not related to
priceId NullArgumentException - priceEnablerIds
or priceId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.