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

SecurityPolicy - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model22.impl.security
Class SecurityPolicy

java.lang.Object
  extended byorg.jboss.portal.migration.model22.impl.security.SecurityPolicy
All Implemented Interfaces:
java.io.Serializable

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

Helper bean for hibernate peristence.

Version:
$Revision: 5449 $
Author:
Martin Holzner
See Also:
Serialized Form

Field Summary
private  java.util.Set constraints
           
private  long id
           
private  java.lang.String parentReference
           
private  java.lang.String reference
           
 
Constructor Summary
SecurityPolicy()
           
SecurityPolicy(java.lang.String reference, java.lang.String parentRef)
           
 
Method Summary
 void addSecurityConstraint(SecurityConstraint sc)
           
 void clearConstraints()
           
 java.util.Set getConstraints()
           
protected  long getKey()
           
 java.lang.String getParentReference()
           
 java.lang.String getReference()
           
 java.util.Set getSecurityConstraints()
           
 void setConstraints(java.util.Set constraints)
          Set the current security constraints for this portal object / resource (identified by the reference of this policy
protected  void setKey(long key)
           
 void setParentReference(java.lang.String parentRef)
           
 void setReference(java.lang.String reference)
          Set the unique handle of the object that is secured by this policy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id

reference

private java.lang.String reference

parentReference

private java.lang.String parentReference

constraints

private java.util.Set constraints
Constructor Detail

SecurityPolicy

public SecurityPolicy()

SecurityPolicy

public SecurityPolicy(java.lang.String reference,
                      java.lang.String parentRef)
Method Detail

setKey

protected void setKey(long key)

getKey

protected long getKey()

setParentReference

public void setParentReference(java.lang.String parentRef)

getParentReference

public java.lang.String getParentReference()

getReference

public java.lang.String getReference()
Returns:
the unique identifier of the secured object

setReference

public void setReference(java.lang.String reference)
Set the unique handle of the object that is secured by this policy

Parameters:
reference - the uri / handle to uniquely identify the secured object

getConstraints

public java.util.Set getConstraints()
Returns:
a Set of HbmSecurityConstraint

setConstraints

public void setConstraints(java.util.Set constraints)
Set the current security constraints for this portal object / resource (identified by the reference of this policy

Parameters:
constraints -

addSecurityConstraint

public void addSecurityConstraint(SecurityConstraint sc)

getSecurityConstraints

public java.util.Set getSecurityConstraints()

clearConstraints

public void clearConstraints()