org.wso2.registry.jdbc
Class EmbeddedRegistry

java.lang.Object
  extended by org.wso2.registry.jdbc.EmbeddedRegistry
Direct Known Subclasses:
InMemoryEmbeddedRegistry

public class EmbeddedRegistry
extends java.lang.Object


Constructor Summary
protected EmbeddedRegistry()
          Subclasses may use this constructor, which need to set datasource and realm after instantiating the registry.
  EmbeddedRegistry(javax.sql.DataSource dataSource)
           
  EmbeddedRegistry(javax.sql.DataSource dataSource, UserRealm realm)
           
 
Method Summary
 void configure(javax.sql.DataSource dataSource)
           
protected  void configure(javax.sql.DataSource dataSource, UserRealm defaultRealm)
           
 UserRegistry getSystemRegistry()
          Returns a registry to be used for system operations.
 UserRegistry getUserRegistry()
           
 UserRegistry getUserRegistry(java.lang.String userName)
           
 UserRegistry getUserRegistry(java.lang.String userName, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedRegistry

public EmbeddedRegistry(javax.sql.DataSource dataSource)
                 throws RegistryException
Throws:
RegistryException

EmbeddedRegistry

public EmbeddedRegistry(javax.sql.DataSource dataSource,
                        UserRealm realm)
                 throws RegistryException
Throws:
RegistryException

EmbeddedRegistry

protected EmbeddedRegistry()
Subclasses may use this constructor, which need to set datasource and realm after instantiating the registry.

Method Detail

configure

public void configure(javax.sql.DataSource dataSource)
               throws RegistryException
Throws:
RegistryException

configure

protected void configure(javax.sql.DataSource dataSource,
                         UserRealm defaultRealm)
                  throws RegistryException
Throws:
RegistryException

getUserRegistry

public UserRegistry getUserRegistry()
                             throws RegistryException
Throws:
RegistryException

getSystemRegistry

public UserRegistry getSystemRegistry()
                               throws RegistryException
Returns a registry to be used for system operations. Human users should not be allowed log in using this registry.

Returns:
User registry for system user.
Throws:
RegistryException

getUserRegistry

public UserRegistry getUserRegistry(java.lang.String userName,
                                    java.lang.String password)
                             throws RegistryException
Throws:
RegistryException

getUserRegistry

public UserRegistry getUserRegistry(java.lang.String userName)
                             throws RegistryException
Throws:
RegistryException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.