|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provides a common API to access rule definitions stored in repository.
| Method Summary | |
void |
close()It is the place for the repository to release any resources used. |
boolean |
exists(java.lang.String dictName, java.lang.String markerName)Query whether a dictioanry with given name and marker name exists in the repository. |
void |
exportDictionary(java.lang.String dictName, java.lang.String markerName, java.net.URL exportDestination)Export a dictionary associated with the given marker in the repository to a file. |
void |
exportDictionary(java.lang.String dictName, java.net.URL exportDestination)Export all versions of the selected dictionary in the repository. |
java.lang.String |
getDictionaryDescription(java.lang.String dictName)Get description about a particular dictionary. |
java.util.List |
getDictionaryNames()Get names of dictionaries stored in the repository |
java.lang.String |
getMarkerDescription(java.lang.String dictName, java.lang.String markerName)Get description about a particular marker |
java.util.List |
getMarkerNames(java.lang.String dictName)get list of marker names for a dictionary from the repository |
RepositoryContext |
getRepositoryContext()Get context for repository |
RepositoryType |
getRepositoryType()Get the RuleRepository type. |
void |
importDictionaries(java.net.URL dictionariesLocation)Import a dictionary into a repository. |
void |
init(RepositoryContext repoCtx)Initialize the repository by passing security and configuration information. |
RuleDictionary |
loadDictionary(java.lang.String dictName)Load a dictionary from the repository, By default, the most recent dictionary is opened. |
RuleDictionary |
loadDictionary(java.lang.String dictName, java.lang.String markerName)Load a dictionary associated with a given marker from the repository, |
void |
mark(java.lang.String newMarkerName, java.lang.String dictName)mark the latest content of selected dictionary in the repository |
void |
mark(java.lang.String newMarkerName, java.lang.String dictName, java.lang.String currentMarkerName)mark a dictionary with given name and marker name in the repository |
void |
remove(java.lang.String dictName)Remove all version of the dictionary from repository. |
void |
remove(java.lang.String dictName, java.lang.String markerName)Remove a dictionary associated with a given marker from repository. |
void |
save(RuleDictionary dictionary)Save a dictionary to repository. |
void |
saveAs(RuleDictionary dictionary, java.lang.String newDictionaryName, java.lang.String newMarkerName)Save a dictionary to repository. |
| Method Detail |
public RepositoryType getRepositoryType()
public void init(RepositoryContext repoCtx)
throws RepositoryException
repoCtx - an instance of the RepositoryContext object, which includes security and repository configuraiton information.an - exception occured when the repository initialization failsRepositoryExceptionpublic RepositoryContext getRepositoryContext()
public java.util.List getDictionaryNames()
throws RepositoryException
an - exception occured when accessing the repositoryRepositoryException
public boolean exists(java.lang.String dictName,
java.lang.String markerName)
throws RepositoryException
dictName - name of the dictioanrymarkerName - marker name of the dictionaryan - exception occured when accessing the repositoryRepositoryException
public RuleDictionary loadDictionary(java.lang.String dictName)
throws RepositoryException
dictName - name of the dictionaryan - exception occured when loading the dictionaryRepositoryException
public void save(RuleDictionary dictionary)
throws DictionaryAlreadyExistsException,
RepositoryException
dictionary - the dictionary to be savedRepositoryException - an exception occured when the repository is not able to successfully save the dictionaryDictionaryAlreadyExistsException
public void saveAs(RuleDictionary dictionary,
java.lang.String newDictionaryName,
java.lang.String newMarkerName)
throws DictionaryAlreadyExistsException,
RepositoryException
dictionary - the dictionary to be savednewDictionaryName - name of the dictionary to be savednewMarkerName - new marker name.DictionaryAlreadyExistsException - an exception occured when a dictionary with the same name and maker name already existis in the repository.RepositoryException - an exception occured when the repository is not able to successfully save the dictionary
public void remove(java.lang.String dictName)
throws RepositoryException
dictName - name of the dictionary to be removedRepositoryException - an exception occured if the dicitonary can not be removed
public void close()
throws RepositoryException
RepositoryException - an exception occured during closing the repository
public void exportDictionary(java.lang.String dictName,
java.lang.String markerName,
java.net.URL exportDestination)
throws RepositoryException
dictName - name of the dictioanry to be exportedmarkerName - the marker to be exportedexportDestination - the URL locating the exported jar file. The URL must be a file:URL. e.g. the URL can be obtained by new File(jarpath).toURL().RepositoryException - an exception occured while exporting the dictioanry
public void exportDictionary(java.lang.String dictName,
java.net.URL exportDestination)
throws RepositoryException
dictName - name of the dictionary to be exportedexportDestination - the URL locating the exported jar file. The URL must be a file:URL. e.g. the URL can be obtained by new File(jarpath).toURL().RepositoryException - an exception occured while exporting the repository
public void importDictionaries(java.net.URL dictionariesLocation)
throws DictionaryAlreadyExistsException,
RepositoryException
dictionariesLocation - URL locating a dictionary to be imported. The URL must be a file:URL. e.g. the URL can be obtained by new File(jarpath).toURL().DictionaryAlreadyExistsException - an exception occured when a dictionary with the same name and maker name already existis in the repository.RepositoryException - an exception occured while importing the dictionary
public void mark(java.lang.String newMarkerName,
java.lang.String dictName)
throws RepositoryException
newMarkerName - name of the marker to be createddictName - name of the dictionary to be markedRepositoryException - an exception occured when marking the dictionary
public void mark(java.lang.String newMarkerName,
java.lang.String dictName,
java.lang.String currentMarkerName)
throws RepositoryException
newMarkerName - name of the marker to be createddictName - name of the dictionary to be markedcurrentMarkerName - current marker name of the dictionary to be markedRepositoryException - an exception occured when marking the dictionary
public java.util.List getMarkerNames(java.lang.String dictName)
throws RepositoryException
dictName - name of the dictionary against which the associated markers are queriedan - exception occured when getting marker namesRepositoryException
public RuleDictionary loadDictionary(java.lang.String dictName,
java.lang.String markerName)
throws RepositoryException
dictName - name of the dictionarymarkerName - name of the markeran - exception occured when loading the dictionaryRepositoryException
public void remove(java.lang.String dictName,
java.lang.String markerName)
throws RepositoryException
dictName - name of the dictionary to be removedmarkerName - name of the markerRepositoryException - an exception occured if the dicitonary can not be removed
public java.lang.String getDictionaryDescription(java.lang.String dictName)
throws RepositoryException
dictName - name of the dictionaryRepositoryException - an exception occured when getting the description if the dicitonary can not be removed
public java.lang.String getMarkerDescription(java.lang.String dictName,
java.lang.String markerName)
throws RepositoryException
dictName - name of the dictionarymarkerName - name of the markerRepositoryException - an exception occured when getting the description
|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||