|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The RepositoryManager supports creating and deleting Repositories and Assets as well as getting the various Types used.
All implementations of OsidManager (manager) provide methods for accessing and manipulating the various objects defined in the OSID package. A manager defines an implementation of an OSID. All other OSID objects come either directly or indirectly from the manager. New instances of the OSID objects are created either directly or indirectly by the manager. Because the OSID objects are defined using interfaces, create methods must be used instead of the new operator to create instances of the OSID objects. Create methods are used both to instantiate and persist OSID objects. Using the OsidManager class to define an OSID's implementation allows the application to change OSID implementations by changing the OsidManager package name used to load an implementation. Applications developed using managers permit OSID implementation substitution without changing the application source code. As with all managers, use the OsidLoader to load an implementation of this interface.
OSID Version: 2.0
Licensed under the MIT
O.K.I. OSID Definition License.
| Method Summary | |
Id |
copyAsset(Repository repository,
Id assetId)
Create in a Repository a copy of an Asset. |
Repository |
createRepository(java.lang.String displayName,
java.lang.String description,
Type repositoryType)
Create a new Repository of the specified Type. |
void |
deleteRepository(Id repositoryId)
Delete a Repository. |
Asset |
getAsset(Id assetId)
Get the Asset with the specified unique Id. |
Asset |
getAssetByDate(Id assetId,
long date)
Get the Asset with the specified unique Id that is appropriate for the date specified. |
LongValueIterator |
getAssetDates(Id assetId)
Get all the dates for the Asset with the specified unique Id. |
AssetIterator |
getAssetsBySearch(Repository[] repositories,
java.io.Serializable searchCriteria,
Type searchType,
Properties searchProperties)
Perform a search of the specified Type and get all the Assets that satisfy the SearchCriteria. |
RepositoryIterator |
getRepositories()
Get all the Repositories. |
RepositoryIterator |
getRepositoriesByType(Type repositoryType)
Get all the Repositories of the specified Type. |
Repository |
getRepository(Id repositoryId)
Get the Repository with the specified unique Id. |
TypeIterator |
getRepositoryTypes()
Get all the RepositoryTypes in this RepositoryManager. |
| Methods inherited from interface org.osid.OsidManager |
assignConfiguration, assignOsidContext, getOsidContext, osidVersion_2_0 |
| Method Detail |
public Repository createRepository(java.lang.String displayName,
java.lang.String description,
Type repositoryType)
throws RepositoryException
displayName - description - repositoryType -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public void deleteRepository(Id repositoryId)
throws RepositoryException
repositoryId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public RepositoryIterator getRepositories()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, CONFIGURATION_ERROR, UNIMPLEMENTED
public RepositoryIterator getRepositoriesByType(Type repositoryType)
throws RepositoryException
repositoryType -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
public Repository getRepository(Id repositoryId)
throws RepositoryException
repositoryId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public Asset getAsset(Id assetId)
throws RepositoryException
assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public Asset getAssetByDate(Id assetId,
long date)
throws RepositoryException
assetId - date - the number of milliseconds since January 1, 1970, 00:00:00
GMT
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, NO_OBJECT_WITH_THIS_DATE
public LongValueIterator getAssetDates(Id assetId)
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
public AssetIterator getAssetsBySearch(Repository[] repositories,
java.io.Serializable searchCriteria,
Type searchType,
Properties searchProperties)
throws RepositoryException
repositories - searchCriteria - searchType - searchProperties -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE, UNKNOWN_REPOSITORY
public Id copyAsset(Repository repository,
Id assetId)
throws RepositoryException
repository - assetId -
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
public TypeIterator getRepositoryTypes()
throws RepositoryException
RepositoryException - An exception with one of
the following messages defined in
org.osid.repository.RepositoryException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||