org.sakaiproject.component.osid.repository.srw
Class Asset

java.lang.Object
  extended byorg.sakaiproject.component.osid.repository.srw.Asset
All Implemented Interfaces:
org.osid.repository.Asset, Serializable

public class Asset
extends Object
implements org.osid.repository.Asset

Version:
Author:
Massachusetts Institute of Techbology, Sakai Software Development Team
See Also:
Serialized Form

Constructor Summary
protected Asset(String displayName, String description, String idString, org.osid.logging.WritableLog log, org.osid.shared.Id repositoryId)
           
 
Method Summary
 void addAsset(org.osid.shared.Id assetId)
           
 void copyRecordStructure(org.osid.shared.Id assetId, org.osid.shared.Id recordStructureId)
           
 org.osid.repository.Record createRecord(org.osid.shared.Id recordStructureId)
           
 void deleteRecord(org.osid.shared.Id recordId)
           
 org.osid.repository.AssetIterator getAssets()
           
 org.osid.repository.AssetIterator getAssetsByType(org.osid.shared.Type assetType)
           
 org.osid.shared.Type getAssetType()
           
 Serializable getContent()
           
 org.osid.repository.RecordStructure getContentRecordStructure()
           
 String getDescription()
           
 String getDisplayName()
           
 long getEffectiveDate()
           
 long getExpirationDate()
           
 org.osid.shared.Id getId()
           
 org.osid.repository.Part getPart(org.osid.shared.Id partId)
           
 org.osid.repository.PartIterator getPartByPart(org.osid.shared.Id partStructureId)
           
 org.osid.repository.PartIterator getPartsByPartStructure(org.osid.shared.Id partStructureId)
           
 Serializable getPartValue(org.osid.shared.Id partId)
           
 org.osid.shared.ObjectIterator getPartValueByPart(org.osid.shared.Id partStructureId)
           
 org.osid.shared.ObjectIterator getPartValuesByPartStructure(org.osid.shared.Id partStructureId)
           
 org.osid.repository.Record getRecord(org.osid.shared.Id recordId)
           
 org.osid.repository.RecordIterator getRecords()
           
 org.osid.repository.RecordIterator getRecordsByRecordStructure(org.osid.shared.Id recordStructureId)
           
 org.osid.repository.RecordIterator getRecordsByRecordStructureType(org.osid.shared.Type recordStructureType)
           
 org.osid.repository.RecordStructureIterator getRecordStructures()
           
 org.osid.shared.Id getRepository()
           
 void inheritRecordStructure(org.osid.shared.Id assetId, org.osid.shared.Id recordStructureId)
           
 void removeAsset(org.osid.shared.Id assetId, boolean includeChildren)
           
 void updateContent(Serializable content)
           
 void updateDescription(String description)
           
 void updateDisplayName(String displayName)
           
 void updateEffectiveDate(long effectiveDate)
           
 void updateExpirationDate(long expirationDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asset

protected Asset(String displayName,
                String description,
                String idString,
                org.osid.logging.WritableLog log,
                org.osid.shared.Id repositoryId)
         throws org.osid.repository.RepositoryException
Method Detail

getDisplayName

public String getDisplayName()
                      throws org.osid.repository.RepositoryException
Specified by:
getDisplayName in interface org.osid.repository.Asset
Throws:
org.osid.repository.RepositoryException

updateDisplayName

public void updateDisplayName(String displayName)
                       throws org.osid.repository.RepositoryException
Specified by:
updateDisplayName in interface org.osid.repository.Asset
Throws:
org.osid.repository.RepositoryException

getDescription

public String getDescription()
                      throws org.osid.repository.RepositoryException
Specified by:
getDescription in interface org.osid.repository.Asset
Throws:
org.osid.repository.RepositoryException

updateDescription

public void updateDescription(String description)
                       throws org.osid.repository.RepositoryException
Specified by:
updateDescription 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

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

getContent

public Serializable getContent()
                        throws org.osid.repository.RepositoryException
Specified by:
getContent in interface org.osid.repository.Asset
Throws:
org.osid.repository.RepositoryException

updateContent

public void updateContent(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

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

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

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

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 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

getPartByPart

public org.osid.repository.PartIterator getPartByPart(org.osid.shared.Id partStructureId)
                                               throws org.osid.repository.RepositoryException
Throws:
org.osid.repository.RepositoryException

getPartValueByPart

public org.osid.shared.ObjectIterator getPartValueByPart(org.osid.shared.Id partStructureId)
                                                  throws org.osid.repository.RepositoryException
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

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

getExpirationDate

public long getExpirationDate()
                       throws org.osid.repository.RepositoryException
Specified by:
getExpirationDate 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

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

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

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