OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.AssetTemporalSession
Implementsosid.OsidSession
Description

This session defines a means for accessing temporal coverage of an asset. The views sorrespond to the view defined in the AssetLookupSession.

MethodgetRepositoryId
Description

Gets the Repository Id associated with this session.

Returnosid.id.Idthe Repository Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetRepository
Description

Gets the Repository associated with this session.

Returnosid.repository.Repositorythe Repository associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupTemporalCoverage
Description

Tests if this user can perform temporal 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 opt not to offer lookup operations.

Returnboolean false if lookups are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeAssetView
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.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryAssetView
Description

A complete view of the Asset 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.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedRepositoryView
Description

Federates the view for methods in this session. A federated view will include assets in repositories which are children of this repository in the repository hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedRepositoryView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this repository only.

CompliancemandatoryThis method is must be implemented.
MethodgetTemporalCoverage
Description

Gets the temporal coverage related to the subject of this asset. Each element of the returned list describes a range of 2 times each described by a point in time with specified granularity and uncertainty. If the list contains more than one element, each element indicates a relevant time or period for the subject of this asset.

Parametersosid.id.IdassetId Id of the Asset to query
Returnosid.calendaring.DateTimeIntervalLista list of times relevant to the subject of this asset
ErrorsNOT_FOUND assetId is not found
NULL_ARGUMENT assetId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetAssetIdsByTemporalCoverage
Description

Gets asset Ids with temporal coverege within the specified dates inclusive.

Parametersosid.calendaring.DateTimefromstarting range
osid.calendaring.DateTimetoending range
Returnosid.id.IdListlist of asset Ids
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetAssetsByTemporalCoverage
Description

Gets assets with temporal coverege within the specified dates inclusive.

Parametersosid.calendaring.DateTimefromstarting range
osid.calendaring.DateTimetoending range
Returnosid.repository.RepositoryListlist of assets
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.