|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExternalPropertiesConfig
This interface gives access to a configuration's external properties. External properties are special in that the data is stored in an external file rather than by the MetamergeConfig object's storage. Use the BaseConfiguration's getXXX/setXXX methods to read and write properties.
Field Summary |
---|
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 |
Method Summary | |
---|---|
String |
getCipher()
Returns the Cipher algorithm used when reading/writing an encrypted file |
boolean |
getEncrypted()
Gets the encrypted flag of the ExternalPropertiesConfig object |
String |
getFilePath()
Gets the filePath attribute of the ExternalPropertiesConfig object |
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)
This method merges the contents of a file into the current list of properties. |
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 |
setPassword(String password)
Sets the password used when opening an encrypted file |
Method Detail |
---|
String getFilePath()
void setFilePath(String path)
path
- The new filePath valueString getPassword()
void setPassword(String password)
String getCipher()
void setCipher(String cipher)
boolean getEncrypted()
void setEncrypted(boolean encrypted)
encrypted
- The new encrypted valueboolean getSaveNeeded()
void loadData() throws Exception
Exception
- if the operation does not succeedvoid mergeData(String path) throws Exception
path
- The file path to load properties from
Exception
- if the operation does not succeedvoid saveData() throws Exception
Exception
- if the operation does not succeed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |