|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a stateless API for executing named rule
sets and/or rules using the underlying BEA rules engine. This
interface is exposed as a stateless session EJB that can be
created using the RulesManagerHome
.
RulesManagerHome
Field Summary | |
static java.lang.String |
RULESET_REPOSITORY_CLASS_NAME
The environment entry key for reading the RuleSetRepository
implementation class name. |
Fields inherited from class com.bea.p13n.rules.manager.RuleSetRepository |
BINARY_FORMAT,
STRING_FORMAT |
Method Summary | |
java.util.Iterator |
evaluateRule(java.lang.String ruleSetUri,
java.lang.String ruleName,
java.lang.Object[] inputObjects)
Applies a named rule to the set of objects provided by the caller and returns an iterator over the resultant set of objects. |
java.util.Iterator |
evaluateRule(java.lang.String ruleSetUri,
java.lang.String ruleName,
java.lang.Object[] inputObjects,
ObjectFilter filter)
Applies a named rule to the set of objects provided by the caller and returns an iterator over the resultant set of objects that pass the given filter. |
java.util.Iterator |
evaluateRuleSet(java.lang.String ruleSetUri,
java.lang.Object[] inputObjects)
Applies a named set of rules to the set of objects provided by the caller and returns an iterator over the resultant set of objects. |
java.util.Iterator |
evaluateRuleSet(java.lang.String ruleSetUri,
java.lang.Object[] inputObjects,
ObjectFilter filter)
Applies a named set of rules to the set of objects provided by the caller and returns an iterator over the resultant set of objects that pass the given filter. |
java.lang.String |
getRuleSet(java.lang.String ruleSetUri)
Deprecated. replaced by RuleSetRepository.getRuleSet(String, int) |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Methods inherited from interface com.bea.p13n.rules.manager.RuleSetRepository |
getRuleSet,
getRuleSets,
removeRuleSet,
setRuleSet |
Field Detail |
public static final java.lang.String RULESET_REPOSITORY_CLASS_NAME
RuleSetRepository
implementation class name. All methods defined on the RuleSetRespository
interface are delegated to an instance of this class.Method Detail |
public java.util.Iterator evaluateRuleSet(java.lang.String ruleSetUri, java.lang.Object[] inputObjects) throws java.rmi.RemoteException, java.lang.IllegalArgumentException, ApplicationException
ruleSetUri
- The URI of the rule set which contains the set of rules.inputObjects
- The set of objects to which the rules are to be applied.ruleSetUri
is null
or zero-length, or if inputObjects
is null
.public java.util.Iterator evaluateRuleSet(java.lang.String ruleSetUri, java.lang.Object[] inputObjects, ObjectFilter filter) throws java.rmi.RemoteException, java.lang.IllegalArgumentException, ApplicationException
ruleSetUri
- The URI of the rule set which contains the set of rules.inputObjects
- The set of objects to which the rules are to be appliedfilter
- An ObjectFilter
used to filter the results of rule exection.ruleSetUri
is null
or zero-length, or if inputObjects
is null
.public java.util.Iterator evaluateRule(java.lang.String ruleSetUri, java.lang.String ruleName, java.lang.Object[] inputObjects) throws java.rmi.RemoteException, java.lang.IllegalArgumentException, ApplicationException
ruleSetUri
- The URI of the rule set which contains the rule to be executed.ruleName
- The name of the rule to be executed.inputObjects
- The set of objects to which the rule is to be appliedruleSetUri
or ruleName
are null
or zero-length, or if inputObjects
is
null
.public java.util.Iterator evaluateRule(java.lang.String ruleSetUri, java.lang.String ruleName, java.lang.Object[] inputObjects, ObjectFilter filter) throws java.rmi.RemoteException, java.lang.IllegalArgumentException, ApplicationException
ruleSetUri
- The URI of the rule set which contains the rule to be executed.ruleName
- The name of the rule to be executed.inputObjects
- The set of objects to which the rule is to be appliedfilter
- An ObjectFilter
used to filter the results of rule exection.ruleSetUri
or ruleName
are null
or zero-length, or if inputObjects
is null
.public java.lang.String getRuleSet(java.lang.String ruleSetUri) throws RuleSetNotFoundException, ApplicationException, java.lang.IllegalArgumentException, java.rmi.RemoteException
RuleSetRepository.getRuleSet(String, int)
ruleSetUri
- the URI of the target rule set.ruleSetUri
is an
invalid rule set URI.
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |