PolicyItem Class
- public class PolicyItem
extends Object
implements Cloneable, Serializable
This base class encapsulates the information
common to security policies and role policies.
It is used to collect and
hold security policy attributes during the process of
building and managing policies.
-
Hierarchy
-
Object
PolicyItem
-
All Implemented Interfaces
-
Cloneable, Serializable
-
Direct Known Subclasses
-
RolePolicyItem, SecurityPolicyItem
PolicyItem
public PolicyItem()
PolicyItem
public PolicyItem(String anEntAppName,
String aWebAppName,
String aResourceId,
List aUserList,
List aGroupList,
P13nContextHandler aContextHandler)
PolicyItem
public PolicyItem(String anEntAppName,
String aWebAppName,
String aResourceId,
List aUserList,
List aGroupList)
clone() Method
public Object clone()
throws CloneNotSupportedException
-
Overrides
-
Object.clone()
Exceptions
-
CloneNotSupportedException
getContextHandler() Method
public P13nContextHandler getContextHandler()
getEntAppName() Method
public String getEntAppName()
getGroupList() Method
public List getGroupList()
Retrieves an existing list of group names from a policy
entitlement expression.
Returns
- A complete list of group names from the policy
getPolicyUser() Method
public int getPolicyUser()
getResourceId() Method
public String getResourceId()
getUserList() Method
public List getUserList()
Retrieves an existing list of user names from a policy
entitlement expression.
Returns
- A complete list of user names from the policy
getWebAppName() Method
public String getWebAppName()
setContextHandler(P13nContextHandler) Method
public void setContextHandler(P13nContextHandler aP13nContextHandler)
setEntAppName(String) Method
public void setEntAppName(String anEntAppName)
setGroupList(List) Method
public void setGroupList(List aGroupList)
Update the value of the group list in this object.
Subsequently, the persisted policy may be updated using
the RolePolicyManager or SecurityPolicyManager, allowing the list
of groups in the entitlement expression to be rewritten.
Parameters
-
aGroupList
- A complete list of updated group names for the policy
setPolicyUser(int) Method
public void setPolicyUser(int aPolicyUser)
setResourceId(String) Method
public void setResourceId(String aResourceId)
setUserList(List) Method
public void setUserList(List aUserList)
Update the value of the user list in this object.
Subsequently, the persisted policy may be updated using
the RolePolicyManager or SecurityPolicyManager, allowing the list
of users in the entitlement expression to be rewritten.
Parameters
-
aUserList
- A complete list of updated user names for the policy
setWebAppName(String) Method
public void setWebAppName(String aWebAppName)