|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported API: false
Extendable: false
Method Summary | |
NmChangeModel[] |
create(NmCommandBean cb,
Hashtable params)
Create a rule using the data in the request. |
NmChangeModel[] |
disable(NmCommandBean cb)
Supported API: false |
NmChangeModel[] |
enable(NmCommandBean cb)
Supported API: false |
Enumeration |
findTypes(Class objType,
WTContainerRef container,
boolean enabled)
Find TypeBasedRule s that are of type RuleType.TYPE
and whose object type attribute equals objType . |
NmRule |
getNmRule(NmCommandBean cb,
Hashtable params)
Get the rule from the specified container for the specified rule type and object type. |
NmRule |
getNmRule(Rule rule)
Gets a NmRule for the specified rule. |
NmRule |
getNmRule(Rule rule,
boolean includeSpec)
Supported API: false |
Rule |
getRule(String name,
RuleType ruleType,
WTContainerRef container)
Get the Rule that has the specified name
and ruleType in the specified container. |
String |
getRuleObjectTypeFromPersistId(String ObjType)
Supported API: false |
NmRule |
getRuleProperties(NmCommandBean cb,
boolean includeSpec)
Supported API: false |
ArrayList |
list(NmCommandBean cb)
Supported API: false |
ArrayList |
listRulesForType(String className,
NmOid projectOid)
Supported API: false |
NmChangeModel[] |
update(NmCommandBean cb,
Hashtable params)
Update a rule using the data in the request. |
Method Detail |
public ArrayList list(NmCommandBean cb) throws WTException
cb
-
WTException
public ArrayList listRulesForType(String className, NmOid projectOid) throws WTException
className
- projectOid
-
WTException
public Rule getRule(String name, RuleType ruleType, WTContainerRef container) throws WTException
Rule
that has the specified name
and ruleType
in the specified container. If no rule
is found in the specified container, then its parent container is
searched. This repeats until a rule is found or the top of the hierarchy
is reached. If no such rule exists, return null
.
name
- the rule name (cannot be null)ruleType
- the rule type (cannot be null)container
-
WTException
public NmChangeModel[] create(NmCommandBean cb, Hashtable params) throws WTException
cb
- params
- the request parameters
WTException
public NmChangeModel[] update(NmCommandBean cb, Hashtable params) throws WTException
cb
- params
-
WTException
public NmChangeModel[] enable(NmCommandBean cb) throws WTException
cb
-
WTException
public NmChangeModel[] disable(NmCommandBean cb) throws WTException
cb
-
WTException
public NmRule getNmRule(NmCommandBean cb, Hashtable params) throws WTException
cb
- params
- the request parameters
WTException
public Enumeration findTypes(Class objType, WTContainerRef container, boolean enabled) throws WTException
TypeBasedRule
s that are of type RuleType.TYPE
and whose object type attribute equals objType
.
If enabled
is true then only return those rules that
are enabled. If enabled
is false
then all
matching rules are returned.
Supported API: false
objType
- find rules that reference this object typecontainer
- The container in which to search for typesenabled
-
WTException
public NmRule getNmRule(Rule rule) throws WTException
NmRule
for the specified rule. Do not include
the XML contents in the returned NmRule
.
rule
-
WTException
public NmRule getNmRule(Rule rule, boolean includeSpec) throws WTException
rule
- includeSpec
- if true include the XML specification in the returned
WTException
public NmRule getRuleProperties(NmCommandBean cb, boolean includeSpec) throws WTException
cb
- includeSpec
- if true, include the XML specification in the returned NmRule
WTException
public String getRuleObjectTypeFromPersistId(String ObjType) throws WTException
ObjType
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |