Java Doc for RepositoryManager.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » component » osid » repository » registry » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.component.osid.repository.registry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  voidassignConfiguration(java.util.Properties configurationProperties)
    
public  voidassignOsidContext(org.osid.OsidContext context)
    
public  org.osid.shared.IdcopyAsset(org.osid.repository.Repository repository, org.osid.shared.Id assetId)
    
public  org.osid.repository.RepositorycreateRepository(String displayName, String description, org.osid.shared.Type repositoryType)
     Unimplemented method.
public  voiddeleteRepository(org.osid.shared.Id repositoryId)
     Unimplemented method.
public  org.osid.repository.AssetgetAsset(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.AssetgetAssetByDate(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.LongValueIteratorgetAssetDates(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.AssetIteratorgetAssetsBySearch(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.OsidContextgetOsidContext()
    
public  org.osid.repository.RepositoryIteratorgetRepositories()
     Working from the current Repository Manager Registry, this method returns the union of Repositories across registered RepositoryManagers.
public  org.osid.repository.RepositoryIteratorgetRepositoriesByType(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.RepositorygetRepository(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.TypeIteratorgetRepositoryTypes()
     Working from the current Repository Manager Registry, this method asks each manager to get all its repository types.
public  voidosidVersion_2_0()
    



Method Detail
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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.