com.softwareag.centrasite.appl.framework.persistence.impl
Class StandaloneRegistryProvider

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.impl.StandaloneRegistryProvider
All Implemented Interfaces:
RegistryProvider

public class StandaloneRegistryProvider
extends java.lang.Object
implements RegistryProvider

Implementation of the RegistryProvider interface that uses standard JAXR API to obtain a connection.


Constructor Summary
StandaloneRegistryProvider(java.lang.String user, java.lang.String password)
           
StandaloneRegistryProvider(java.lang.String user, java.lang.String password, boolean browserBahaviour)
           
StandaloneRegistryProvider(java.lang.String registryUrl, java.lang.String user, java.lang.String password)
           
StandaloneRegistryProvider(java.lang.String registryUrl, java.lang.String user, java.lang.String password, boolean browserBahaviour)
           
 
Method Summary
 void close()
          Close the JAXR connection.
 javax.xml.registry.Connection getConnection()
          Returns the JAXR connection that will be used when performing registry operations.
 java.util.Locale getLocale()
          The Locale in which the registry will be accessed.
 java.lang.String getPassword()
          Retrieves the used password.
 java.lang.String getRegistryUrl()
          Retrieves the used registryUrl.
 java.lang.String getUser()
          Retrieves the used username.
 void setLocale(java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandaloneRegistryProvider

public StandaloneRegistryProvider(java.lang.String user,
                                  java.lang.String password,
                                  boolean browserBahaviour)
                           throws CSAppFrameworkException
Parameters:
user -
password -
browserBahaviour - If true sets the "com.centrasite.jaxr.BrowserBehaviour" property of the JAXR connection factory. For type management this flag should be true.
Throws:
CSAppFrameworkException

StandaloneRegistryProvider

public StandaloneRegistryProvider(java.lang.String user,
                                  java.lang.String password)
                           throws CSAppFrameworkException
Parameters:
user -
password -
Throws:
CSAppFrameworkException

StandaloneRegistryProvider

public StandaloneRegistryProvider(java.lang.String registryUrl,
                                  java.lang.String user,
                                  java.lang.String password)
                           throws CSAppFrameworkException
Parameters:
registryUrl -
user -
password -
Throws:
CSAppFrameworkException

StandaloneRegistryProvider

public StandaloneRegistryProvider(java.lang.String registryUrl,
                                  java.lang.String user,
                                  java.lang.String password,
                                  boolean browserBahaviour)
                           throws CSAppFrameworkException
Parameters:
registryUrl -
user -
password -
browserBahaviour - If true sets the "com.centrasite.jaxr.BrowserBehaviour" property of the JAXR connection factory. For type management this flag should be true.
Throws:
CSAppFrameworkException
Method Detail

getLocale

public java.util.Locale getLocale()
The Locale in which the registry will be accessed.}

Specified by:
getLocale in interface RegistryProvider
Returns:
locale

setLocale

public final void setLocale(java.util.Locale locale)
Parameters:
locale -
Throws:
CSAppFrameworkException

getConnection

public javax.xml.registry.Connection getConnection()
Returns the JAXR connection that will be used when performing registry operations.}

Specified by:
getConnection in interface RegistryProvider
Returns:
JAXR connection

getRegistryUrl

public java.lang.String getRegistryUrl()
Retrieves the used registryUrl.

Returns:
String

getPassword

public java.lang.String getPassword()
Retrieves the used password.

Returns:
String

getUser

public java.lang.String getUser()
Retrieves the used username.

Returns:
String

close

public void close()
Close the JAXR connection.