| java.lang.Object org.sakaiproject.component.osid.repository.registry.RepositoryManager
RepositoryManager | public class RepositoryManager implements org.osid.repository.RepositoryManager(Code) | | This is an implementation of the RepositoryManager interface in the Repository OSID.
This implementation federates across other RepositoryManagers. These managers are found
in a registry. The details of the registry are hidden within the implementation of a
"straw-man" Registry OSID. That OSID's RegistryManager provides access to the individual
RepositoryManagers' Repositories. In this implementation of RepositoryManager, in many cases
we pass the call to the registered implementations and the result or results.
author: Massachusetts Institute of Techbology, Sakai Software Development Team |
Method Summary | |
public void | assignConfiguration(java.util.Properties configurationProperties) | public void | assignOsidContext(org.osid.OsidContext context) | public org.osid.shared.Id | copyAsset(org.osid.repository.Repository repository, org.osid.shared.Id assetId) | public org.osid.repository.Repository | createRepository(String displayName, String description, org.osid.shared.Type repositoryType) Unimplemented method. | public void | deleteRepository(org.osid.shared.Id repositoryId) Unimplemented method. | public org.osid.repository.Asset | getAsset(org.osid.shared.Id assetId) Working from the current Repository Manager Registry, this method asks each manager to get the asset.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. | public org.osid.repository.Asset | getAssetByDate(org.osid.shared.Id assetId, long date) Working from the current Repository Manager Registry, this method asks each manager to get the asset.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. | public org.osid.shared.LongValueIterator | getAssetDates(org.osid.shared.Id assetId) Working from the current Repository Manager Registry, this method asks each manager to get the asset's dates.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. | public org.osid.repository.AssetIterator | getAssetsBySearch(org.osid.repository.Repository[] repositories, java.io.Serializable searchCriteria, org.osid.shared.Type searchType, org.osid.shared.Properties searchProperties) Working from the current Repository Manager Registry, this method asks each manager to search for the assets. | public org.osid.OsidContext | getOsidContext() | public org.osid.repository.RepositoryIterator | getRepositories() Working from the current Repository Manager Registry, this method returns the union of Repositories across registered RepositoryManagers. | public org.osid.repository.RepositoryIterator | getRepositoriesByType(org.osid.shared.Type repositoryType) Working from the current Repository Manager Registry, this method returns the union of Repositories across registered RepositoryManagers. | public org.osid.repository.Repository | getRepository(org.osid.shared.Id repositoryId) Working from the current Repository Manager Registry, this method checks the repository id provided against the known repositories ids for a match.
This implementation assumes repository ids are unique and returns the first repository whose id matches the criterion.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. | public org.osid.shared.TypeIterator | getRepositoryTypes() Working from the current Repository Manager Registry, this method asks each manager to get all its repository types. | public void | osidVersion_2_0() |
assignConfiguration | public void assignConfiguration(java.util.Properties configurationProperties) throws org.osid.repository.RepositoryException(Code) | | Simply stores the Configuration and then sets up to access implementations of the RegistryManager and an IdManager
|
assignOsidContext | public void assignOsidContext(org.osid.OsidContext context) throws org.osid.repository.RepositoryException(Code) | | Simply stores the OsidContext
|
copyAsset | public org.osid.shared.Id copyAsset(org.osid.repository.Repository repository, org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException(Code) | | Unimplemented method
|
createRepository | public org.osid.repository.Repository createRepository(String displayName, String description, org.osid.shared.Type repositoryType) throws org.osid.repository.RepositoryException(Code) | | Unimplemented method. We don't know to which RepositoryManager to delegate this, so we do nothing.
|
deleteRepository | public void deleteRepository(org.osid.shared.Id repositoryId) throws org.osid.repository.RepositoryException(Code) | | Unimplemented method. We could do this by checking all managers, but this seems outside the purpose of this implementation.
|
getAsset | public org.osid.repository.Asset getAsset(org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method asks each manager to get the asset.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. Any manager that does not recognize the asset id, should throw the exception org.osid.shared.SharedException.UNKNOWN_ID.
This method throws org.osid.shared.SharedException.NULL_ARGUMENT if the assetId argument is null.
This method throws org.osid.shared.SharedException.UNKNOWN_ID if all managers throw this exception.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
getAssetByDate | public org.osid.repository.Asset getAssetByDate(org.osid.shared.Id assetId, long date) throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method asks each manager to get the asset.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. Any manager that does not recognize the asset id, should throw the exception org.osid.shared.SharedException.UNKNOWN_ID.
This method throws org.osid.shared.SharedException.NULL_ARGUMENT if the assetId argument is null.
This method throws org.osid.shared.SharedException.UNKNOWN_ID if all managers throw this exception.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
getAssetDates | public org.osid.shared.LongValueIterator getAssetDates(org.osid.shared.Id assetId) throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method asks each manager to get the asset's dates.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. Any manager that does not recognize the asset id, should throw the exception org.osid.shared.SharedException.UNKNOWN_ID.
This method throws org.osid.shared.SharedException.NULL_ARGUMENT if the repositories argument is null.
This method throws org.osid.shared.SharedException.UNKNOWN_ID if all managers throw this exception.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
getAssetsBySearch | public org.osid.repository.AssetIterator getAssetsBySearch(org.osid.repository.Repository[] repositories, java.io.Serializable searchCriteria, org.osid.shared.Type searchType, org.osid.shared.Properties searchProperties) throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method asks each manager to search for the assets.
If an exception is thrown by a call to a manager, the exception is logged and processing continues.
This method throws org.osid.shared.SharedException.NULL_ARGUMENT if the repositories argument is null.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
getOsidContext | public org.osid.OsidContext getOsidContext() throws org.osid.repository.RepositoryException(Code) | | Simply return OsidContext set by assignOsidContext
|
getRepositories | public org.osid.repository.RepositoryIterator getRepositories() throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method returns the union of Repositories across registered RepositoryManagers. Note that the contents of the Registry can change at run-time and the Repositories and their order returned by a registered RepositoryManager can change at any time.
If an exception is thrown by a call to a manager, the exception is logged and processing continues.
This method can throw org.osid.OsidException.OPERATION_FAILED
|
getRepositoriesByType | public org.osid.repository.RepositoryIterator getRepositoriesByType(org.osid.shared.Type repositoryType) throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method returns the union of Repositories across registered RepositoryManagers. Note that the contents of the Registry can change at run-time and the Repositories and their order returned by a registered RepositoryManager can change at any time.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. Any repository that does not support the repositoryType, should throw the exception org.osid.shared.SharedException.UNKNOWN_TYPE.
This method throws org.osid.shared.SharedException.NULL_ARGUMENT if the repositoryType argument is null.
This method throws org.osid.shared.SharedException.UNKNOWN_TYPE if all managers throw this exception.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
getRepository | public org.osid.repository.Repository getRepository(org.osid.shared.Id repositoryId) throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method checks the repository id provided against the known repositories ids for a match.
This implementation assumes repository ids are unique and returns the first repository whose id matches the criterion.
If an exception is thrown by a call to a manager, the exception is logged and processing continues. Any repository that does not recognize the repository id, should throw the exception org.osid.shared.SharedException.UNKNOWN_ID.
This method throws org.osid.shared.SharedException.NULL_ARGUMENT if the repositoryId argument is null.
This method throws org.osid.shared.SharedException.UNKNOWN_ID if all managers throw this exception.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
getRepositoryTypes | public org.osid.shared.TypeIterator getRepositoryTypes() throws org.osid.repository.RepositoryException(Code) | | Working from the current Repository Manager Registry, this method asks each manager to get all its repository types. The method returns distinct values -- no duplicates.
If an exception is thrown by a call to a manager, the exception is logged and processing continues.
This method can throw org.osid.OsidException.OPERATION_FAILED.
|
osidVersion_2_0 | public void osidVersion_2_0() throws org.osid.repository.RepositoryException(Code) | | |
|
|