Class InvokeActionRule

java.lang.Object
com.aspectran.core.context.rule.InvokeActionRule
All Implemented Interfaces:
BeanReferenceable

public class InvokeActionRule extends Object implements BeanReferenceable
The Class InvokeActionRule.

Created: 2008. 03. 22 PM 5:50:35

  • Constructor Details

    • InvokeActionRule

      public InvokeActionRule()
  • Method Details

    • getActionId

      public String getActionId()
      Gets the action id.
      Returns:
      the action id
    • setActionId

      public void setActionId(String actionId)
      Sets the action id.
      Parameters:
      actionId - the new action id
    • getBeanId

      public String getBeanId()
      Gets bean id.
      Returns:
      the bean id
    • setBeanId

      public void setBeanId(String beanId)
      Sets bean id.
      Parameters:
      beanId - the bean id
    • getBeanClass

      public Class<?> getBeanClass()
    • setBeanClass

      public void setBeanClass(Class<?> beanClass)
    • getMethodName

      public String getMethodName()
      Gets the action method name.
      Returns:
      the action method name
    • setMethodName

      public void setMethodName(String methodName)
      Sets the action method name.
      Parameters:
      methodName - the new action method name
    • getMethod

      public Method getMethod()
    • setMethod

      public void setMethod(Method method)
    • isRequiresTranslet

      public boolean isRequiresTranslet()
    • setRequiresTranslet

      public void setRequiresTranslet(boolean requiresTranslet)
    • getHidden

      public Boolean 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

      public void setHidden(Boolean hidden)
      Sets whether to hide result of the action.
      Parameters:
      hidden - whether to hide result of the action
    • getArgumentItemRuleMap

      public ItemRuleMap getArgumentItemRuleMap()
      Gets the argument item rule map.
      Returns:
      the argument item rule map
    • setArgumentItemRuleMap

      public void setArgumentItemRuleMap(ItemRuleMap argumentItemRuleMap)
      Sets the argument item rule map.
      Parameters:
      argumentItemRuleMap - the new argument item rule map
    • newArgumentItemRule

      public ItemRule newArgumentItemRule(String argumentName)
      Adds a new argument rule with the specified name and returns it.
      Parameters:
      argumentName - the argument name
      Returns:
      the argument item rule
    • addArgumentItemRule

      public void addArgumentItemRule(ItemRule argumentItemRule)
      Adds the argument item rule.
      Parameters:
      argumentItemRule - the new argument item rule
    • getPropertyItemRuleMap

      public ItemRuleMap getPropertyItemRuleMap()
      Gets the property item rule map.
      Returns:
      the property item rule map
    • setPropertyItemRuleMap

      public void setPropertyItemRuleMap(ItemRuleMap propertyItemRuleMap)
      Sets the property item rule map.
      Parameters:
      propertyItemRuleMap - the new property item rule map
    • newPropertyItemRule

      public ItemRule newPropertyItemRule(String propertyName)
      Adds a new property rule with the specified name and returns it.
      Parameters:
      propertyName - the property name
      Returns:
      the property item rule
    • addPropertyItemRule

      public void addPropertyItemRule(ItemRule propertyItemRule)
      Adds the property item rule.
      Parameters:
      propertyItemRule - the new property item rule
    • getBeanRefererType

      public BeanRefererType getBeanRefererType()
      Description copied from interface: BeanReferenceable
      Returns the Bean Referrer Type.
      Specified by:
      getBeanRefererType in interface BeanReferenceable
      Returns:
      the Bean Referrer Type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 id
      beanId - the bean id
      methodName - the method name
      hidden - 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 name
      hidden - true if hiding the result of the action; false otherwise
      Returns:
      the invoke action rule
      Throws:
      IllegalRuleException - if an illegal rule is found