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

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

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

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

Constructor Summary
protected Repository(String displayName, String description, String idString, Vector searchTypeVector, Vector searchQueryVector, org.osid.id.IdManager idManager, org.osid.logging.WritableLog log)
           
 
Method Summary
protected  void addAsset(org.osid.repository.Asset asset)
           
 org.osid.shared.Id copyAsset(org.osid.repository.Asset asset)
           
 org.osid.repository.Asset createAsset(String displayName, String description, org.osid.shared.Type assetType)
           
 void deleteAsset(org.osid.shared.Id assetId)
           
 org.osid.repository.Asset getAsset(org.osid.shared.Id assetId)
           
 org.osid.repository.Asset getAssetByDate(org.osid.shared.Id assetId, long date)
           
 org.osid.shared.LongValueIterator getAssetDates(org.osid.shared.Id assetId)
           
 org.osid.repository.AssetIterator getAssets()
           
 org.osid.repository.AssetIterator getAssetsBySearch(Serializable searchCriteria, org.osid.shared.Type searchType, org.osid.shared.Properties searchProperties)
           
 org.osid.repository.AssetIterator getAssetsByType(org.osid.shared.Type assetType)
           
 org.osid.shared.TypeIterator getAssetTypes()
           
 String getDescription()
           
 String getDisplayName()
           
 org.osid.shared.Id getId()
           
 org.osid.repository.RecordStructureIterator getMandatoryRecordStructures(org.osid.shared.Type assetType)
           
 org.osid.shared.PropertiesIterator getProperties()
           
 org.osid.shared.Properties getPropertiesByType(org.osid.shared.Type propertiesType)
           
 org.osid.shared.TypeIterator getPropertyTypes()
           
 org.osid.repository.RecordStructureIterator getRecordStructures()
           
 org.osid.repository.RecordStructureIterator getRecordStructuresByType(org.osid.shared.Type recordStructureType)
           
 org.osid.shared.TypeIterator getSearchTypes()
           
 org.osid.shared.Type getStatus(org.osid.shared.Id assetId)
           
 org.osid.shared.TypeIterator getStatusTypes()
           
 org.osid.shared.Type getType()
           
 void invalidateAsset(org.osid.shared.Id assetId)
           
 boolean supportsUpdate()
           
 boolean supportsVersioning()
           
 void updateDescription(String description)
           
 void updateDisplayName(String displayName)
           
 boolean validateAsset(org.osid.shared.Id assetId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

protected Repository(String displayName,
                     String description,
                     String idString,
                     Vector searchTypeVector,
                     Vector searchQueryVector,
                     org.osid.id.IdManager idManager,
                     org.osid.logging.WritableLog log)
              throws org.osid.repository.RepositoryException
Method Detail

getDisplayName

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

updateDisplayName

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

getDescription

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

updateDescription

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

getType

public org.osid.shared.Type getType()
                             throws org.osid.repository.RepositoryException
Specified by:
getType in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

createAsset

public org.osid.repository.Asset createAsset(String displayName,
                                             String description,
                                             org.osid.shared.Type assetType)
                                      throws org.osid.repository.RepositoryException
Specified by:
createAsset in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

deleteAsset

public void deleteAsset(org.osid.shared.Id assetId)
                 throws org.osid.repository.RepositoryException
Specified by:
deleteAsset in interface org.osid.repository.Repository
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.Repository
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.Repository
Throws:
org.osid.repository.RepositoryException

getAssetTypes

public org.osid.shared.TypeIterator getAssetTypes()
                                           throws org.osid.repository.RepositoryException
Specified by:
getAssetTypes in interface org.osid.repository.Repository
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.Repository
Throws:
org.osid.repository.RepositoryException

getMandatoryRecordStructures

public org.osid.repository.RecordStructureIterator getMandatoryRecordStructures(org.osid.shared.Type assetType)
                                                                         throws org.osid.repository.RepositoryException
Specified by:
getMandatoryRecordStructures in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getSearchTypes

public org.osid.shared.TypeIterator getSearchTypes()
                                            throws org.osid.repository.RepositoryException
Specified by:
getSearchTypes in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getStatusTypes

public org.osid.shared.TypeIterator getStatusTypes()
                                            throws org.osid.repository.RepositoryException
Specified by:
getStatusTypes in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getStatus

public org.osid.shared.Type getStatus(org.osid.shared.Id assetId)
                               throws org.osid.repository.RepositoryException
Specified by:
getStatus in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

validateAsset

public boolean validateAsset(org.osid.shared.Id assetId)
                      throws org.osid.repository.RepositoryException
Specified by:
validateAsset in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

invalidateAsset

public void invalidateAsset(org.osid.shared.Id assetId)
                     throws org.osid.repository.RepositoryException
Specified by:
invalidateAsset in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getAsset

public org.osid.repository.Asset getAsset(org.osid.shared.Id assetId)
                                   throws org.osid.repository.RepositoryException
Specified by:
getAsset in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getAssetByDate

public org.osid.repository.Asset getAssetByDate(org.osid.shared.Id assetId,
                                                long date)
                                         throws org.osid.repository.RepositoryException
Specified by:
getAssetByDate in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getAssetDates

public org.osid.shared.LongValueIterator getAssetDates(org.osid.shared.Id assetId)
                                                throws org.osid.repository.RepositoryException
Specified by:
getAssetDates in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getAssetsBySearch

public org.osid.repository.AssetIterator getAssetsBySearch(Serializable searchCriteria,
                                                           org.osid.shared.Type searchType,
                                                           org.osid.shared.Properties searchProperties)
                                                    throws org.osid.repository.RepositoryException
Specified by:
getAssetsBySearch in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

copyAsset

public org.osid.shared.Id copyAsset(org.osid.repository.Asset asset)
                             throws org.osid.repository.RepositoryException
Specified by:
copyAsset in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getRecordStructuresByType

public org.osid.repository.RecordStructureIterator getRecordStructuresByType(org.osid.shared.Type recordStructureType)
                                                                      throws org.osid.repository.RepositoryException
Specified by:
getRecordStructuresByType in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getProperties

public org.osid.shared.PropertiesIterator getProperties()
                                                 throws org.osid.repository.RepositoryException
Specified by:
getProperties in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getPropertiesByType

public org.osid.shared.Properties getPropertiesByType(org.osid.shared.Type propertiesType)
                                               throws org.osid.repository.RepositoryException
Specified by:
getPropertiesByType in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

getPropertyTypes

public org.osid.shared.TypeIterator getPropertyTypes()
                                              throws org.osid.repository.RepositoryException
Specified by:
getPropertyTypes in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

addAsset

protected void addAsset(org.osid.repository.Asset asset)
                 throws org.osid.repository.RepositoryException
Throws:
org.osid.repository.RepositoryException

supportsUpdate

public boolean supportsUpdate()
                       throws org.osid.repository.RepositoryException
Specified by:
supportsUpdate in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException

supportsVersioning

public boolean supportsVersioning()
                           throws org.osid.repository.RepositoryException
Specified by:
supportsVersioning in interface org.osid.repository.Repository
Throws:
org.osid.repository.RepositoryException