|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl | +--org.omg.CORBA_2_3.portable.ObjectImpl | +--javax.rmi.CORBA.Stub | +--com.ibm.websphere.brb.mgmt._IRuleFolder_Stub
Constructor Summary | |
_IRuleFolder_Stub()
|
Method Summary | |
java.lang.String[] |
_ids()
|
IRule |
createRule(int arg0,
IRule arg1)
Creates a rule into this folder initialized with the contents of the given rule. |
IRule |
createRule(int arg0,
IRule arg1,
java.lang.String arg2)
Creates a rule into this folder initialized with the contents of the given rule and set to the given primary key. |
IRule |
createRule(int arg0,
java.lang.String arg1)
Creates a rule into this folder with the given name. |
IRule |
createRule(int arg0,
java.lang.String arg1,
java.lang.String arg2)
Creates a rule into this folder with the given name and primary key. |
IRuleFolder |
createSubFolder(java.lang.String arg0)
Creates a folder or hierarchy of folders as a child of this folder. |
void |
delete()
Deletes this folder and all of its children. |
void |
deleteAllRules()
Delete all rules contained in this folder. |
void |
deleteAllSubFolders()
Delete all subfolders contained in this folder. |
IRule |
findRuleByPrimaryKey(java.lang.String arg0,
boolean arg1,
int arg2)
Find a rule in this folder with the given primary key. |
java.util.Collection |
findRules(boolean arg0,
int arg1)
Gets all rules contained within this folder. |
java.util.Collection |
findRules(QueryNode arg0,
boolean arg1,
int arg2)
Look in this folder for rules that match the given query. |
java.util.Collection |
findRulesByName(java.lang.String arg0,
boolean arg1,
int arg2)
Look in this folder for a rule with the given name. |
java.lang.String |
getFullName()
Get the fully qualified name of this folder. |
java.lang.String |
getName()
Returns the name of this folder. |
IRuleFolder |
getParent()
This method returns the parent folder for this folder. |
IRuleFolder |
getRoot()
Returns the root IRuleFolder for this rule namespace. |
IRuleFolder |
getSubFolder(java.lang.String arg0)
Gets the folder for the given relative path. |
IRuleFolder |
getSubFolder(java.lang.String arg0,
boolean arg1)
Gets the folder for the given relative path. |
java.util.Collection |
getSubFolders()
Gets all folders directly contained within this folder. |
void |
move(IRuleFolder arg0)
Move this folder into a new folder. |
void |
rename(java.lang.String arg0)
Renames this folder. |
Methods inherited from class javax.rmi.CORBA.Stub |
connect, equals, hashCode, toString |
Methods inherited from class org.omg.CORBA_2_3.portable.ObjectImpl |
_get_codebase |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public _IRuleFolder_Stub()
Method Detail |
public java.lang.String[] _ids()
_ids
in class org.omg.CORBA.portable.ObjectImpl
public IRule createRule(int arg0, IRule arg1) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
IRuleCopy
is returned.
The persistent rule is not created on the server until method
updatePersistentRule
is called on the
IRuleCopy
. When returning a reference, the persistent rule is created on
the server immediately.createRule
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
ruleReturnType
- indicates whether to return a local copy (IRule.TYPE_COPY) or a reference (IRule.TYPE_REFERENCE)sourceRule
- the rule whose values are copied to get the new ruleBRBeansIllegalArgumentException
- if the ruleReturnType
is not valid or the sourceRule
is nullpublic IRule createRule(int arg0, IRule arg1, java.lang.String arg2) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
IRuleCopy
is returned.
The persistent rule is not created on the server until method
updatePersistentRule
is called on the
IRuleCopy
. When returning a reference, the persistent rule is created on
the server immediately.createRule
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
ruleReturnType
- indicates whether to return a local copy (IRule.TYPE_COPY) or a reference (IRule.TYPE_REFERENCE)sourceRule
- the rule whose values are copied to get the new ruleprimaryKey
- the primary key of the new ruleBRBeansIllegalArgumentException
- if the ruleReturnType
is not valid or the sourceRule
or primaryKey
is nullpublic IRule createRule(int arg0, java.lang.String arg1) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
IRuleCopy
is returned.
The persistent rule is not created on the server until method
updatePersistentRule
is called on the
IRuleCopy
.
When returning a reference, the persistent rule is created on
the server immediately.createRule
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
ruleReturnType
- indicates whether to return a local copy (IRule.TYPE_COPY) or a reference (IRule.TYPE_REFERENCE)name
- the name of the RuleBRBeansIllegalArgumentException
- if the ruleReturnType
is not validpublic IRule createRule(int arg0, java.lang.String arg1, java.lang.String arg2) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
IRuleCopy
is returned.
The persistent rule is not created on the server until method
updatePersistentRule
is called on the
IRuleCopy
.
When returning a reference, the persistent rule is created on
the server immediately.createRule
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
ruleReturnType
- indicates whether to return a copy (IRule.TYPE_COPY) or a reference (IRule.TYPE_REFERENCE)name
- the name of the ruleprimaryKey
- the primary key to give this ruleBRBeansIllegalArgumentException
- if the ruleReturnType
is not valid or the primaryKey
is nullpublic IRuleFolder createSubFolder(java.lang.String arg0) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
createSubFolder
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
path
- the path of the new folderBusinessRUleBeansException
- if the folder or path already existspublic void delete() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
delete
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
BusinessRUleBeansException
- if this folder is the root folderpublic void deleteAllRules() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
deleteAllRules
in interface IRuleFolder
public void deleteAllSubFolders() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
deleteAllSubFolders
in interface IRuleFolder
public IRule findRuleByPrimaryKey(java.lang.String arg0, boolean arg1, int arg2) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getRoot
). Null is returned
if the rule is not found.
Parameter includeSubFolders
determines whether to search
subfolders. Pass true
to search subfolders.
This method can return either a reference to the rule (IRule.TYPE_REFERENCE) or a local copy of the rule (IRule.TYPE_COPY).
findRuleByPrimaryKey
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
primaryKey
- the primaryKey of the ruleincludeSubFolders
- indicates whether to include subfolders as wellreturnType
- indicates whether to return a reference to the persistent rule or a local copy of the rulepublic java.util.Collection findRules(QueryNode arg0, boolean arg1, int arg2) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
includeSubFolders
determines whether to search
subfolders. Pass true
to search subfolders.
This method can return references to the rules
(IRule.TYPE_REFERENCE) or local copies of the rule
(IRule.TYPE_COPY). Pass this value to parameter returnType
For example, find all rules named "isEligible".
RuleNameNode nameNode = new RuleNameNode("isEligible", AbstractStringNode.EQUALS); Collection rules = root.findRules(nameNode, true, IRule.TYPE_REFERENCE);The following finds rules named "isEligible" with a classification of "SeniorCitizen".
RuleNameNode nameNode = new RuleNameNode("isEligible", AbstractStringNode.EQUALS); ClassificationNode cNode = new ClassificationNode("SeniorCitizen", AbstractStringNode.EQUALS); AndNode andNode = new AndNode(nameNode, cNode); Collection rules = root.findRules(andNode, true, IRule.TYPE_REFERENCE);
findRules
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
queryNode
- represents the type of query to performincludeSubFolders
- indicates whether to include subfolders as wellreturnType
- indicates whether to return a reference to the persistent rule or a local copy of the rulepublic java.util.Collection findRules(boolean arg0, int arg1) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
includeSubFolders
determines whether to search
subfolders. Pass true
to search subfolders.
This method can return either references to the rules (IRule.TYPE_REFERENCE) or local copies of the rules (IRule.TYPE_COPY).
findRules
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
includeSubFolders
- indicates whether to include subfolders as wellreturnType
- indicates whether to return references to the persistent rules or local copies of the rulespublic java.util.Collection findRulesByName(java.lang.String arg0, boolean arg1, int arg2) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
Collection
because there
could be multiple rules with this same name. An empty collection
is returned if no rule is found with this name. The parameter
ruleName
can specify a relative path followed
by the name of the rule or may simply specify a name of the
rule. If a relative path is specified, then the includeSubFolders
parameter must be false. This is because a particular subfolder is
already being specified by the relative path. If parameter
includeSubFolders
is not false and a relative path is
specified, then a BRBeansIllegalArgumentException is thrown.
This method can return references to the rules (IRule.TYPE_REFERENCE)
or local copies of the rule (IRule.TYPE_COPY). Pass this value to
parameter returnType
For example, the following will return the rule named
"isEligibleForDiscount" in folder lifeFolder
.
IRuleFolder lifeFolder = root.getSubFolder("com/acme/lifeInsurance"); Collection rules = lifeFolder.findRules("isEligibleForDiscount", IRule.TYPE_REFERENCE);The following finds a rule specifying a fully qualified name:
Collection rules = root.findRules("com/acme/lifeInsurance/isEligibleForDiscount", IRule.TYPE_REFERENCE);
findRulesByName
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
ruleName
- the name of the rule for which to searchincludeSubFolders
- indicates whether to include subfolders as well. true cannot
be specified if a relative path is specified for the ruleName
parameter.returnType
- indicates whether to return a reference to the persistent rule or a local copy of the rulepublic java.lang.String getFullName() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getFullName
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
public java.lang.String getName() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getFullName
to get
a fully qualified name.getName
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
public IRuleFolder getParent() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getParent
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
public IRuleFolder getRoot() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getRoot
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
public IRuleFolder getSubFolder(java.lang.String arg0) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getSubFolder
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
path
- the relative path of the folder to retrieveBRBeansIllegalArgumentException
- if the path
is invalid. A valid path
name must not be null or the empty string and must not start with a '/' character.public IRuleFolder getSubFolder(java.lang.String arg0, boolean arg1) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
createFolder
determines whether to create the
folders if they do not exist. Passing true
will
cause the folders to be created. If false
is
passed and the folder does not exist, null is returned.getSubFolder
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
path
- the relative path of the folder to retrievecreateFolder
- indicates whether to create the folder if it doesn't existBRBeansIllegalArgumentException
- if the path
is invalid. A valid path
name must not be null or the empty string and must not start with a '/' character.public java.util.Collection getSubFolders() throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
getSubFolders
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
public void move(IRuleFolder arg0) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
move
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
toFolder
- the folder into which to move this folderpublic void rename(java.lang.String arg0) throws BusinessRuleBeansException, java.rmi.RemoteException
IRuleFolder
rename
in interface IRuleFolder
com.ibm.websphere.brb.mgmt.IRuleFolder
newName
- the new name of this folder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |