|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.netmarkets.rule.NmRuleServiceFwd
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
NmRuleServiceFwd()
|
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 . |
private static Manager |
getManager()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public NmRuleServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public ArrayList list(NmCommandBean cb) throws WTException
list
in interface NmRuleService
cb
-
WTException
public ArrayList listRulesForType(String className, NmOid projectOid) throws WTException
listRulesForType
in interface NmRuleService
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
.
getRule
in interface NmRuleService
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
create
in interface NmRuleService
cb
- params
- the request parameters
WTException
public NmChangeModel[] update(NmCommandBean cb, Hashtable params) throws WTException
update
in interface NmRuleService
cb
- params
-
WTException
public NmChangeModel[] enable(NmCommandBean cb) throws WTException
enable
in interface NmRuleService
cb
-
WTException
public NmChangeModel[] disable(NmCommandBean cb) throws WTException
disable
in interface NmRuleService
cb
-
WTException
public NmRule getNmRule(NmCommandBean cb, Hashtable params) throws WTException
getNmRule
in interface NmRuleService
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
findTypes
in interface NmRuleService
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
.
getNmRule
in interface NmRuleService
rule
-
WTException
public NmRule getNmRule(Rule rule, boolean includeSpec) throws WTException
getNmRule
in interface NmRuleService
rule
- includeSpec
- if true include the XML specification in the returned
WTException
public NmRule getRuleProperties(NmCommandBean cb, boolean includeSpec) throws WTException
getRuleProperties
in interface NmRuleService
cb
- includeSpec
- if true, include the XML specification in the returned NmRule
WTException
public String getRuleObjectTypeFromPersistId(String ObjType) throws WTException
getRuleObjectTypeFromPersistId
in interface NmRuleService
ObjType
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |