public class MDSUpdater extends java.lang.Object implements DictionaryUpdater
| 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.
|
public RuleDictionary loadForUpdate(java.lang.String path, DictionaryFinder finder) throws RepositoryException, SDKException
DictionaryUpdaterupdateDictionary, the dictionary must be reloaded since an error results in the discard of the pending update.loadForUpdate in interface DictionaryUpdaterpath - the path to the dictionaryfinder - the DictionaryFinder used to resolve dictionary links.RuleDictionary.RepositoryException - if an error occurred during the load of the dictionarySDKException
public void updateDictionary(java.lang.String path,
RuleDictionary dictionary)
throws RepositoryException,
SDKException
DictionaryUpdaterupdateDictionary in interface DictionaryUpdaterpath - 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.
public void abortUpdate(java.lang.String path)
throws RepositoryException
DictionaryUpdaterloadForEdit.abortUpdate in interface DictionaryUpdaterpath - the path to the dictionaryRepositoryException - if an error occurred during the abort
public void close()
throws RepositoryException
DictionaryUpdaterclose in interface DictionaryUpdaterRepositoryException - an exception occured during closing the repository