public interface DictionaryUpdater
DictionaryUpdater is the interface to use in updating
a rule dictionary that is located by a path.
An instance is obtained from MDSRepository.
A dictionary must be loaded with loadForUpdate before saving
saving the updates with updateDictionary. The best practice is
to invoke loadForUpdate prior to any changes are made to the
dictionary.| Modifier and Type | Method and Description |
|---|---|
void |
abortUpdate(java.lang.String path)
Abort the edit of a dictionary previously loaded with
loadForEdit. |
void |
close()
Close this DictionaryUpdater and release resources it holds.
|
RuleDictionary |
loadForUpdate(java.lang.String path,
DictionaryFinder finder)
Load a dictionary from the repository for the purpose of updating it.
|
void |
updateDictionary(java.lang.String path,
RuleDictionary dictionary)
Update a dictionary previously loaded for update.
|
RuleDictionary loadForUpdate(java.lang.String path, DictionaryFinder finder) throws RepositoryException, SDKException
updateDictionary,
the dictionary must be reloaded since an error results in the discard
of the pending update.path - the path to the dictionaryfinder - the DictionaryFinder used to resolve dictionary links.RuleDictionary.RepositoryException - if an error occurred during the load of
the dictionarySDKExceptionvoid updateDictionary(java.lang.String path,
RuleDictionary dictionary)
throws RepositoryException,
SDKException
path - the path to the dictionarydictionary - the rule dictionary to saveRepositoryException - an error occured during the
save of dictionary.SDKException - if an error occured serializing the dictionary
to XML.void abortUpdate(java.lang.String path)
throws RepositoryException
loadForEdit.path - the path to the dictionaryRepositoryException - if an error occurred during the abortvoid close()
throws RepositoryException
RepositoryException - an exception occured during closing the
repository