|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.control.config.ActionConstraintConfig
public class ActionConstraintConfig
A JavaBean representing security constraints on an <action>
element from a Struts application module configuration file.
This JavaBean can have a set of security roles allowed to request the corresponding
action. Because most of the actions in Join are entries to business operations,
action may have no roles directly associated but instead provides security to its
operations.
In this later case, roles associated with operation overrides roles associated
with the action.
Constructor Summary | |
---|---|
ActionConstraintConfig()
Creates a new instance of ActionConstraintConfig |
Method Summary | |
---|---|
void |
addOperationConstraint(OperationConstraintConfig constraint)
Add a new OperationConstraintConfig instance to the set associated. |
void |
addRole(RoleConfig role)
Add a new RoleConfig instance to the set associated. |
OperationConstraintConfig |
findOperationConstraint(java.lang.String name)
Return the operation constraint configuration for the specified operation name, if any; otherwise return null . |
java.lang.String |
getPath()
|
java.util.Collection |
getRoles()
Return the list of security roles allowed to request the associated action if any; otherwise return an empty collection. |
void |
setPath(java.lang.String path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionConstraintConfig()
Method Detail |
---|
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path this action constraint applies topublic void addRole(RoleConfig role)
RoleConfig
instance to the set associated.
role
- The new role configuration instance to be addedpublic java.util.Collection getRoles()
RoleConfig
public void addOperationConstraint(OperationConstraintConfig constraint)
OperationConstraintConfig
instance to the set associated.
constraint
- The new constraint configuration instance to be addedpublic OperationConstraintConfig findOperationConstraint(java.lang.String name)
null
.
name
- Name of the operation constraint configuration to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |