Package com.aspectran.core.context.rule
Class HeaderActionRule
java.lang.Object
com.aspectran.core.context.rule.HeaderActionRule
The Class HeaderActionRule.
Created: 2016. 08. 23.
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderItemRule
(ItemRule headerItemRule) Adds the header item rule.Gets the action id.Gets the header item rule map.Returns whether to hide result of the action.boolean
isHidden()
Returns whether to hide result of the action.newHeaderItemRule
(String headerName) Adds a new header rule with the specified name and returns it.static HeaderActionRule
newInstance
(String id, Boolean hidden) Returns a new derived instance of HeaderActionRule.void
setActionId
(String actionId) Sets the action id.void
setHeaderItemRuleMap
(ItemRuleMap headerItemRuleMap) Sets the header rule map.void
Sets whether to hide result of the action.toString()
-
Constructor Details
-
HeaderActionRule
public HeaderActionRule()
-
-
Method Details
-
getActionId
Gets the action id.- Returns:
- the action id
-
setActionId
Sets the action id.- Parameters:
actionId
- the new action id
-
getHeaderItemRuleMap
Gets the header item rule map.- Returns:
- the header item rule map
-
setHeaderItemRuleMap
Sets the header rule map.- Parameters:
headerItemRuleMap
- the new header item rule map
-
newHeaderItemRule
Adds a new header rule with the specified name and returns it.- Parameters:
headerName
- the header name- Returns:
- the header item rule
-
addHeaderItemRule
Adds the header item rule.- Parameters:
headerItemRule
- the header item rule
-
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
-
toString
-
newInstance
Returns a new derived instance of HeaderActionRule.- Parameters:
id
- the action idhidden
- whether to hide result of the action- Returns:
- the header action rule
-