|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.security.RoleSecurityBinding
Binds a role 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 | |
RoleSecurityBinding(RoleSecurityBinding other)
Copy constructor. |
|
RoleSecurityBinding(java.util.Set actions,
java.lang.String role)
Create a new constraint with the provided actions and the specified role. |
|
RoleSecurityBinding(java.lang.String actions,
java.lang.String role)
Create a new constraint with the provided actions for the specified role. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.util.Set |
getActions()
Return a java.util.Set of allowed actions. |
java.lang.String |
getActionsAsString()
Return a comma separated list of actions. |
java.lang.String |
getRole()
Return the role of this constraint |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RoleSecurityBinding(java.lang.String actions, java.lang.String role)
actions
- a comma separated list of allowed actionsrole
- the role namepublic RoleSecurityBinding(java.util.Set actions, java.lang.String role)
actions
- the set of actionsrole
- the role namepublic RoleSecurityBinding(RoleSecurityBinding other)
Method Detail |
public java.util.Set getActions()
java.util.Set
of allowed actions.
public java.lang.String getRole()
public java.lang.String getActionsAsString()
public java.lang.String toString()
Object.toString()
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |