Package oracle.rules.sdk2.repository
Interface DictionaryExplorer
public interface DictionaryExplorer
DictionaryExplorer is the interface used to
- list dictionaries in the MDS repository,
- create a new dictionary in the MDS repository,
- delete a dictionary from the MDS repository.
MDSRepository.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this DictionaryExplorer and release resources it holds.voidcreateDictionary(String path, RuleDictionary dictionary) Create a dictionary atpathwith the contents of thedictionary.voiddeleteDictionary(String path) Delete the dictionary atpathfrom repository.Get a list of paths to dictionaries stored in the repository.
-
Method Details
-
list
Get a list of paths to dictionaries stored in the repository.- Parameters:
path- Thepathis the starting point for building the list of paths. If thepathis null, the search starts from the root directory. Thepathmay be a full path to a specific dictionary. In this case, if the dictionary exists, a one element list will be returned. If not dictionaries are found and empty list is returned.recurse- If recurse is true, subdirectories found atpathwill also be searched.- Returns:
- A list of paths to dictionaries.
- Throws:
RepositoryException- if error occurs accessing the repository
-
createDictionary
void createDictionary(String path, RuleDictionary dictionary) throws RepositoryException, SDKException Create a dictionary atpathwith the contents of thedictionary.- Parameters:
path- the path to the dictionary- Throws:
RepositoryException- Thrown if an error occured during the create operation.SDKException
-
deleteDictionary
Delete the dictionary atpathfrom repository.- Parameters:
path- the path to the dictionary- Throws:
RepositoryException- Thrown if an error occured during the delete operation.
-
close
Close this DictionaryExplorer and release resources it holds. Once closed, this instance can no longer be used.- Throws:
RepositoryException- an exception occured during closing the repository
-