|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.interfaces.ExternalPropertiesDelegator
public class ExternalPropertiesDelegator
Field Summary |
---|
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl |
---|
NAME |
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration |
---|
DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SUBTREE |
Constructor Summary | |
---|---|
ExternalPropertiesDelegator(MetamergeConfig mc)
|
Method Summary | |
---|---|
int |
compare(Object o1,
Object o2)
|
void |
configurationChanged(MetamergeConfigChange changeEvent)
When folder changes we must add/remove it from our internal list |
String |
getCipher()
Returns the Cipher algorithm used when reading/writing an encrypted file |
Object |
getClone()
Returns a cloned version of this object. |
ExternalPropertiesConfig |
getContainerForKey(Object name)
Returns the ExternalPropertiesConfig object that contains the property named name |
ExternalPropertiesConfig |
getDefaultExternalPropertyObject()
Returns the default ExternalPropertiesConfig object. |
boolean |
getEncrypted()
Gets the encrypted flag of the ExternalPropertiesConfig object |
TDIProperties |
getEPObjects()
|
String |
getFilePath()
Gets the filePath attribute of the ExternalPropertiesConfig object |
List |
getKeys(int level)
This method returns the combined set of property names in all extprop objects |
TDIPropertyStore |
getNamedXP(String name)
Returns the extern property config named name > |
Object |
getParameter(Object name)
Returns the value for a given config item. |
String |
getPassword()
Returns the password used when opening an encrypted file. |
boolean |
getSaveNeeded()
Gets the saveNeeded flag of the ExternalPropertiesConfig object |
void |
loadData()
This method reads the external properties into memory for subseqent use. |
void |
mergeData(String path)
Deprecated. Use a named ExternalProperties object instead of this call |
void |
removeParameter(Object name)
Get/Set parameter variants. |
void |
saveData()
This method writes back the data to the external file. |
void |
setCipher(String cipher)
Sets the Cipher algorithm used when reading/writing an encrypted file |
void |
setEncrypted(boolean encrypted)
Sets the encrypted flag of the ExternalPropertiesConfig object |
void |
setFilePath(String path)
Sets the filePath attribute of the ExternalPropertiesConfig object |
void |
setParameter(Object name,
Object value)
Sets the value for a given config item |
void |
setPassword(String password)
Sets the password used when opening an encrypted file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public ExternalPropertiesDelegator(MetamergeConfig mc)
Method Detail |
---|
public void configurationChanged(MetamergeConfigChange changeEvent)
configurationChanged
in interface MetamergeConfigChangeListener
configurationChanged
in class BaseConfigurationImpl
public boolean getSaveNeeded()
getSaveNeeded
in interface ExternalPropertiesConfig
public void loadData() throws Exception
loadData
in interface ExternalPropertiesConfig
Exception
- if the operation does not succeedpublic void saveData() throws Exception
saveData
in interface ExternalPropertiesConfig
Exception
- if the operation does not succeedpublic List getKeys(int level)
getKeys
in interface BaseConfiguration
getKeys
in class BaseConfigurationImpl
level
- The level of keys returned.
Exception
- if the operation does not succeedpublic Object getParameter(Object name)
BaseConfiguration
getParameter
in interface BaseConfiguration
getParameter
in class BaseConfigurationImpl
name
- The parameter name
public ExternalPropertiesConfig getContainerForKey(Object name)
public ExternalPropertiesConfig getDefaultExternalPropertyObject()
public void setParameter(Object name, Object value)
BaseConfiguration
setParameter
in interface BaseConfiguration
setParameter
in class BaseConfigurationImpl
name
- Parameter namevalue
- Parameter valuepublic void removeParameter(Object name)
BaseConfigurationImpl
removeParameter
in interface BaseConfiguration
removeParameter
in class BaseConfigurationImpl
name
- Parameter namepublic TDIPropertyStore getNamedXP(String name)
public TDIProperties getEPObjects()
public int compare(Object o1, Object o2)
compare
in interface Comparator
public Object getClone()
BaseConfiguration
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
public String getFilePath()
getFilePath
in interface ExternalPropertiesConfig
public void setFilePath(String path)
setFilePath
in interface ExternalPropertiesConfig
path
- The new filePath valuepublic String getPassword()
getPassword
in interface ExternalPropertiesConfig
public void setPassword(String password)
setPassword
in interface ExternalPropertiesConfig
public String getCipher()
getCipher
in interface ExternalPropertiesConfig
public void setCipher(String cipher)
setCipher
in interface ExternalPropertiesConfig
public boolean getEncrypted()
getEncrypted
in interface ExternalPropertiesConfig
public void setEncrypted(boolean encrypted)
setEncrypted
in interface ExternalPropertiesConfig
encrypted
- The new encrypted valuepublic void mergeData(String path) throws Exception
mergeData
in interface ExternalPropertiesConfig
path
- The file path to load properties from
Exception
- Always, use a named ExternalProperties object instead of this call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |