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

SecurityPolicy - JBOSS Portal 2.4 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.

See Also:
Serialized Form

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
 

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()