|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.security.config.SecurityConstraint
Binds a set of roles and a set of actions together. This object is immutable.
A portal resource (portal, page, window, instance, portlet...) is secured via a set of security constraints. each security constraint holds the information about what roles are allowed what actions.
Constructor Summary | |
SecurityConstraint(SecurityConstraint other)
Copy constructor. |
|
SecurityConstraint(java.util.Set actions,
java.lang.String role)
|
|
SecurityConstraint(java.lang.String actions,
java.lang.String role)
create a new constraint with the provided actions for the provided roles |
Method Summary | |
static java.util.Set |
buildSetFromString(java.lang.String src)
convert the provided string of comma separated tokens to a set of strings |
static java.lang.String |
buildStringFromSet(java.util.Set set)
convert the provided set of strings into one string containing a comma separated list of all tokens of the set |
boolean |
equals(java.lang.Object o)
|
java.util.Set |
getActions()
|
java.lang.String |
getRole()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SecurityConstraint(java.lang.String actions, java.lang.String role)
actions
- a comma separated list of allowed actionsrole
- a comma separated list of roles that are allowed the provided actionspublic SecurityConstraint(java.util.Set actions, java.lang.String role)
public SecurityConstraint(SecurityConstraint other)
Method Detail |
public java.util.Set getActions()
java.util.Set
of allowed actionspublic java.lang.String getRole()
java.util.Set
of roles of this constraintpublic java.lang.String toString()
Object.toString()
public boolean equals(java.lang.Object o)
public int hashCode()
public static java.util.Set buildSetFromString(java.lang.String src)
src
- the comma separated string
public static java.lang.String buildStringFromSet(java.util.Set set)
set
- the set to be converted into a comma separated string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |