|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
OSID Version: 2.0
Licensed under the MIT
O.K.I. OSID Definition License.
| Method Summary | |
Id |
copyAsset(Asset asset)
Create a copy of an Asset. |
Asset |
createAsset(java.lang.String displayName,
java.lang.String description,
Type assetType)
Create a new Asset of this AssetType in this Repository. |
void |
deleteAsset(Id assetId)
Delete an Asset from this Repository. |
Asset |
getAsset(Id assetId)
Get the Asset with the specified unique Id. |
Asset |
getAssetByDate(Id assetId,
long date)
Get the Asset with the specified unique Id that is appropriate for the date specified. |
LongValueIterator |
getAssetDates(Id assetId)
Get all the dates for the Asset with the specified unique Id. |
AssetIterator |
getAssets()
Get all the Assets in this Repository. |
AssetIterator |
getAssetsBySearch(java.io.Serializable searchCriteria,
Type searchType,
Properties searchProperties)
Perform a search of the specified Type and get all the Assets that satisfy the SearchCriteria. |
AssetIterator |
getAssetsByType(Type assetType)
Get all the Assets of the specified AssetType in this Asset. |
TypeIterator |
getAssetTypes()
Get all the AssetTypes in this Repository. |
java.lang.String |
getDescription()
Get the description for this Repository. |
java.lang.String |
getDisplayName()
Get the display name for this Repository. |
Id |
getId()
Get the unique Id for this Repository. |
RecordStructureIterator |
getMandatoryRecordStructures(Type assetType)
Get the RecordStructures that this AssetType must support. |
PropertiesIterator |
getProperties()
Get the Properties associated with this Repository. |
Properties |
getPropertiesByType(Type propertiesType)
Get the Properties of this Type associated with this Repository. |
TypeIterator |
getPropertyTypes()
Get all the Property Types for Repository. |
RecordStructureIterator |
getRecordStructures()
Get all the RecordStructures in this Repository. |
RecordStructureIterator |
getRecordStructuresByType(Type recordStructureType)
Get all the RecordStructures with the specified RecordStructureType in this Repository. |
TypeIterator |
getSearchTypes()
Get all the SearchTypes supported by this Repository. |
Type |
getStatus(Id assetId)
Get the StatusType of the Asset with the specified unique Id. |
TypeIterator |
getStatusTypes()
Get all the StatusTypes supported by this Repository. |
Type |
getType()
Get the RepositoryType of this Repository. |
void |
invalidateAsset(Id assetId)
Set the Asset's status Type accordingly and relax validation checking when creating Records and Parts or updating Parts' values. |
boolean |
supportsUpdate()
This method indicates whether this implementation supports Repository methods: copyAsset, deleteAsset, invalidateAsset, updateDescription, updateDisplayName. |
boolean |
supportsVersioning()
This method indicates whether this implementation supports Repository methods getAssetsDates() and getAssetByDate() |
void |
updateDescription(java.lang.String description)
Update the description for this Repository. |
void |
updateDisplayName(java.lang.String displayName)
Update the display name for this Repository. |
boolean |
validateAsset(Id assetId)
Validate all the Records for an Asset and set its status Type accordingly. |
| Method Detail |
public void updateDisplayName(java.lang.String displayName)
throws RepositoryException
displayName -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
public java.lang.String getDisplayName()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public Id getId()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public Type getType()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public java.lang.String getDescription()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public void updateDescription(java.lang.String description)
throws RepositoryException
description -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
public Asset createAsset(java.lang.String displayName,
java.lang.String description,
Type assetType)
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public void deleteAsset(Id assetId)
throws RepositoryException
assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public AssetIterator getAssets()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public AssetIterator getAssetsByType(Type assetType)
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public TypeIterator getAssetTypes()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public Properties getPropertiesByType(Type propertiesType)
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public TypeIterator getPropertyTypes()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public PropertiesIterator getProperties()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public RecordStructureIterator getRecordStructures()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public RecordStructureIterator getRecordStructuresByType(Type recordStructureType)
throws RepositoryException
recordStructureType -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public RecordStructureIterator getMandatoryRecordStructures(Type assetType)
throws RepositoryException
assetType -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public TypeIterator getSearchTypes()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public TypeIterator getStatusTypes()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public Type getStatus(Id assetId)
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public boolean validateAsset(Id assetId)
throws RepositoryException
assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public void invalidateAsset(Id assetId)
throws RepositoryException
assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public Asset getAsset(Id assetId)
throws RepositoryException
assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public Asset getAssetByDate(Id assetId,
long date)
throws RepositoryException
assetId - date - the number of milliseconds since January 1, 1970, 00:00:00
GMT
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, NO_OBJECT_WITH_THIS_DATE
public LongValueIterator getAssetDates(Id assetId)
throws RepositoryException
assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
public AssetIterator getAssetsBySearch(java.io.Serializable searchCriteria,
Type searchType,
Properties searchProperties)
throws RepositoryException
searchCriteria - searchType - searchProperties -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public Id copyAsset(Asset asset)
throws RepositoryException
asset -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public boolean supportsVersioning()
throws RepositoryException
UNIMPLEMENTED, true indicates this implementation supports
Repository methods getAssetsDates() and getAssetByDate()
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
public boolean supportsUpdate()
throws RepositoryException
UNIMPLEMENTED, true indicates 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.
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||