|
||||||||||
| 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 MetamergeConfigChangeListenerconfigurationChanged in class BaseConfigurationImplpublic boolean getSaveNeeded()
getSaveNeeded in interface ExternalPropertiesConfig
public void loadData()
throws Exception
loadData in interface ExternalPropertiesConfigException - if the operation does not succeed
public void saveData()
throws Exception
saveData in interface ExternalPropertiesConfigException - if the operation does not succeedpublic List getKeys(int level)
getKeys in interface BaseConfigurationgetKeys in class BaseConfigurationImpllevel - The level of keys returned.
Exception - if the operation does not succeedpublic Object getParameter(Object name)
BaseConfiguration
getParameter in interface BaseConfigurationgetParameter in class BaseConfigurationImplname - The parameter name
public ExternalPropertiesConfig getContainerForKey(Object name)
public ExternalPropertiesConfig getDefaultExternalPropertyObject()
public void setParameter(Object name,
Object value)
BaseConfiguration
setParameter in interface BaseConfigurationsetParameter in class BaseConfigurationImplname - Parameter namevalue - Parameter valuepublic void removeParameter(Object name)
BaseConfigurationImpl
removeParameter in interface BaseConfigurationremoveParameter in class BaseConfigurationImplname - Parameter namepublic TDIPropertyStore getNamedXP(String name)
public TDIProperties getEPObjects()
public int compare(Object o1,
Object o2)
compare in interface Comparatorpublic Object getClone()
BaseConfiguration
getClone in interface BaseConfigurationgetClone in class BaseConfigurationImplpublic String getFilePath()
getFilePath in interface ExternalPropertiesConfigpublic void setFilePath(String path)
setFilePath in interface ExternalPropertiesConfigpath - The new filePath valuepublic String getPassword()
getPassword in interface ExternalPropertiesConfigpublic void setPassword(String password)
setPassword in interface ExternalPropertiesConfigpublic String getCipher()
getCipher in interface ExternalPropertiesConfigpublic void setCipher(String cipher)
setCipher in interface ExternalPropertiesConfigpublic boolean getEncrypted()
getEncrypted in interface ExternalPropertiesConfigpublic void setEncrypted(boolean encrypted)
setEncrypted in interface ExternalPropertiesConfigencrypted - The new encrypted value
public void mergeData(String path)
throws Exception
mergeData in interface ExternalPropertiesConfigpath - 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 | |||||||||