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


Field Summary
protected  RegistryContext registryContext
           
 
Constructor Summary
protected EmbeddedRegistry()
           
  EmbeddedRegistry(RegistryContext context)
           
  EmbeddedRegistry(RegistryContext context, UserRealm realm)
           
 
Method Summary
protected  void configure()
           
protected  void configure(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
 

Field Detail

registryContext

protected RegistryContext registryContext
Constructor Detail

EmbeddedRegistry

public EmbeddedRegistry(RegistryContext context)
                 throws RegistryException
Throws:
RegistryException

EmbeddedRegistry

public EmbeddedRegistry(RegistryContext context,
                        UserRealm realm)
                 throws RegistryException
Throws:
RegistryException

EmbeddedRegistry

protected EmbeddedRegistry()
Method Detail

configure

protected void configure()
                  throws RegistryException
Throws:
RegistryException

configure

protected void configure(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.