Interface Repository

All Superinterfaces:
Browsable, Extensible, Federateable, Identifiable, OsidCatalog, OsidObject, Sourceable

public interface Repository extends OsidCatalog

A repository defines a collection of assets.

  • Method Details

    • getRepositoryRecord

      RepositoryRecord getRepositoryRecord(Type repositoryRecordType) throws OperationFailedException
      Gets the record corresponding to the given Repository record Type . This method is used to retrieve an object implementing the requested record. The repositoryRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(repositoryRecordType) is true .
      Parameters:
      repositoryRecordType - a repository record type
      Returns:
      the repository record
      Throws:
      NullArgumentException - repositoryRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(repositoryRecordType) is false
      Compliance:
      mandatory - This method must be implemented.