public interface CredentialLookupSession extends OsidSession
This session defines methods for retrieving credentials. A
Credential is an award granted at he completion of a program.
This lookup session defines several views:
Credentials with the
CredentialAdminSession. The methods useFederatedCourseCatalogView() and
useIsolatedCourseCatalogView() behave as a radio group and one
should be selected before invoking any lookup methods.
Credentials may have an additional records indicated by their
respective record types. The record may not be accessed through a cast of
the Credential.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupCredentials()
Tests if this user can perform
Credential lookups. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
Credential |
getCredential(Id credentialId)
Gets the
Credential specified by its Id. |
CredentialList |
getCredentials()
Gets all
Credentials. |
CredentialList |
getCredentialsByGenusType(Type credentialGenusType)
Gets a
CredentialList corresponding to the given
credential genus Type which does not include
credentials of types derived from the specified Type. |
CredentialList |
getCredentialsByIds(IdList credentialIds)
Gets a
CredentialList corresponding to the given
IdList. |
CredentialList |
getCredentialsByParentGenusType(Type credentialGenusType)
Gets a
CredentialList corresponding to the given
credential genus Type and include any additional
credentials with genus types derived from the specified Type. |
CredentialList |
getCredentialsByRecordType(Type credentialRecordType)
Gets a
CredentialList containing the given credential
record Type. |
void |
useComparativeCredentialView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
void |
usePlenaryCredentialView()
A complete view of the
credential returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCourseCatalogId()
CourseCatalog Id associated
with this session. CourseCatalog Id associated with this
sessionmandatory - This method must be implemented. CourseCatalog getCourseCatalog() throws OperationFailedException, PermissionDeniedException
CourseCatalog associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupCredentials()
Credential lookups. 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 a PERMISSION_DENIED. This is intended as a
hint to an application that may not offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeCredentialView()
mandatory - This method is must be implemented. void usePlenaryCredentialView()
credential returns 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.mandatory - This method is must be implemented. void useFederatedCourseCatalogView()
mandatory - This method is must be implemented. void useIsolatedCourseCatalogView()
mandatory - This method is must be implemented. Credential getCredential(Id credentialId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Credential specified by its Id.
In plenary mode, the exact Id is found or a
NOT_FOUND results. Otherwise, the returned Credential
may have a different Id than requested, such as
the case where a duplicate Id was assigned to a
Credential and retained for compatibility.credentialId - the Id of the Credential
to retrieve Credential NotFoundException - no Credential found
with the given Id NullArgumentException - credentialId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentialsByIds(IdList credentialIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
CredentialList corresponding to the given
IdList. In plenary mode, the returned list contains all of the
credentials specified in the Id list, in the order of
the list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Credentials may be omitted from the list
and may present the elements in any order including returning a unique
set.credentialIds - the list of Ids to retrieve CredentialList listNotFoundException - an Id was not foundNullArgumentException - credentialIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentialsByGenusType(Type credentialGenusType) throws OperationFailedException, PermissionDeniedException
CredentialList corresponding to the given
credential genus Type which does not include
credentials of types derived from the specified Type.
In plenary mode, the returned list contains all known credentials or
an error results. Otherwise, the returned list may contain only those
credentials that are accessible through this session.credentialGenusType - a credential genus type CredentialList listNullArgumentException - credentialGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentialsByParentGenusType(Type credentialGenusType) throws OperationFailedException, PermissionDeniedException
CredentialList corresponding to the given
credential genus Type and include any additional
credentials with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
credentials or an error results. Otherwise, the returned list may
contain only those credentials that are accessible through this
session.credentialGenusType - a credential genus type CredentialList listNullArgumentException - credentialGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentialsByRecordType(Type credentialRecordType) throws OperationFailedException, PermissionDeniedException
CredentialList containing the given credential
record Type. In plenary mode, the returned list
contains all known credentials or an error results. Otherwise, the
returned list may contain only those credentials that are accessible
through this session.credentialRecordType - a credential record type CredentialList listNullArgumentException - credentialRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentials() throws OperationFailedException, PermissionDeniedException
Credentials. In plenary mode, the returned
list contains all known credentials or an error results. Otherwise,
the returned list may contain only those credentials that are
accessible through this session. Credentials OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.