OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetTemporalSession
Implementsosid.OsidSession
Used Byosid.repository.RepositoryManager
osid.repository.RepositoryProxyManager
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.Id the Repository Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetRepository
Description

Gets the Repository associated with this session.

Returnosid.repository.Repository the Repository associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedRepositoryView
Description

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

Compliancemandatory This 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.DateTimeIntervalList a list of times relevant to the subject of this asset
ErrorsNOT_FOUND assetId is not found
NULL_ARGUMENT assetId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAssetIdsByTemporalCoverage
Description

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

Parametersosid.calendaring.DateTimefrom starting range
osid.calendaring.DateTimeto ending range
Returnosid.id.IdList list of asset Ids
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAssetsByTemporalCoverage
Description

Gets assets with temporal coverege within the specified dates inclusive.

Parametersosid.calendaring.DateTimefrom starting range
osid.calendaring.DateTimeto ending range
Returnosid.repository.RepositoryList list of assets
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.