public interface CredentialCourseCatalogSession extends OsidSession
This session provides methods to retrieve Credential to
CourseCatalog mappings. A Credential may
appear in multiple CourseCatalogs. Each catalog may have
its own authorizations governing who is allowed to look at it.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupCourseCatalogMappings()
Tests if this user can perform lookups of credential/course catalog
mappings.
|
IdList |
getCourseCatalogIdsByCredentials(Id credentialId)
Gets the
CourseCatalog Ids mapped to a
Credential. |
CourseCatalogList |
getCourseCatalogsByCredential(Id credentialId)
Gets the
CourseCatalog objects mapped to a
Credential. |
IdList |
getCredentialIdsByCourseCatalog(Id courseCatalogId)
Gets the list of
Credential Ids associated with a
CourseCatalog. |
IdList |
getCredentialIdsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
Credential Ids corresponding to a list
of CourseCatalog objects. |
CredentialList |
getCredentialsByCourseCatalog(Id courseCatalogId)
Gets the list of
Credentials associated with a
CourseCatalog. |
CredentialList |
getCredentialsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
Credentials corresponding to a list of
CourseCatalog objects. |
void |
useComparativeCourseCatalogView()
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 |
usePlenaryCourseCatalogView()
A complete view of the
Credential and
CourseCatalog returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupCourseCatalogMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeCourseCatalogView()
mandatory - This method is must be implemented. void usePlenaryCourseCatalogView()
Credential and
CourseCatalog 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. IdList getCredentialIdsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Credential Ids associated with a
CourseCatalog. courseCatalogId - Id of the CourseCatalog
Ids NotFoundException - courseCatalogId is
not foundNullArgumentException - courseCatalogId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentialsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Credentials associated with a
CourseCatalog. courseCatalogId - Id of the CourseCatalog
NotFoundException - courseCatalogId is
not foundNullArgumentException - courseCatalogId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCredentialIdsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
Credential Ids corresponding to a list
of CourseCatalog objects.courseCatalogIds - list of course catalog Ids Ids NullArgumentException - courseCatalogIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CredentialList getCredentialsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
Credentials corresponding to a list of
CourseCatalog objects.courseCatalogIds - list of course catalog Ids NullArgumentException - courseCatalogIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCourseCatalogIdsByCredentials(Id credentialId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog Ids mapped to a
Credential. credentialId - Id of a credential Ids NotFoundException - credentialId is not
foundNullArgumentException - credentialId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CourseCatalogList getCourseCatalogsByCredential(Id credentialId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog objects mapped to a
Credential. credentialId - Id of a credential NotFoundException - credentialId is not
foundNullArgumentException - credentialId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.