org.jafer.osid.provider
Class Asset
java.lang.Object
org.jafer.osid.provider.Asset
- All Implemented Interfaces:
- java.io.Serializable, org.osid.repository.Asset
public class Asset
- extends java.lang.Object
- implements org.osid.repository.Asset
Asset manages the Asset itself. Assets have content as well as Records
appropriate to the AssetType and RecordStructures for the Asset. Assets
may also contain other Assets.
- See Also:
- Serialized Form
Constructor Summary |
protected |
Asset(java.lang.String displayName,
java.util.Vector recordsVector)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
assetType
private org.osid.shared.Type assetType
displayName
java.lang.String displayName
recordsVector
java.util.Vector recordsVector
Asset
protected Asset(java.lang.String displayName,
java.util.Vector recordsVector)
throws org.osid.repository.RepositoryException
- Throws:
org.osid.repository.RepositoryException
getRecords
public org.osid.repository.RecordIterator getRecords()
throws org.osid.repository.RepositoryException
- Specified by:
getRecords
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getDisplayName
public java.lang.String getDisplayName()
throws org.osid.repository.RepositoryException
- Specified by:
getDisplayName
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getAssetType
public org.osid.shared.Type getAssetType()
throws org.osid.repository.RepositoryException
- Specified by:
getAssetType
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getId
public org.osid.shared.Id getId()
throws org.osid.repository.RepositoryException
- Specified by:
getId
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getDescription
public java.lang.String getDescription()
throws org.osid.repository.RepositoryException
- Specified by:
getDescription
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getContent
public java.io.Serializable getContent()
throws org.osid.repository.RepositoryException
- Specified by:
getContent
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getRecordsByRecordStructureType
public org.osid.repository.RecordIterator getRecordsByRecordStructureType(org.osid.shared.Type recordStructureType)
throws org.osid.repository.RepositoryException
- Specified by:
getRecordsByRecordStructureType
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
updateDisplayName
public void updateDisplayName(java.lang.String displayName)
throws org.osid.repository.RepositoryException
- Specified by:
updateDisplayName
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
updateEffectiveDate
public void updateEffectiveDate(long effectiveDate)
throws org.osid.repository.RepositoryException
- Specified by:
updateEffectiveDate
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
updateExpirationDate
public void updateExpirationDate(long expirationDate)
throws org.osid.repository.RepositoryException
- Specified by:
updateExpirationDate
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getEffectiveDate
public long getEffectiveDate()
throws org.osid.repository.RepositoryException
- Specified by:
getEffectiveDate
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getExpirationDate
public long getExpirationDate()
throws org.osid.repository.RepositoryException
- Specified by:
getExpirationDate
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
updateDescription
public void updateDescription(java.lang.String description)
throws org.osid.repository.RepositoryException
- Specified by:
updateDescription
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getRepository
public org.osid.shared.Id getRepository()
throws org.osid.repository.RepositoryException
- Specified by:
getRepository
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
updateContent
public void updateContent(java.io.Serializable content)
throws org.osid.repository.RepositoryException
- Specified by:
updateContent
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
addAsset
public void addAsset(org.osid.shared.Id assetId)
throws org.osid.repository.RepositoryException
- Specified by:
addAsset
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
removeAsset
public void removeAsset(org.osid.shared.Id assetId,
boolean includeChildren)
throws org.osid.repository.RepositoryException
- Specified by:
removeAsset
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getAssets
public org.osid.repository.AssetIterator getAssets()
throws org.osid.repository.RepositoryException
- Specified by:
getAssets
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getAssetsByType
public org.osid.repository.AssetIterator getAssetsByType(org.osid.shared.Type assetType)
throws org.osid.repository.RepositoryException
- Specified by:
getAssetsByType
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
createRecord
public org.osid.repository.Record createRecord(org.osid.shared.Id recordStructureId)
throws org.osid.repository.RepositoryException
- Specified by:
createRecord
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
inheritRecordStructure
public void inheritRecordStructure(org.osid.shared.Id assetId,
org.osid.shared.Id recordStructureId)
throws org.osid.repository.RepositoryException
- Specified by:
inheritRecordStructure
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
copyRecordStructure
public void copyRecordStructure(org.osid.shared.Id assetId,
org.osid.shared.Id recordStructureId)
throws org.osid.repository.RepositoryException
- Specified by:
copyRecordStructure
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
deleteRecord
public void deleteRecord(org.osid.shared.Id recordId)
throws org.osid.repository.RepositoryException
- Specified by:
deleteRecord
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getRecordsByRecordStructure
public org.osid.repository.RecordIterator getRecordsByRecordStructure(org.osid.shared.Id recordStructureId)
throws org.osid.repository.RepositoryException
- Specified by:
getRecordsByRecordStructure
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getRecordStructures
public org.osid.repository.RecordStructureIterator getRecordStructures()
throws org.osid.repository.RepositoryException
- Specified by:
getRecordStructures
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getContentRecordStructure
public org.osid.repository.RecordStructure getContentRecordStructure()
throws org.osid.repository.RepositoryException
- Specified by:
getContentRecordStructure
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getRecord
public org.osid.repository.Record getRecord(org.osid.shared.Id recordId)
throws org.osid.repository.RepositoryException
- Specified by:
getRecord
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getPart
public org.osid.repository.Part getPart(org.osid.shared.Id partId)
throws org.osid.repository.RepositoryException
- Specified by:
getPart
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getPartValue
public java.io.Serializable getPartValue(org.osid.shared.Id partId)
throws org.osid.repository.RepositoryException
- Specified by:
getPartValue
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getPartsByPartStructure
public org.osid.repository.PartIterator getPartsByPartStructure(org.osid.shared.Id partStructureId)
throws org.osid.repository.RepositoryException
- Specified by:
getPartsByPartStructure
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException
getPartValuesByPartStructure
public org.osid.shared.ObjectIterator getPartValuesByPartStructure(org.osid.shared.Id partStructureId)
throws org.osid.repository.RepositoryException
- Specified by:
getPartValuesByPartStructure
in interface org.osid.repository.Asset
- Throws:
org.osid.repository.RepositoryException