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

      • Repository

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