© 2005 BEA Systems, Inc.

com.bea.p13n.entitlements.policy
Class PolicyItem

java.lang.Object
  extended bycom.bea.p13n.entitlements.policy.PolicyItem
All Implemented Interfaces:
Cloneable, Serializable
Direct Known Subclasses:
RolePolicyItem, SecurityPolicyItem

public class PolicyItem
extends Object
implements Serializable, Cloneable

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.

See Also:
Serialized Form

Constructor Summary
PolicyItem()
           
PolicyItem(String anEntAppName, String aWebAppName, String aResourceId, List aUserList, List aGroupList)
           
PolicyItem(String anEntAppName, String aWebAppName, String aResourceId, List aUserList, List aGroupList, P13nContextHandler aContextHandler)
           
 
Method Summary
 Object clone()
           
 P13nContextHandler getContextHandler()
           
 String getEntAppName()
           
 List getGroupList()
          Retrieves an existing list of group names from a policy entitlement expression.
 int getPolicyUser()
           
 String getResourceId()
           
 List getUserList()
          Retrieves an existing list of user names from a policy entitlement expression.
 String getWebAppName()
           
 void setContextHandler(P13nContextHandler aP13nContextHandler)
           
 void setEntAppName(String anEntAppName)
           
 void setGroupList(List aGroupList)
          Update the value of the group list in this object.
 void setPolicyUser(int aPolicyUser)
           
 void setResourceId(String aResourceId)
           
 void setUserList(List aUserList)
          Update the value of the user list in this object.
 void setWebAppName(String aWebAppName)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyItem

public PolicyItem()

PolicyItem

public PolicyItem(String anEntAppName,
                  String aWebAppName,
                  String aResourceId,
                  List aUserList,
                  List aGroupList)

PolicyItem

public PolicyItem(String anEntAppName,
                  String aWebAppName,
                  String aResourceId,
                  List aUserList,
                  List aGroupList,
                  P13nContextHandler aContextHandler)
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Throws:
CloneNotSupportedException

getContextHandler

public P13nContextHandler getContextHandler()

getEntAppName

public String getEntAppName()

getGroupList

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

public int getPolicyUser()

getResourceId

public String getResourceId()

getUserList

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

public String getWebAppName()

setContextHandler

public void setContextHandler(P13nContextHandler aP13nContextHandler)

setEntAppName

public void setEntAppName(String anEntAppName)

setGroupList

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

public void setPolicyUser(int aPolicyUser)

setResourceId

public void setResourceId(String aResourceId)

setUserList

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

public void setWebAppName(String aWebAppName)

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved