Interface PriceScheduleLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving PriceSchedule
objects. The PriceSchedule represents a collection of prices.
This session defines views that offer differing behaviors when retrieving multiple objects.
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- isolated store view: All order methods in this session operate,
retrieve and pertain to price schedules defined explicitly in the
current store. Using an isolated view is useful for managing price
schedules with the
PriceScheduleAdminSession. - federated store view: All priice schedule lookup methods in this session operate, retrieve and pertain to all price schedules defined in this store and any other stores implicitly available in this store through store inheritence.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performPricelookups.getPriceSchedule(Id priceScheduleId) Gets thePriceSchedulespecified by itsId.getPriceScheduleByPrice(Id priceId) Gets thePriceScheduleby aPriceId.Gets allPriceSchedules.getPriceSchedulesByGenusType(Type priceScheduleGenusType) Gets aPriceScheduleListcorresponding to the given price schedule genusTypewhich does not include price schedules of genus types derived from the specifiedType.getPriceSchedulesByIds(IdList priceScheduleIds) Gets aPriceScheduleListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the price schedules specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible.getPriceSchedulesByParentGenusType(Type priceScheduleGenusType) Gets aPriceScheduleListcorresponding to the given price schedule genusTypeand include any additional price schedules with genus types derived from the specifiedType.getPriceSchedulesByRecordType(Type priceScheduleRecordType) Gets aPriceScheduleListcontaining the given repository recordType.In plenary mode, the returned list contains all known price schedules or an error results.getStore()Gets theStoreassociated with this session.Gets theStoreIdassociated with this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of thePriceSchedulereturns is desired.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.
-
canLookupPriceSchedules
boolean canLookupPriceSchedules()Tests if this user can performPricelookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativePriceScheduleView
void useComparativePriceScheduleView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryPriceScheduleView
void usePlenaryPriceScheduleView()A complete view of thePriceSchedulereturns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedStoreView
void useFederatedStoreView()Federates the view for methods in this session. A federated view will include price schedules in stores which are children of this store in the store hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedStoreView
void useIsolatedStoreView()Isolates the view for methods in this session. An isolated view restricts retrievals to this store only.- Compliance:
mandatory- This method is must be implemented.
-
getPriceSchedule
PriceSchedule getPriceSchedule(Id priceScheduleId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets thePriceSchedulespecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedPriceSchedulemay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aPriceScheduleand retained for compatibility.- Parameters:
priceScheduleId-Idof thePriceSchedule- Returns:
- the price schedule
- Throws:
NotFoundException-priceScheduleIdnot foundNullArgumentException-priceScheduleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getPriceScheduleByPrice
PriceSchedule getPriceScheduleByPrice(Id priceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets thePriceScheduleby aPriceId.- Parameters:
priceId-Idof aPrice- Returns:
- the price schedule
- Throws:
NotFoundException-priceIdnot foundNullArgumentException-priceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getPriceSchedulesByIds
PriceScheduleList getPriceSchedulesByIds(IdList priceScheduleIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aPriceScheduleListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the price schedules specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessiblePriceSchedulesmay be omitted from the list and may present the elements in any order including returning a unique set.- Parameters:
priceScheduleIds- the list ofIdsto retrieve- Returns:
- the returned
PriceSchedulelist - Throws:
NotFoundException- anIdwas not foundNullArgumentException-priceScheduleIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPriceSchedulesByGenusType
PriceScheduleList getPriceSchedulesByGenusType(Type priceScheduleGenusType) throws OperationFailedException, PermissionDeniedException Gets aPriceScheduleListcorresponding to the given price schedule genusTypewhich does not include price schedules of genus types derived from the specifiedType. In plenary mode, the returned list contains all known price schedules or an error results. Otherwise, the returned list may contain only those price schedules that are accessible through this session.- Parameters:
priceScheduleGenusType- a price schedule genus type- Returns:
- the returned
PriceSchedulelist - Throws:
NullArgumentException-priceScheduleGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPriceSchedulesByParentGenusType
PriceScheduleList getPriceSchedulesByParentGenusType(Type priceScheduleGenusType) throws OperationFailedException, PermissionDeniedException Gets aPriceScheduleListcorresponding to the given price schedule genusTypeand include any additional price schedules with genus types derived from the specifiedType. In plenary mode, the returned list contains all known price schedules or an error results. Otherwise, the returned list may contain only those price schedules that are accessible through this session.- Parameters:
priceScheduleGenusType- a price schedule genus type- Returns:
- the returned
PriceSchedulelist - Throws:
NullArgumentException-priceScheduleGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPriceSchedulesByRecordType
PriceScheduleList getPriceSchedulesByRecordType(Type priceScheduleRecordType) throws OperationFailedException, PermissionDeniedException Gets aPriceScheduleListcontaining the given repository recordType.In plenary mode, the returned list contains all known price schedules or an error results. Otherwise, the returned list may contain only those price schedules that are accessible through this session.- Parameters:
priceScheduleRecordType- a price schedule record type- Returns:
- the returned
PriceSchedulelist - Throws:
NullArgumentException-priceScheduleRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPriceSchedules
Gets allPriceSchedules. In plenary mode, the returned list contains all known price schedules or an error results. Otherwise, the returned list may contain only those price schedules that are accessible through this session.- Returns:
- a list of
PriceSchedules - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-