Interface ConvocationLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving convocations.
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
- isolated academy view: All convocation methods in this session
operate, retrieve and pertain to convocations defined explicitly in
the current academy. Using an isolated view is useful for managing
convocations with the
ConvocationAdminSession. - federated academy view: All convocation lookup methods in this session operate, retrieve and pertain to all convocations defined in this academy and any other academies implicitly available in this academy through academy inheritence.
- active convocation view: All convocation lookup methods return convocations where the convocation is active.
- any status convocation view: Convocations of any status are returned.
The methods useFederatedAcademyView() and
useIsolatedAcademyView() behave as a radio group and one should be
selected before invoking any lookup methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can lookup convocations.Gets theAcademyassociated with this session.Gets theAcademyIdassociated with this session.getConvocation(Id convocationId) Gets theConvocationspecified by itsId.Gets all convocations.getConvocationsByAward(Id awardId) Gets a list of all convocations corresponding to an awardId.getConvocationsByDate(DateTime from, DateTime to) Gets a list of convocations with a date within the given date range inclusive.getConvocationsByGenusType(Type convocationGenusType) Gets aConvocationListcorresponding to the given convocation genusTypewhich does not include convocations of genus types derived from the specifiedType.getConvocationsByIds(IdList convocationIds) Gets aConvocationListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the convocations 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.getConvocationsByParentGenusType(Type convocationGenusType) Gets aConvocationListcorresponding to the given convocation genusTypeand include any additional convocations with genus types derived from the specifiedType.getConvocationsByRecordType(Type convocationRecordType) Gets aConvocationListcontaining the given convocation recordType.In plenary mode, the returned list contains all known convocations or an error results.getConvocationsBySponsor(Id resourceId) Gets a list of all convocations for a given sponsor.getConvocationsByTimePeriod(Id timePeriodId) Gets a list of all convocations corresponding to a time periodId.voidOnly active convocations are returned by methods in this session.voidAll convocations of any status are returned by all methods in 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 theConvocationreturns 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
-
getAcademyId
Id getAcademyId()Gets theAcademyIdassociated with this session.- Returns:
- the
Academy Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getAcademy
Gets theAcademyassociated with this session.- Returns:
- the academy
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupConvocations
boolean canLookupConvocations()Tests if this user can lookup convocations. 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 these operations.- Returns:
falseif convocation lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeConvocationView
void useComparativeConvocationView()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.
-
usePlenaryConvocationView
void usePlenaryConvocationView()A complete view of theConvocationreturns 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.
-
useFederatedAcademyView
void useFederatedAcademyView()Federates the view for methods in this session. A federated view will include convocations in academies which are children of this academy in the academy hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedAcademyView
void useIsolatedAcademyView()Isolates the view for methods in this session. An isolated view restricts retrievals to this academy only.- Compliance:
mandatory- This method is must be implemented.
-
useActiveConvocationView
void useActiveConvocationView()Only active convocations are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyStatusConvocationView
void useAnyStatusConvocationView()All convocations of any status are returned by all methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getConvocation
Convocation getConvocation(Id convocationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theConvocationspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedConvocationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aConvocationand retained for compatibility.- Parameters:
convocationId- theIdof theConvocationto retrieve- Returns:
- the returned
Convocation - Throws:
NotFoundException- noConvocationfound with the givenIdNullArgumentException-convocationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByIds
ConvocationList getConvocationsByIds(IdList convocationIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aConvocationListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the convocations 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, inaccessible convocations may be omitted from the list and may present the elements in any order including returning a unique set.- Parameters:
convocationIds- the list ofIdsto retrieve- Returns:
- the returned
Convocation list - Throws:
NotFoundException- anId wasnot foundNullArgumentException-convocationIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByGenusType
ConvocationList getConvocationsByGenusType(Type convocationGenusType) throws OperationFailedException, PermissionDeniedException Gets aConvocationListcorresponding to the given convocation genusTypewhich does not include convocations of genus types derived from the specifiedType. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
convocationGenusType- a convocation genus type- Returns:
- the returned
Convocationlist - Throws:
NullArgumentException-convocationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByParentGenusType
ConvocationList getConvocationsByParentGenusType(Type convocationGenusType) throws OperationFailedException, PermissionDeniedException Gets aConvocationListcorresponding to the given convocation genusTypeand include any additional convocations with genus types derived from the specifiedType. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
convocationGenusType- a convocation genus type- Returns:
- the returned
Convocationlist - Throws:
NullArgumentException-convocationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByRecordType
ConvocationList getConvocationsByRecordType(Type convocationRecordType) throws OperationFailedException, PermissionDeniedException Gets aConvocationListcontaining the given convocation recordType.In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
convocationRecordType- a convocation record type- Returns:
- the returned
Convocationlist - Throws:
NullArgumentException-convocationRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByDate
ConvocationList getConvocationsByDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of convocations with a date within the given date range inclusive. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
from- the starting dateto- the ending date- Returns:
- the returned
ConvocationList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByAward
ConvocationList getConvocationsByAward(Id awardId) throws OperationFailedException, PermissionDeniedException Gets a list of all convocations corresponding to an awardId. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
awardId- theIdof the award- Returns:
- the returned
ConvocationList - Throws:
NullArgumentException-awardIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsByTimePeriod
ConvocationList getConvocationsByTimePeriod(Id timePeriodId) throws OperationFailedException, PermissionDeniedException Gets a list of all convocations corresponding to a time periodId. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
timePeriodId- theIdof the time period- Returns:
- the returned
ConvocationList - Throws:
NullArgumentException-timePeriodisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocationsBySponsor
ConvocationList getConvocationsBySponsor(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets a list of all convocations for a given sponsor. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Parameters:
resourceId- theIdof the resource- Returns:
- the returned
ConvocationList - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConvocations
Gets all convocations. In plenary mode, the returned list contains all known convocations or an error results. Otherwise, the returned list may contain only those convocations that are accessible through this session.- Returns:
- a list of convocations
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-