Class Asset
- java.lang.Object
-
- edu.indiana.lib.osid.base.repository.Asset
-
- All Implemented Interfaces:
Serializable,org.osid.repository.Asset
- Direct Known Subclasses:
Asset
public abstract class Asset extends Object implements org.osid.repository.Asset
$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 Asset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAsset(org.osid.shared.Id assetId)voidcopyRecordStructure(org.osid.shared.Id assetId, org.osid.shared.Id recordStructureId)org.osid.repository.RecordcreateRecord(org.osid.shared.Id recordStructureId)voiddeleteRecord(org.osid.shared.Id recordId)org.osid.repository.AssetIteratorgetAssets()org.osid.repository.AssetIteratorgetAssetsByType(org.osid.shared.Type assetType)SerializablegetContent()org.osid.repository.RecordStructuregetContentRecordStructure()StringgetDescription()StringgetDisplayName()longgetEffectiveDate()longgetExpirationDate()org.osid.shared.IdgetId()org.osid.repository.PartgetPart(org.osid.shared.Id partId)org.osid.repository.PartIteratorgetPartByPart(org.osid.shared.Id partStructureId)org.osid.repository.PartIteratorgetPartsByPartStructure(org.osid.shared.Id partStructureId)SerializablegetPartValue(org.osid.shared.Id partId)org.osid.shared.ObjectIteratorgetPartValueByPart(org.osid.shared.Id partStructureId)org.osid.shared.ObjectIteratorgetPartValuesByPartStructure(org.osid.shared.Id partStructureId)org.osid.repository.RecordgetRecord(org.osid.shared.Id recordId)org.osid.repository.RecordIteratorgetRecords()org.osid.repository.RecordIteratorgetRecordsByRecordStructure(org.osid.shared.Id recordStructureId)org.osid.repository.RecordStructureIteratorgetRecordStructures()org.osid.shared.IdgetRepository()voidinheritRecordStructure(org.osid.shared.Id assetId, org.osid.shared.Id recordStructureId)voidremoveAsset(org.osid.shared.Id assetId, boolean includeChildren)voidupdateContent(Serializable content)voidupdateDescription(String description)voidupdateDisplayName(String displayName)voidupdateEffectiveDate(long effectiveDate)voidupdateExpirationDate(long expirationDate)
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName() throws org.osid.repository.RepositoryException
- Specified by:
getDisplayNamein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
updateDisplayName
public void updateDisplayName(String displayName) throws org.osid.repository.RepositoryException
- Specified by:
updateDisplayNamein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getDescription
public String getDescription() throws org.osid.repository.RepositoryException
- Specified by:
getDescriptionin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
updateDescription
public void updateDescription(String description) throws org.osid.repository.RepositoryException
- Specified by:
updateDescriptionin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getId
public org.osid.shared.Id getId() throws org.osid.repository.RepositoryException- Specified by:
getIdin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getRepository
public org.osid.shared.Id getRepository() throws org.osid.repository.RepositoryException- Specified by:
getRepositoryin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getContent
public Serializable getContent() throws org.osid.repository.RepositoryException
- Specified by:
getContentin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
updateContent
public void updateContent(Serializable content) throws org.osid.repository.RepositoryException
- Specified by:
updateContentin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
addAsset
public void addAsset(org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException- Specified by:
addAssetin interfaceorg.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:
removeAssetin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getAssets
public org.osid.repository.AssetIterator getAssets() throws org.osid.repository.RepositoryException- Specified by:
getAssetsin interfaceorg.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:
getAssetsByTypein interfaceorg.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:
createRecordin interfaceorg.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:
inheritRecordStructurein interfaceorg.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:
copyRecordStructurein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
deleteRecord
public void deleteRecord(org.osid.shared.Id recordId) throws org.osid.repository.RepositoryException- Specified by:
deleteRecordin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getRecords
public org.osid.repository.RecordIterator getRecords() throws org.osid.repository.RepositoryException- Specified by:
getRecordsin interfaceorg.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:
getRecordsByRecordStructurein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getRecordStructures
public org.osid.repository.RecordStructureIterator getRecordStructures() throws org.osid.repository.RepositoryException- Specified by:
getRecordStructuresin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getContentRecordStructure
public org.osid.repository.RecordStructure getContentRecordStructure() throws org.osid.repository.RepositoryException- Specified by:
getContentRecordStructurein interfaceorg.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:
getRecordin interfaceorg.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:
getPartin interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getPartValue
public Serializable getPartValue(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException
- Specified by:
getPartValuein interfaceorg.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:
getEffectiveDatein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
updateEffectiveDate
public void updateEffectiveDate(long effectiveDate) throws org.osid.repository.RepositoryException- Specified by:
updateEffectiveDatein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
getExpirationDate
public long getExpirationDate() throws org.osid.repository.RepositoryException- Specified by:
getExpirationDatein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
updateExpirationDate
public void updateExpirationDate(long expirationDate) throws org.osid.repository.RepositoryException- Specified by:
updateExpirationDatein interfaceorg.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:
getPartValuesByPartStructurein interfaceorg.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:
getPartsByPartStructurein interfaceorg.osid.repository.Asset- Throws:
org.osid.repository.RepositoryException
-
-