Repository manages Assets of various Types and information about the Assets.
Assets are created, persisted, and validated by the Repository. When initially created, an Asset has an immutable Type and unique Id and its validation status is false. In this state, all methods can be called, but integrity checks are not enforced. When the Asset and its Records are ready to be validated, the validateAsset method checks the Asset and sets the validation status. When working with a valid Asset, all methods include integrity checks and an exception is thrown if the activity would result in an inappropriate state. Optionally, the invalidateAsset method can be called to release the requirement for integrity checks, but the Asset will not become valid again, until validateAsset is called and the entire Asset is checked.
<p> OSID Version: 2.0 </p>
<p> Licensed under the org.osid.SidImplementationLicenseMIT. </p>
Located in /harmoni/oki2/osid/repository/Repository.php (line 28)
Class | Description |
---|---|
HarmoniRepositoryInterface | The HarmoniDigitalRepositoryInterface provides all of the methods of |
Create a copy of an Asset. The Id, AssetType, and Repository for the new Asset is set by the implementation. All Records are similarly copied.
Create a new Asset of this AssetType in this Repository. The implementation of this method sets the Id for the new object.
Delete an Asset from this Repository.
Get the Asset with the specified unique Id.
Get the Asset with the specified unique Id that is appropriate for the date specified. The specified date allows a Repository implementation to support Asset versioning.
Get all the dates for the Asset with the specified unique Id. These dates allows a Repository implementation to support Asset versioning.
Get all the Assets in this Repository. Iterators return a set, one at a time.
Perform a search of the specified Type and get all the Assets that satisfy the SearchCriteria. Iterators return a set, one at a time.
Get all the Assets of the specified AssetType in this Asset. Iterators return a set, one at a time.
Get all the AssetTypes in this Repository. AssetTypes are used to categorize Assets. Iterators return a set, one at a time.
Get the description for this Repository.
Get the display name for this Repository.
Get the unique Id for this Repository.
Get the RecordStructures that this AssetType must support.
RecordStructures are used to categorize information about Assets. Iterators return a set, one at a time.
Get the Properties associated with this Repository.
Get the Properties of this Type associated with this Repository.
Get all the Property Types for Repository.
Get all the RecordStructures in this Repository. RecordStructures are used to categorize information about Assets. Iterators return a set, one at a time.
Get all the RecordStructures with the specified RecordStructureType in this Repository. RecordStructures are used to categorize information about Assets. Iterators return a set, one at a time.
Get all the SearchTypes supported by this Repository. Iterators return a set, one at a time.
Get the StatusType of the Asset with the specified unique Id.
Get all the StatusTypes supported by this Repository. Iterators return a set, one at a time.
Get the RepositoryType of this Repository.
Set the Asset's status Type accordingly and relax validation checking when creating Records and Parts or updating Parts' values.
This method indicates whether this implementation supports Repository
methods: copyAsset, deleteAsset, invalidateAsset, updateDescription, updateDisplayName. Asset methods: addAsset, copyRecordStructure, createRecord, deleteRecord, inheritRecordStructure, removeAsset, updateContent, updateDescription, updateDisplayName, updateEffectiveDate, updateExpirationDate. Part methods: createPart, deletePart, updateDisplayName, updateValue. PartStructure methods: updateDisplayName, validatePart. Record methods: createPart, deletePart, updateDisplayName. RecordStructure methods: updateDisplayName, validateRecord.
This method indicates whether this implementation supports Repository methods getAssetsDates() and getAssetByDate()
Update the description for this Repository.
Update the display name for this Repository.
Validate all the Records for an Asset and set its status Type accordingly. If the Asset is valid, return true; otherwise return false. The implementation may throw an Exception for any validation failures and use the Exception's message to identify specific causes.
Documentation generated on Wed, 19 Sep 2007 10:25:58 -0400 by phpDocumentor 1.3.0RC3