public interface PriceEnablerStoreAssignmentSession extends OsidSession
This session provides methods to re-assign PriceEnabler
to Store mappings. A PriceEnabler may appear
in multiple Store objects and removing the last reference
to a PriceEnabler is the equivalent of deleting it. Each
Store may have its own authorizations governing who is
allowed to operate on it.
Adding a reference of a PriceEnabler to another
Store is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignPriceEnablerToStore(Id priceEnablerId,
Id storeId)
Adds an existing
PriceEnabler to an Store. |
boolean |
canAssignPriceEnablers()
Tests if this user can alter price enabler/store mappings.
|
boolean |
canAssignPriceEnablersToStore(Id storeId)
Tests if this user can alter price enabler/store mappings.
|
IdList |
getAssignableStoreIds(Id storeId)
Gets a list of stores including and under the given store node in
which any price enabler can be assigned.
|
IdList |
getAssignableStoreIdsForPriceEnabler(Id storeId,
Id priceEnablerId)
Gets a list of stores including and under the given store node in
which a specific price enabler can be assigned.
|
void |
unassignPriceEnablerFromStore(Id priceEnablerId,
Id storeId)
Removes a
PriceEnabler from an Store. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean 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. boolean canAssignPriceEnablersToStore(Id storeId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users.storeId - the Id of the Store false if mapping is not authorized, true
otherwiseNullArgumentException - storeId is
null mandatory - This method must be implemented. IdList getAssignableStoreIds(Id storeId) throws OperationFailedException
storeId - the Id of the Store Ids NullArgumentException - storeId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableStoreIdsForPriceEnabler(Id storeId, Id priceEnablerId) throws OperationFailedException
storeId - the Id of the Store priceEnablerId - the Id of the
PriceEnabler Ids NullArgumentException - storeId or
priceEnablerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignPriceEnablerToStore(Id priceEnablerId, Id storeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
PriceEnabler to an Store.
priceEnablerId - the Id of the
PriceEnabler storeId - the Id of the Store AlreadyExistsException - priceEnablerId
is already assigned to storeId NotFoundException - priceEnablerId or
storeId not foundNullArgumentException - priceEnablerId
or storeId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignPriceEnablerFromStore(Id priceEnablerId, Id storeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
PriceEnabler from an Store. priceEnablerId - the Id of the
PriceEnabler storeId - the Id of the Store NotFoundException - priceEnablerId or
storeId not found or priceEnablerId
is not assigned to storeId NullArgumentException - priceEnablerId
or storeId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.