Interface ConferralLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving conferrals.
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 conferral methods in this session
operate, retrieve and pertain to conferrals defined explicitly in the
current academy. Using an isolated view is useful for managing
conferrals with the
ConferralAdminSession. - federated academy view: All conferral lookup methods in this session operate, retrieve and pertain to all conferrals defined in this academy and any other academies implicitly available in this academy through academy inheritence.
- effective conferral view: All conferral lookup methods return conferrals where the current dates falls in between the effective dates inclusive.
- any effective conferral view: Conferrals of any effective date 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 conferrals.Gets theAcademyassociated with this session.Gets theAcademyIdassociated with this session.getConferral(Id conferralId) Gets theConferralspecified by itsId.Gets all conferrals.getConferralsByConvocation(Id convocationId) Gets a list of all conferrals corresponding to a convocationId.getConferralsByConvocationOnDate(Id convocationId, DateTime from, DateTime to) Gets a list of all conferrals corresponding to a convocationIdand effective during the entire given date range inclusive but not confined to the date range.getConferralsByGenusType(Type conferralGenusType) Gets aConferralListcorresponding to the given conferral genusTypewhich does not include conferrals of genus types derived from the specifiedType.getConferralsByIds(IdList conferralIds) Gets aConferralListcorresponding to the givenIdList.getConferralsByParentGenusType(Type conferralGenusType) Gets aConferralListcorresponding to the given conferral genusTypeand include any additional conferrals with genus types derived from the specifiedType.getConferralsByRecordType(Type conferralRecordType) Gets aConferralListcontaining the given conferral recordType.getConferralsByReference(Id referenceId) Gets a list of conferrals corresponding to a referenceId.getConferralsByReferenceOnDate(Id referenceId, DateTime from, DateTime to) Gets a list of all conferrals corresponding to a referenceIdand effective during the entire given date range inclusive but not confined to the date range.getConferralsForAward(Id awardId) Gets a list of all conferrals corresponding to an awardId.getConferralsForAwardOnDate(Id awardId, DateTime from, DateTime to) Gets a list of all conferrals corresponding to an awardIdand effective during the entire given date range inclusive but not confined to the date range.getConferralsForRecipient(Id resourceId) Gets a list of conferrals corresponding to a resourceId.getConferralsForRecipientAndAward(Id resourceId, Id awardid) Gets a list of conferralsfor the given resource and award.getConferralsForRecipientAndAwardOnDate(Id resourceId, Id awardid, DateTime from, DateTime to) Gets a list of all conferrals for the given resource, award, and effective during the entire given date range inclusive but not confined to the date range.getConferralsForRecipientOnDate(Id resourceId, DateTime from, DateTime to) Gets a list of all conferrals corresponding to a resourceIdand effective during the entire given date range inclusive but not confined to the date range.getConferralsOnDate(DateTime from, DateTime to) Gets a list of conferrals effective during the entire given date range inclusive but not confined to the date range.voidAll conferrals of any effective dates 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.voidOnly conferrals whose effective dates are current are returned by methods in this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theConferralreturns 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.
-
canLookupConferrals
boolean canLookupConferrals()Tests if this user can lookup conferrals. 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 conferral lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeConferralView
void useComparativeConferralView()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.
-
usePlenaryConferralView
void usePlenaryConferralView()A complete view of theConferralreturns 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 conferrals 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.
-
useEffectiveConferralView
void useEffectiveConferralView()Only conferrals whose effective dates are current are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveConferralView
void useAnyEffectiveConferralView()All conferrals of any effective dates are returned by all methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getConferral
Conferral getConferral(Id conferralId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theConferralspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedConferralmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aConferraland retained for compatibility. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
conferralId- theIdof theConferralto retrieve- Returns:
- the returned
Conferral - Throws:
NotFoundException- noConferralfound with the givenIdNullArgumentException-conferralIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByIds
ConferralList getConferralsByIds(IdList conferralIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aConferralListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the conferrals 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 conferrals may be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
conferralIds- the list ofIdsto retrieve- Returns:
- the returned
Conferral list - Throws:
NotFoundException- anId wasnot foundNullArgumentException-conferralIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByGenusType
ConferralList getConferralsByGenusType(Type conferralGenusType) throws OperationFailedException, PermissionDeniedException Gets aConferralListcorresponding to the given conferral genusTypewhich does not include conferrals of genus types derived from the specifiedType. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
conferralGenusType- a conferral genus type- Returns:
- the returned
Conferrallist - Throws:
NullArgumentException-conferralGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByParentGenusType
ConferralList getConferralsByParentGenusType(Type conferralGenusType) throws OperationFailedException, PermissionDeniedException Gets aConferralListcorresponding to the given conferral genusTypeand include any additional conferrals with genus types derived from the specifiedType. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
conferralGenusType- a conferral genus type- Returns:
- the returned
Conferrallist - Throws:
NullArgumentException-conferralGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByRecordType
ConferralList getConferralsByRecordType(Type conferralRecordType) throws OperationFailedException, PermissionDeniedException Gets aConferralListcontaining the given conferral recordType. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
conferralRecordType- a conferral record type- Returns:
- the returned
Conferrallist - Throws:
NullArgumentException-conferralRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsOnDate
ConferralList getConferralsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of conferrals effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
from- the starting dateto- the ending date- Returns:
- the returned
ConferralList - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsForRecipient
ConferralList getConferralsForRecipient(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets a list of conferrals corresponding to a resourceId. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
resourceId- theIdof the resource- Returns:
- the returned
ConferralList - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsForRecipientOnDate
ConferralList getConferralsForRecipientOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals corresponding to a resourceIdand effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
resourceId- a resourceIdfrom- from dateto- to date- Returns:
- the returned
ConferralList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsForAward
ConferralList getConferralsForAward(Id awardId) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals corresponding to an awardId. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
awardId- theIdof the award- Returns:
- the returned
ConferralList - Throws:
NullArgumentException-awardIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsForAwardOnDate
ConferralList getConferralsForAwardOnDate(Id awardId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals corresponding to an awardIdand effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
awardId- an awardIdfrom- from dateto- to date- Returns:
- the returned
ConferralList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-awardId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsForRecipientAndAward
ConferralList getConferralsForRecipientAndAward(Id resourceId, Id awardid) throws OperationFailedException, PermissionDeniedException Gets a list of conferralsfor the given resource and award. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
resourceId- theIdof the resourceawardid- the Id of the award- Returns:
- the returned
ConferralList - Throws:
NullArgumentException-resourceIdorawardIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsForRecipientAndAwardOnDate
ConferralList getConferralsForRecipientAndAwardOnDate(Id resourceId, Id awardid, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals for the given resource, award, and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
resourceId- a resourceIdawardid- an awardIdfrom- from dateto- to date- Returns:
- the returned
ConferralList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-resourceId, awardid, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByReference
ConferralList getConferralsByReference(Id referenceId) throws OperationFailedException, PermissionDeniedException Gets a list of conferrals corresponding to a referenceId. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
referenceId- theIdof the reference- Returns:
- the returned
ConferralList - Throws:
NullArgumentException-referenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByReferenceOnDate
ConferralList getConferralsByReferenceOnDate(Id referenceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals corresponding to a referenceIdand effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
referenceId- a referenceIdfrom- from dateto- to date- Returns:
- the returned
ConferralList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-referenceId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByConvocation
ConferralList getConferralsByConvocation(Id convocationId) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals corresponding to a convocationId. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
convocationId- theIdof the convocation- Returns:
- the returned
ConferralList - Throws:
NullArgumentException-convocationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferralsByConvocationOnDate
ConferralList getConferralsByConvocationOnDate(Id convocationId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets a list of all conferrals corresponding to a convocationIdand effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Parameters:
convocationId- a convocationIdfrom- from dateto- to date- Returns:
- the returned
ConferralList - Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-convocationId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getConferrals
Gets all conferrals. In plenary mode, the returned list contains all known conferrals or an error results. Otherwise, the returned list may contain only those conferrals that are accessible through this session. In effective mode, conferrals are returned that are currently effective. In any effective mode, effective conferrals and those currently expired are returned.- Returns:
- a list of conferrals
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-