Interface | osid.ontology.RelevancyLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for examining subject relevancy. This session defines views that offer differing behaviors when retrieving multiple objects.
| ||
Method | getOntologyId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Ontology Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getOntology | ||
Description |
Gets the | ||
Return | osid.ontology.Ontology | the Ontology associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupRelevancies | ||
Description |
Tests if this user can lookup subject relevancies. 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 | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeRelevancyView | ||
Description |
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. | |
Method | usePlenaryRelevancyView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedOntologyView | ||
Description |
Federates the view for methods in this session. A federated view will include relevancies in ontologies which are children of this ontology in the ontology hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedOntologyView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this ontology only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useEffectiveRelevancyView | ||
Description |
The returns from the lookup methods return only effetive relevancies. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyEffectiveRelevancyView | ||
Description |
Both effective and ineffective relavcnies are returned. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevancy | ||
Description |
Gets the In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | relevancyId | Id of the Relevancy |
Return | osid.ontology.Relevancy | the relevancy | |
Errors | NOT_FOUND | relevancyId not found | |
NULL_ARGUMENT | relevancyId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesByIds | ||
Description |
Gets a In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.IdList | relevancyIds | the list of Ids to retrieve |
Return | osid.ontology.RelevancyList | the returned Relevancy list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | relevancyIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesByGenusType | ||
Description |
Gets the relevancies for the given relevancy and genus type. In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.type.Type | relevancyGenusType | relevancy genus type |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | relevancyGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesByParentGenusType | ||
Description |
Gets the relevancies for the given relevancy genus type and include any relevancies with a genus type derived from the specified genus type. In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.type.Type | relevancyGenusType | relevancy genus type |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | relevancyGenusTYpe is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesByRecordType | ||
Description |
Gets a In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.type.Type | relevancyRecordType | a relevancy record type |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | relevancyRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.calendaring.DateTime | from | a starting date |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesByGenusTypeOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.type.Type | relevancyGenusType | relevancy genus type |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | relevancyGenusType, from, or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesForSubject | ||
Description |
Gets the In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | subjectId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesForSubjectOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | subjectId, from, or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesByGenusTypeForSubject | ||
Description |
Gets the In plenary mode, the exact In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.type.Type | relevancyGenusType | relevancy genus type | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | subjectId or relevancyGenusType is
null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesByGenusTypeForSubjectOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.type.Type | relevancyGenusType | relevancy genus type | |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | subjectId, relevancyGenusType, from, or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesForSubjects | ||
Description |
Gets the relevancies for the given subject In plenary mode, the returned list contains all of the
relevancies specified in the subject In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.IdList | subjectIds | list of subject Ids |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | subjectIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesForMappedId | ||
Description |
Gets the In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | id | an Id |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | id is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesForMappedIdOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | id | an Id |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | id, from, or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesByGenusTypeForMappedId | ||
Description |
Gets the In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | id | an Id |
osid.type.Type | relevancyGenusType | relevancy genus type | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | id or relevancyGenusType is null
| |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesByGenusTypeForMappedIdOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | id | an Id |
osid.type.Type | relevancyGenusType | relevancy genus type | |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | id, relevancyGenusType, from, or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesForMappedIds | ||
Description |
Gets the relevancies for the given mapped In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.IdList | ids | a list of Ids |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | ids is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesForSubjectAndMappedId | ||
Description |
Gets the In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.id.Id | id | the mapped Id | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | subjectId or id is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesForSubjectAndMappedIdOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.id.Id | id | the mapped Id | |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | subjectId, id, from, or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevanciesByGenusTypeForSubjectAndMappedId | ||
Description |
Gets the In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.id.Id | id | the mapped Id | |
osid.type.Type | relevancyGenusType | relevancy genus type | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | NULL_ARGUMENT | subjectId, id , or relevancyGenusType is
null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRelevanciesByGenusTypeForSubjectAndMappedIdOnDate | ||
Description |
Gets a In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Parameters | osid.id.Id | subjectId | the subject Id |
osid.id.Id | id | the mapped Id | |
osid.type.Type | relevancyGenusType | relevancy genus type | |
osid.calendaring.DateTime | from | a starting date | |
osid.calendaring.DateTime | to | an ending date | |
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | subjectId, id, relevancyGenusTYpe, from, or to
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRelevancies | ||
Description |
Gets all relevancies. In plenary mode, the returned list contains all known relevancies or an error results. Otherwise, the returned list may contain only those relevancies that are accessible through this session. In effective mode, relevancies are returned that are currently effective. In any effective mode, effective relevancies and those currently expired are returned. | ||
Return | osid.ontology.RelevancyList | list of relevancies | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. |