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

      • Asset

        public Asset()
    • 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
      • 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