org.wso2.carbon.registry.core.config
Class RemoteConfiguration

java.lang.Object
  extended by org.wso2.carbon.registry.core.config.RemoteConfiguration

public class RemoteConfiguration
extends Object

This class contains configuration of a remote instance.


Constructor Summary
RemoteConfiguration()
           
 
Method Summary
 String getCacheEnabled()
          Method to obtain whether caching is enabled or not.
 String getDbConfig()
          Method to obtain the database configuration.
 String getId()
          Method to obtain the instance identifier.
 String getReadOnly()
          Method to obtain whether the registry is read only or not.
 String getRegistryRoot()
          Method to obtain the root of the remote registry instance.
 String getResolvedTrustedPwd()
          If the password is protected , then decrypts the password and returns the plain text Otherwise, returns the given password as-is
 String getTrustedPwd()
          Method to obtain the trusted user's password.
 String getTrustedUser()
          Method to obtain the trusted username.
 String getType()
          Method to obtain the type of remote registry.
 String getUrl()
          Method to obtain the connection URL.
 void setCacheEnabled(String cacheEnabled)
          Method to set whether caching is enabled or not.
 void setDbConfig(String dbConfig)
          Method to set the database configuration.
 void setId(String id)
          Method to set the instance identifier.
 void setPasswordManager(org.wso2.securevault.SecretResolver secretResolver)
           
 void setReadOnly(String readOnly)
          Method to set whether the registry is read only or not.
 void setRegistryRoot(String registryRoot)
          Method to set the root of the remote registry instance.
 void setTrustedPwd(String trustedPwd)
          Method to set the trusted user's password.
 void setTrustedUser(String trustedUser)
          Method to set the trusted username.
 void setType(String type)
          Method to set the type of remote registry.
 void setUrl(String url)
          Method to set the connection URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteConfiguration

public RemoteConfiguration()
Method Detail

setPasswordManager

public void setPasswordManager(org.wso2.securevault.SecretResolver secretResolver)

getId

public String getId()
Method to obtain the instance identifier.

Returns:
the instance identifier.

setId

public void setId(String id)
Method to set the instance identifier.

Parameters:
id - the instance identifier.

getUrl

public String getUrl()
Method to obtain the connection URL.

Returns:
the connection URL.

setUrl

public void setUrl(String url)
Method to set the connection URL.

Parameters:
url - the connection URL.

getTrustedUser

public String getTrustedUser()
Method to obtain the trusted username.

Returns:
the trusted username.

setTrustedUser

public void setTrustedUser(String trustedUser)
Method to set the trusted username.

Parameters:
trustedUser - the trusted username.

getType

public String getType()
Method to obtain the type of remote registry.

Returns:
the type of remote registry.

setType

public void setType(String type)
Method to set the type of remote registry.

Parameters:
type - the type of remote registry.

getTrustedPwd

public String getTrustedPwd()
Method to obtain the trusted user's password.

Returns:
the trusted user's password.

setTrustedPwd

public void setTrustedPwd(String trustedPwd)
Method to set the trusted user's password.

Parameters:
trustedPwd - the trusted user's password.

getDbConfig

public String getDbConfig()
Method to obtain the database configuration.

Returns:
the database configuration.

setDbConfig

public void setDbConfig(String dbConfig)
Method to set the database configuration.

Parameters:
dbConfig - the database configuration.

getReadOnly

public String getReadOnly()
Method to obtain whether the registry is read only or not.

Returns:
whether the registry is read only or not.

setReadOnly

public void setReadOnly(String readOnly)
Method to set whether the registry is read only or not.

Parameters:
readOnly - whether the registry is read only or not.

getCacheEnabled

public String getCacheEnabled()
Method to obtain whether caching is enabled or not.

Returns:
whether caching is enabled or not.

setCacheEnabled

public void setCacheEnabled(String cacheEnabled)
Method to set whether caching is enabled or not.

Parameters:
cacheEnabled - whether caching is enabled or not.

getRegistryRoot

public String getRegistryRoot()
Method to obtain the root of the remote registry instance.

Returns:
the root of the remote registry instance.

setRegistryRoot

public void setRegistryRoot(String registryRoot)
Method to set the root of the remote registry instance.

Parameters:
registryRoot - the root of the remote registry instance.

getResolvedTrustedPwd

public String getResolvedTrustedPwd()
If the password is protected , then decrypts the password and returns the plain text Otherwise, returns the given password as-is

Returns:
Resolved password


Copyright © 2011 WSO2 Inc. All Rights Reserved.