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>
Located in /harmoni/core/oki2/repository/HarmoniRepository.class.php (line 54)
Repository | --HarmoniRepositoryInterface | --HarmoniRepository
Constructor
Answer true if the asset exists
WARNING: NOT IN OSID
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.
Create a new RecordStructure
WARNING: NOT IN OSID
Delete an Asset from this Repository.
Delete a RecordStructure all Records in the repository that use it.
WARNING: NOT IN OSID
Duplicate a RecordStructure, optionally duplicating the records as well, also optionally deleting the records in the original RecordStructure.
Use this method to convert from data stored in a 'global' RecordStructure such as DublinCore into a 'local' version of the RecordStructure Core in which the user has the option of customizing fields.
As well, this method can be used to convert a RecordStructure and associated Records to a local version if the RecordStructure was accidentally created as a 'global' one.
WARNING: NOT IN OSID
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.
NOT IN OSID??? Get the description for this Repository.
Get the display name for this Repository.
Get the unique Id for this Repository.
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 the RecordStructure in this DigitalRepository with the specified Id. RecordStructures are used to categorize information about Assets.
Note: This method is a Harmoni addition to the OSID and at the time of this writing, was not a part of the DR OSID.
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.
Returns if this Asset is valid or not.
WARNING: NOT IN OSID - Method no longer in OSID
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.
Recursively copies an asset and its children to a new parent.
Sets up an array of supported searchTypes for the DR.
Inherited From HarmoniRepositoryInterface
HarmoniRepositoryInterface::load()
HarmoniRepositoryInterface::save()
Inherited From Repository
Repository::copyAsset()
Repository::createAsset()
Repository::deleteAsset()
Repository::getAsset()
Repository::getAssetByDate()
Repository::getAssetDates()
Repository::getAssets()
Repository::getAssetsBySearch()
Repository::getAssetsByType()
Repository::getAssetTypes()
Repository::getDescription()
Repository::getDisplayName()
Repository::getId()
Repository::getMandatoryRecordStructures()
Repository::getProperties()
Repository::getPropertiesByType()
Repository::getPropertyTypes()
Repository::getRecordStructures()
Repository::getRecordStructuresByType()
Repository::getSearchTypes()
Repository::getStatus()
Repository::getStatusTypes()
Repository::getType()
Repository::invalidateAsset()
Repository::supportsUpdate()
Repository::supportsVersioning()
Repository::updateDescription()
Repository::updateDisplayName()
Repository::validateAsset()
Documentation generated on Wed, 19 Sep 2007 10:24:17 -0400 by phpDocumentor 1.3.0RC3