Package com.aspectran.core.context.rule
Class InvokeActionRule
java.lang.Object
com.aspectran.core.context.rule.InvokeActionRule
- All Implemented Interfaces:
BeanReferenceable
The Class InvokeActionRule.
Created: 2008. 03. 22 PM 5:50:35
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentItemRule
(ItemRule argumentItemRule) Adds the argument item rule.void
addPropertyItemRule
(ItemRule propertyItemRule) Adds the property item rule.Gets the action id.Gets the argument item rule map.Class<?>
Gets bean id.Returns the Bean Referrer Type.Returns whether to hide result of the action.Gets the action method name.Gets the property item rule map.boolean
isHidden()
Returns whether to hide result of the action.boolean
newArgumentItemRule
(String argumentName) Adds a new argument rule with the specified name and returns it.static InvokeActionRule
newInstance
(String methodName, Boolean hidden) Returns a new instance of BeanActionRule.static InvokeActionRule
newInstance
(String id, String beanId, String methodName, Boolean hidden) Returns a new instance of BeanActionRule.newPropertyItemRule
(String propertyName) Adds a new property rule with the specified name and returns it.void
setActionId
(String actionId) Sets the action id.void
setArgumentItemRuleMap
(ItemRuleMap argumentItemRuleMap) Sets the argument item rule map.void
setBeanClass
(Class<?> beanClass) void
Sets bean id.void
Sets whether to hide result of the action.void
void
setMethodName
(String methodName) Sets the action method name.void
setPropertyItemRuleMap
(ItemRuleMap propertyItemRuleMap) Sets the property item rule map.void
setRequiresTranslet
(boolean requiresTranslet) toString()
-
Constructor Details
-
InvokeActionRule
public InvokeActionRule()
-
-
Method Details
-
getActionId
Gets the action id.- Returns:
- the action id
-
setActionId
Sets the action id.- Parameters:
actionId
- the new action id
-
getBeanId
Gets bean id.- Returns:
- the bean id
-
setBeanId
Sets bean id.- Parameters:
beanId
- the bean id
-
getBeanClass
-
setBeanClass
-
getMethodName
Gets the action method name.- Returns:
- the action method name
-
setMethodName
Sets the action method name.- Parameters:
methodName
- the new action method name
-
getMethod
-
setMethod
-
isRequiresTranslet
public boolean isRequiresTranslet() -
setRequiresTranslet
public void setRequiresTranslet(boolean requiresTranslet) -
getHidden
Returns whether to hide result of the action.- Returns:
- true, if this action is hidden
-
isHidden
public boolean isHidden()Returns whether to hide result of the action.- Returns:
- true, if this action is hidden
-
setHidden
Sets whether to hide result of the action.- Parameters:
hidden
- whether to hide result of the action
-
getArgumentItemRuleMap
Gets the argument item rule map.- Returns:
- the argument item rule map
-
setArgumentItemRuleMap
Sets the argument item rule map.- Parameters:
argumentItemRuleMap
- the new argument item rule map
-
newArgumentItemRule
Adds a new argument rule with the specified name and returns it.- Parameters:
argumentName
- the argument name- Returns:
- the argument item rule
-
addArgumentItemRule
Adds the argument item rule.- Parameters:
argumentItemRule
- the new argument item rule
-
getPropertyItemRuleMap
Gets the property item rule map.- Returns:
- the property item rule map
-
setPropertyItemRuleMap
Sets the property item rule map.- Parameters:
propertyItemRuleMap
- the new property item rule map
-
newPropertyItemRule
Adds a new property rule with the specified name and returns it.- Parameters:
propertyName
- the property name- Returns:
- the property item rule
-
addPropertyItemRule
Adds the property item rule.- Parameters:
propertyItemRule
- the new property item rule
-
getBeanRefererType
Description copied from interface:BeanReferenceable
Returns the Bean Referrer Type.- Specified by:
getBeanRefererType
in interfaceBeanReferenceable
- Returns:
- the Bean Referrer Type
-
toString
-
newInstance
@NonNull public static InvokeActionRule newInstance(String id, String beanId, String methodName, Boolean hidden) throws IllegalRuleException Returns a new instance of BeanActionRule.- Parameters:
id
- the action idbeanId
- the bean idmethodName
- the method namehidden
- true if hiding the result of the action; false otherwise- Returns:
- the invoke action rule
- Throws:
IllegalRuleException
- if an illegal rule is found
-
newInstance
@NonNull public static InvokeActionRule newInstance(String methodName, Boolean hidden) throws IllegalRuleException Returns a new instance of BeanActionRule.- Parameters:
methodName
- the method namehidden
- true if hiding the result of the action; false otherwise- Returns:
- the invoke action rule
- Throws:
IllegalRuleException
- if an illegal rule is found
-