站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

RoleSecurityBinding - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.security
Class RoleSecurityBinding

java.lang.Object
  extended byorg.jboss.portal.security.RoleSecurityBinding
All Implemented Interfaces:
java.io.Serializable

public class RoleSecurityBinding
extends java.lang.Object
implements java.io.Serializable

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.

Version:
$Revision: 5448 $
Author:
Martin Holzner, Julien Viet
See Also:
Serialized Form

Field Summary
private  java.util.Set actions
          The set of actions of this constraint.
private  java.lang.String actionsAsString
          The cached actions as a string.
private  int hashCode
          The cached hash code.
private  java.lang.String roleName
          The role name of this contraint.
private static long serialVersionUID
          The serialVersionUID
private  java.lang.String toString
          The cached toString value.
 
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 getRoleName()
          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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

roleName

private final java.lang.String roleName
The role name of this contraint.


actions

private final java.util.Set actions
The set of actions of this constraint.


toString

private transient java.lang.String toString
The cached toString value.


hashCode

private transient int hashCode
The cached hash code.


actionsAsString

private transient java.lang.String actionsAsString
The cached actions as a string.

Constructor Detail

RoleSecurityBinding

public RoleSecurityBinding(java.lang.String actions,
                           java.lang.String role)
Create a new constraint with the provided actions for the specified role.

Parameters:
actions - a comma separated list of allowed actions
role - the role name

RoleSecurityBinding

public RoleSecurityBinding(java.util.Set actions,
                           java.lang.String role)
Create a new constraint with the provided actions and the specified role.

Parameters:
actions - the set of actions
role - the role name

RoleSecurityBinding

public RoleSecurityBinding(RoleSecurityBinding other)
Copy constructor.

Method Detail

getActions

public java.util.Set getActions()
Return a java.util.Set of allowed actions.

Returns:
the action set

getRoleName

public java.lang.String getRoleName()
Return the role of this constraint

Returns:
the role

getActionsAsString

public java.lang.String getActionsAsString()
Return a comma separated list of actions.

Returns:
the action string representation

toString

public java.lang.String toString()
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()