当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
SecurityPolicy - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.migration.model22.impl.security
Class SecurityPolicy
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
private long id
reference
private java.lang.String reference
parentReference
private java.lang.String parentReference
constraints
private java.util.Set constraints
SecurityPolicy
public SecurityPolicy()
SecurityPolicy
public SecurityPolicy(java.lang.String reference,
java.lang.String parentRef)
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()