OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetTemporalAssignmentSession
Implementsosid.OsidSession
Used Byosid.repository.RepositoryManager
osid.repository.RepositoryProxyManager
Description

This session defines methods to manage temporal coverage of an asset.

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.
MethodcanAssignTemporalCoverage
Description

Tests if this user can manage 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 assignment operations.

Returnboolean false if temporal management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaddTemporalCoverage
Description

Adds a temporal coverage to this asset expressed as a range between two date/times.

Parametersosid.id.IdassetId Id of the Asset
osid.calendaring.DateTimebegin start date/time
osid.calendaring.DateTimeend end date/time
ErrorsALREADY_EXISTS interval already exists
INVALID_ARGUMENT begin is greater than end
NOT_FOUND assetId not found
NULL_ARGUMENT assetId, begin or end is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization fauilure
Compliancemandatory This method must be implemented.
MethodremoveTemporalCoverage
Description

Removes a temporal range from an asset.

Parametersosid.id.IdassetId Id of the Asset
osid.calendaring.DateTimebegin start date/time
osid.calendaring.DateTimeend end date/time
ErrorsNOT_FOUND assetId with begin and end not found
NULL_ARGUMENT assetId, begin or end is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization fauilure
Compliancemandatory This method must be implemented.