Class Repository
- java.lang.Object
-
- edu.indiana.lib.osid.base.repository.Repository
-
- All Implemented Interfaces:
Serializable,org.osid.repository.Repository
- Direct Known Subclasses:
Repository
public abstract class Repository extends Object implements org.osid.repository.Repository
$URL$ $Id$ Copyright (c) 2003, 2004, 2005, 2007, 2008 The Sakai Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAsset(org.osid.repository.Asset asset)org.osid.shared.IdcopyAsset(org.osid.repository.Asset asset)org.osid.repository.AssetcreateAsset(String displayName, String description, org.osid.shared.Type assetType)voiddeleteAsset(org.osid.shared.Id assetId)org.osid.repository.AssetgetAsset(org.osid.shared.Id assetId)org.osid.repository.AssetgetAssetByDate(org.osid.shared.Id assetId, long date)org.osid.shared.LongValueIteratorgetAssetDates(org.osid.shared.Id assetId)org.osid.repository.AssetIteratorgetAssets()org.osid.repository.AssetIteratorgetAssetsBySearch(Serializable searchCriteria, org.osid.shared.Type searchType, org.osid.shared.Properties searchProperties)org.osid.repository.AssetIteratorgetAssetsByType(org.osid.shared.Type assetType)org.osid.shared.TypeIteratorgetAssetTypes()StringgetDescription()StringgetDisplayName()org.osid.shared.IdgetId()org.osid.repository.RecordStructureIteratorgetMandatoryRecordStructures(org.osid.shared.Type assetType)org.osid.shared.PropertiesIteratorgetProperties()org.osid.shared.PropertiesgetPropertiesByType(org.osid.shared.Type propertiesType)org.osid.shared.TypeIteratorgetPropertyTypes()org.osid.repository.RecordStructureIteratorgetRecordStructures()org.osid.repository.RecordStructureIteratorgetRecordStructuresByType(org.osid.shared.Type recordStructureType)org.osid.shared.TypeIteratorgetSearchTypes()org.osid.shared.TypegetStatus(org.osid.shared.Id assetId)org.osid.shared.TypeIteratorgetStatusTypes()org.osid.shared.TypegetType()voidinvalidateAsset(org.osid.shared.Id assetId)booleansupportsUpdate()booleansupportsVersioning()voidupdateDescription(String description)voidupdateDisplayName(String displayName)booleanvalidateAsset(org.osid.shared.Id assetId)
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName() throws org.osid.repository.RepositoryException
- Specified by:
getDisplayNamein interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
updateDisplayName
public void updateDisplayName(String displayName) throws org.osid.repository.RepositoryException
- Specified by:
updateDisplayNamein interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getDescription
public String getDescription() throws org.osid.repository.RepositoryException
- Specified by:
getDescriptionin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
updateDescription
public void updateDescription(String description) throws org.osid.repository.RepositoryException
- Specified by:
updateDescriptionin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getId
public org.osid.shared.Id getId() throws org.osid.repository.RepositoryException- Specified by:
getIdin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getType
public org.osid.shared.Type getType() throws org.osid.repository.RepositoryException- Specified by:
getTypein interfaceorg.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:
createAssetin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
deleteAsset
public void deleteAsset(org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException- Specified by:
deleteAssetin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getAssets
public org.osid.repository.AssetIterator getAssets() throws org.osid.repository.RepositoryException- Specified by:
getAssetsin interfaceorg.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:
getAssetsByTypein interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getAssetTypes
public org.osid.shared.TypeIterator getAssetTypes() throws org.osid.repository.RepositoryException- Specified by:
getAssetTypesin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getRecordStructures
public org.osid.repository.RecordStructureIterator getRecordStructures() throws org.osid.repository.RepositoryException- Specified by:
getRecordStructuresin interfaceorg.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:
getMandatoryRecordStructuresin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getSearchTypes
public org.osid.shared.TypeIterator getSearchTypes() throws org.osid.repository.RepositoryException- Specified by:
getSearchTypesin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getStatusTypes
public org.osid.shared.TypeIterator getStatusTypes() throws org.osid.repository.RepositoryException- Specified by:
getStatusTypesin interfaceorg.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:
getStatusin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
validateAsset
public boolean validateAsset(org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException- Specified by:
validateAssetin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
invalidateAsset
public void invalidateAsset(org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException- Specified by:
invalidateAssetin interfaceorg.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:
getAssetin interfaceorg.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:
getAssetByDatein interfaceorg.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:
getAssetDatesin interfaceorg.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:
getAssetsBySearchin interfaceorg.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:
copyAssetin interfaceorg.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:
getRecordStructuresByTypein interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getProperties
public org.osid.shared.PropertiesIterator getProperties() throws org.osid.repository.RepositoryException- Specified by:
getPropertiesin interfaceorg.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:
getPropertiesByTypein interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
getPropertyTypes
public org.osid.shared.TypeIterator getPropertyTypes() throws org.osid.repository.RepositoryException- Specified by:
getPropertyTypesin interfaceorg.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:
supportsUpdatein interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
supportsVersioning
public boolean supportsVersioning() throws org.osid.repository.RepositoryException- Specified by:
supportsVersioningin interfaceorg.osid.repository.Repository- Throws:
org.osid.repository.RepositoryException
-
-