Class Asset

  • All Implemented Interfaces:
    Serializable, org.osid.repository.Asset

    public class Asset
    extends Asset
    Version:
    Author:
    Massachusetts Institute of Techbology, Sakai Software Development Team
    See Also:
    Serialized Form
    • Constructor Detail

      • Asset

        protected Asset​(String displayName,
                        String description,
                        String idString,
                        org.osid.shared.Id repositoryId)
                 throws org.osid.repository.RepositoryException
        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
        Overrides:
        getDisplayName in class Asset
        Throws:
        org.osid.repository.RepositoryException
      • getDescription

        public String getDescription()
                              throws org.osid.repository.RepositoryException
        Specified by:
        getDescription in interface org.osid.repository.Asset
        Overrides:
        getDescription in class 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
        Overrides:
        getId in class 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
        Overrides:
        getRepository in class Asset
        Throws:
        org.osid.repository.RepositoryException
      • getContent

        public Serializable getContent()
                                throws org.osid.repository.RepositoryException
        Specified by:
        getContent in interface org.osid.repository.Asset
        Overrides:
        getContent in class 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
        Overrides:
        updateContent in class 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
        Overrides:
        getAssets in class 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
        Overrides:
        getAssetsByType in class 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
        Overrides:
        createRecord in class 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
        Overrides:
        deleteRecord in class 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
        Overrides:
        getRecords in class 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
        Overrides:
        getRecordsByRecordStructure in class Asset
        Throws:
        org.osid.repository.RepositoryException
      • getAssetType

        public org.osid.shared.Type getAssetType()
                                          throws org.osid.repository.RepositoryException
        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
        Overrides:
        getRecordStructures in class 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
        Overrides:
        getContentRecordStructure in class 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
        Overrides:
        getRecord in class 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
        Overrides:
        getPart in class 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
        Overrides:
        getPartValue in class Asset
        Throws:
        org.osid.repository.RepositoryException
      • getPartByPart

        public org.osid.repository.PartIterator getPartByPart​(org.osid.shared.Id partStructureId)
                                                       throws org.osid.repository.RepositoryException
        Overrides:
        getPartByPart in class Asset
        Throws:
        org.osid.repository.RepositoryException
      • getPartValueByPart

        public org.osid.shared.ObjectIterator getPartValueByPart​(org.osid.shared.Id partStructureId)
                                                          throws org.osid.repository.RepositoryException
        Overrides:
        getPartValueByPart in class 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
        Overrides:
        getPartValuesByPartStructure in class 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
        Overrides:
        getPartsByPartStructure in class Asset
        Throws:
        org.osid.repository.RepositoryException
      • getRecordsByRecordStructureType

        public org.osid.repository.RecordIterator getRecordsByRecordStructureType​(org.osid.shared.Type recordStructureType)
                                                                           throws org.osid.repository.RepositoryException
        Throws:
        org.osid.repository.RepositoryException