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

InstanceSecurityBinding - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model24.instance
Class InstanceSecurityBinding

java.lang.Object
  extended byorg.jboss.portal.migration.model24.instance.InstanceSecurityBinding
All Implemented Interfaces:
java.io.Serializable

public final class InstanceSecurityBinding
extends java.lang.Object
implements java.io.Serializable

Security Constraint for an instance

Version:
$Revision: 5449 $
Author:
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.
 Instance instance
           
private  java.lang.Long key
          The primary key.
private  java.lang.String role
          The role of this contraint.
private static long serialVersionUID
          The serialVersionUID
private  java.lang.String toString
          The cached toString value.
 
Constructor Summary
InstanceSecurityBinding()
           
InstanceSecurityBinding(InstanceSecurityBinding other)
          Copy constructor.
InstanceSecurityBinding(java.util.Set actions, java.lang.String role)
          Create a new constraint with the provided actions and the specified role.
InstanceSecurityBinding(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.
 Instance getInstance()
           
protected  java.lang.Long getKey()
           
 java.lang.String getRole()
          Return the role of this constraint
 int hashCode()
           
 void setActions(java.util.Set actions)
           
 void setInstance(Instance instance)
           
protected  void setKey(java.lang.Long k)
           
 void setRole(java.lang.String role)
           
 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

key

private java.lang.Long key
The primary key.


role

private java.lang.String role
The role of this contraint.


actions

private 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.


instance

public Instance instance
Constructor Detail

InstanceSecurityBinding

public InstanceSecurityBinding()

InstanceSecurityBinding

public InstanceSecurityBinding(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

InstanceSecurityBinding

public InstanceSecurityBinding(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

InstanceSecurityBinding

public InstanceSecurityBinding(InstanceSecurityBinding other)
Copy constructor.

Method Detail

getActions

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

Returns:
the action set

getRole

public java.lang.String getRole()
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()

setKey

protected void setKey(java.lang.Long k)

getKey

protected java.lang.Long getKey()

setActions

public void setActions(java.util.Set actions)

setRole

public void setRole(java.lang.String role)

getInstance

public Instance getInstance()

setInstance

public void setInstance(Instance instance)