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

InstanceSecurityBinding - JBOSS Portal 2.4 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

See Also:
Serialized Form

Field Summary
 Instance instance
           
 
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

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)