OSID Logo
OSID Specifications
ordering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ordering.PriceScheduleStoreAssignmentSession
Implementsosid.OsidSession
Description

This session provides methods to re-assign PriceSchedules to Stores. A Price may map to multiple Stores and removing the last reference to a PriceSchedule 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 PriceSchedule to another Store is not a copy operation (eg: does not change its Id ).

MethodcanAssignPriceSchedules
Description

Tests if this user can alter price schedule/store 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 a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignPriceSchedulesToStore
Description

Tests if this user can alter price schedule/store 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 a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup assignment to unauthorized users.

Parametersosid.id.IdstoreIdthe Id of the Store
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT storeId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableStoreIds
Description

Gets a list of stores including and under the given store node in which any price schedule can be assigned.

Parametersosid.id.IdstoreIdthe Id of the Store
Returnosid.id.IdListlist of assignable store Ids
ErrorsNULL_ARGUMENT storeId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableStoreIdsForPriceSchedule
Description

Gets a list of stores including and under the given store node in which a specific price schedule can be assigned.

Parametersosid.id.IdstoreIdthe Id of the Store
osid.id.IdpriceScheduleIdthe Id of the PriceSchedule
Returnosid.id.IdListlist of assignable store Ids
ErrorsNULL_ARGUMENT storeId or priceScheduleId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignPriceScheduleToStore
Description

Adds an existing PriceSchedule to a Store.

Parametersosid.id.IdpricScheduleeIdthe Id of the PriceSchedule
osid.id.IdstoreIdthe Id of the Store
ErrorsALREADY_EXISTS priceScheduleId is already assigned to storeId
NOT_FOUND priceScheduleId or storeId not found
NULL_ARGUMENT priceScheduleId or storeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignPriceScheduleFromStore
Description

Removes a PriceSchedule from a Store.

Parametersosid.id.IdpriceScheduleIdthe Id of the PriceSchedule
osid.id.IdstoreIdthe Id of the Store
ErrorsNOT_FOUND priceScheduleId or storeId not found or priceScheduleId not assigned to storeId
NULL_ARGUMENT priceScheduleId or storeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.