Interface PostEntryLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving PostEntries . The
PostEntry represents a period in which payers are offered.
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 business view: All post entry methods in this session
operate, retrieve and pertain to post entries defined explicitly in
the current business. Using an isolated view is useful for managing
PostEntrieswith thePostEntryAdminSession. - federated business view: All post entry methods in this session operate, retrieve and pertain to all post entries defined in this business and any other post entries implicitly available in this business through business inheritence.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedBusinessView() and
useIsolatedBusinessView() behave as a radio group and one should be
selected before invoking any lookup methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performPostEntrylookups.Gets theBusinessassociated with this session.Gets theBusinessIdassociated with this session.Gets allPostEntries.getPostEntriesByAccount(Id accountId) Gets aPostEntryListfor the given account.getPostEntriesByAccountAndActivity(Id accountId, Id activityId) Gets aPostEntryListfor the given activity and account.getPostEntriesByAccountAndActivityAndFiscalPeriod(Id accountId, Id activityId, Id fiscalPeriodId) Gets aPostEntryListfor the given account in a fiscal period.getPostEntriesByAccountAndFiscalPeriod(Id accountId, Id fiscalPeriodId) Gets aPostEntryListfor the given account in a fiscal period.getPostEntriesByActivity(Id activityId) Gets aPostEntryListfor the given activity.getPostEntriesByActivityAndFiscalPeriod(Id activityId, Id fiscalPeriodId) Gets aPostEntryListfor the given activity in a fiscal period.getPostEntriesByDate(DateTime from, DateTime to) Gets aPostEntryListposted within given date range inclusive.getPostEntriesByFiscalPeriod(Id fiscalPeriodId) Gets aPostEntryListin the given fiscal period.getPostEntriesByGenusType(Type entryGenusType) Gets aPostEntryListcorresponding to the given post entry genusTypewhich does not include post entries of genus types derived from the specifiedType.getPostEntriesByIds(IdList postEntryIds) Gets aPostEntryListcorresponding to the givenIdList.getPostEntriesByParentGenusType(Type entryGenusType) Gets aPostEntryListcorresponding to the given post entry genusTypeand include any additional post entries with genus types derived from the specifiedType.getPostEntriesByRecordType(Type postEntryRecordType) Gets qPostEntryListcontaining the given post entry recordType.getPostEntriesForPost(Id postId) Gets aPostEntryListfor the given post.getPostEntry(Id postEntryId) Gets thePostEntryspecified by itsId.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 thePostEntryreturns 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
-
getBusinessId
Id getBusinessId()Gets theBusinessIdassociated with this session.- Returns:
- the
Business Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBusiness
Gets theBusinessassociated with this session.- Returns:
- the business
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupPostEntries
boolean canLookupPostEntries()Tests if this user can performPostEntrylookups. 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 opt not to offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativePostEntryView
void useComparativePostEntryView()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.
-
usePlenaryPostEntryView
void usePlenaryPostEntryView()A complete view of thePostEntryreturns 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.
-
useFederatedBusinessView
void useFederatedBusinessView()Federates the view for methods in this session. A federated view will include post entries in businesses which are children of this business in the business hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedBusinessView
void useIsolatedBusinessView()Isolates the view for methods in this session. An isolated view restricts lookups to this business only.- Compliance:
mandatory- This method is must be implemented.
-
getPostEntry
PostEntry getPostEntry(Id postEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets thePostEntryspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedPostEntrymay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aPostEntryand retained for compatibility.- Parameters:
postEntryId-Idof thePostEntry- Returns:
- the entry
- Throws:
NotFoundException-postEntryIdnot foundNullArgumentException-postEntryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getPostEntriesByIds
PostEntryList getPostEntriesByIds(IdList postEntryIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aPostEntryListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the post entries 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, inaccessiblePostEntriesmay be omitted from the list and may present the elements in any order including returning a unique set.- Parameters:
postEntryIds- the list ofIdsto retrieve- Returns:
- the returned
PostEntrylist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-postEntryIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByGenusType
PostEntryList getPostEntriesByGenusType(Type entryGenusType) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListcorresponding to the given post entry genusTypewhich does not include post entries of genus types derived from the specifiedType. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
entryGenusType- a post entry genus type- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-entryGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByParentGenusType
PostEntryList getPostEntriesByParentGenusType(Type entryGenusType) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListcorresponding to the given post entry genusTypeand include any additional post entries with genus types derived from the specifiedType. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
entryGenusType- a post entry genus type- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-entryGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByRecordType
PostEntryList getPostEntriesByRecordType(Type postEntryRecordType) throws OperationFailedException, PermissionDeniedException Gets qPostEntryListcontaining the given post entry recordType. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
postEntryRecordType- a post entry record type- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-postEntryRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesForPost
PostEntryList getPostEntriesForPost(Id postId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given post. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
postId- a postId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-postIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByFiscalPeriod
PostEntryList getPostEntriesByFiscalPeriod(Id fiscalPeriodId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListin the given fiscal period. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
fiscalPeriodId- a fiscal periodId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-fiscalPeriodIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByDate
PostEntryList getPostEntriesByDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListposted within given date range inclusive. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
from- start of date rangeto- end of date range- Returns:
- the returned
PostEntrylist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByAccount
PostEntryList getPostEntriesByAccount(Id accountId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given account. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
accountId- an accountId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-accountIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByAccountAndFiscalPeriod
PostEntryList getPostEntriesByAccountAndFiscalPeriod(Id accountId, Id fiscalPeriodId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given account in a fiscal period. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
accountId- an accountIdfiscalPeriodId- a fiscal periodId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-accountIdorfiscalPeriodIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByActivity
PostEntryList getPostEntriesByActivity(Id activityId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given activity. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
activityId- an activityId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-activityIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByActivityAndFiscalPeriod
PostEntryList getPostEntriesByActivityAndFiscalPeriod(Id activityId, Id fiscalPeriodId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given activity in a fiscal period. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
activityId- an activityIdfiscalPeriodId- a fiscal periodId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-activityIdorfiscalPeriodIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByAccountAndActivity
PostEntryList getPostEntriesByAccountAndActivity(Id accountId, Id activityId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given activity and account. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
accountId- an accountIdactivityId- an activityId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-accountIdoractivityIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntriesByAccountAndActivityAndFiscalPeriod
PostEntryList getPostEntriesByAccountAndActivityAndFiscalPeriod(Id accountId, Id activityId, Id fiscalPeriodId) throws OperationFailedException, PermissionDeniedException Gets aPostEntryListfor the given account in a fiscal period. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Parameters:
accountId- an accountIdactivityId- an activityIdfiscalPeriodId- a fiscal periodId- Returns:
- the returned
PostEntrylist - Throws:
NullArgumentException-accountId, activityId, orfiscalPeriodIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getPostEntries
Gets allPostEntries. In plenary mode, the returned list contains all known post entries or an error results. Otherwise, the returned list may contain only those post entries that are accessible through this session.- Returns:
- a list of
PostEntries - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-