com.ibm.commerce.accesscontrol.objects
Class PolicyAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.accesscontrol.objects.PolicyAccessBean
All Implemented Interfaces:
PolicyAccessBeanData, java.io.Serializable

public class PolicyAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PolicyAccessBeanData

This bean provides access to the ACPOLICY table.

The following is a description of this table:

This table stores all the access control policies in the system. Each policy is a row in the policy table. Every policy refers to an action group, a member group, a resource group and optionally a relationship.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PolicyAccessBean()
          Default constructor.
PolicyAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
PolicyAccessBean(java.lang.String aPolicyName, long aOwnerId, long aUserGroupId, int aActionGroupId, int aResourceGroupId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByActionGroupId(int aActionGroupId)
          The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.ACACTGRP_ID = ?".
 java.util.Enumeration findByOwnerId(long aOwnerId)
          The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.MEMBER_ID = ?".
 java.util.Enumeration findByPolicyName(java.lang.String aPolicyName)
          The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.POLICYNAME = ?"
 java.util.Enumeration findByRelationId(java.lang.Integer aRelationId)
          The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.ACRELATION_ID = ?".
 java.util.Enumeration findByResourceGroupId(int aResourceGroupId)
          The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.ACRESGRP_ID = ?"
 java.util.Enumeration findByUserGroupId(long aUserGroupId)
          The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.MBRGRP_ID = ?".
 boolean fulfills(java.lang.Long aMember, java.lang.String aRelationship)
          Determines if a given member fulfills a given relationship with the resource.
 java.lang.String getActionGroupId()
          Action group ID.
 int getActionGroupIdInEJBType()
          Action group ID.
 java.lang.String getField1()
          This method provides access to the ACPOLICY.FIELD1 column of DB2 type VARCHAR(128) NULL.
 java.lang.Long getOwner()
          Returns the member id of the owner of the resource.
 java.lang.String getOwnerId()
          Owner id this policy refers to.
 long getOwnerIdInEJBType()
          Owner id that this policy refers to.
 java.lang.String getPolicyId()
          Policy ID of this policy record.
 int getPolicyIdInEJBType()
          Policy ID of this policy record.
 java.lang.String getPolicyName()
          This method provides access to the ACPOLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
 java.lang.String getPolicyType()
          This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.
 java.lang.Integer getPolicyTypeInEJBType()
          This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.
 java.lang.String getRelationId()
          Relation ID that this policy refers to.
 java.lang.Integer getRelationIdInEJBType()
          Relation ID that this policy refers to.
 java.lang.String getResourceGroupId()
          Resource group ID this policy refers to.
 int getResourceGroupIdInEJBType()
          Resource group ID this policy refers to.
 java.lang.String getUserGroupId()
          User group id this policy refers to.
 long getUserGroupIdInEJBType()
          User group id.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setActionGroupId(int aActionGroupId)
          Set the action group ID.
 void setActionGroupId(java.lang.String aActionGroupId)
          Set the action group ID.
 void setField1(java.lang.String aField1)
          This method provides access to the ACPOLICY.FIELD1 column of DB2 type VARCHAR(128) NULL.
 void setInitKey_policyId(java.lang.String aInitKey_policyId)
          Set the primary key for this object
 void setOwnerId(long aOwnerId)
          Set the owner id.
 void setOwnerId(java.lang.String aOwnerId)
          Set the owner id.
 void setPolicyId(int aPolicyId)
          Set the policy ID of this policy record.
 void setPolicyId(java.lang.String aPolicyId)
          Set the policy ID of this policy record.
 void setPolicyName(java.lang.String aPolicyName)
          This method provides access to the ACPOLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
 void setPolicyType(java.lang.Integer aPolicyType)
          This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.
 void setPolicyType(java.lang.String aPolicyType)
          This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.
 void setRelationId(java.lang.Integer aRelationId)
          Set the relation ID that this policy refers to.
 void setRelationId(java.lang.String aRelationId)
          Set the relation ID that this policy refers to.
 void setResourceGroupId(int aResourceGroupId)
          Set the resource group ID this policy refers to.
 void setResourceGroupId(java.lang.String aResourceGroupId)
          Set the resource group ID this policy refers to.
 void setUserGroupId(long aUserGroupId)
          Set the user group id.
 void setUserGroupId(java.lang.String aUserGroupId)
          Set the user group id.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyAccessBean

public PolicyAccessBean()

Default constructor. Maps to findByPrimaryKey.


PolicyAccessBean

public PolicyAccessBean(javax.ejb.EJBObject Object)
                 throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

PolicyAccessBean

public PolicyAccessBean(java.lang.String aPolicyName,
                        long aOwnerId,
                        long aUserGroupId,
                        int aActionGroupId,
                        int aResourceGroupId)
                 throws javax.naming.NamingException,
                        javax.ejb.CreateException,
                        java.rmi.RemoteException,
                        javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
aPolicyName - java.lang.String
aOwnerId - long
aUserGroupId - long
aActionGroupId - int
aResourceGroupId - int
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByActionGroupId

public java.util.Enumeration findByActionGroupId(int aActionGroupId)
                                          throws javax.ejb.FinderException,
                                                 java.rmi.RemoteException,
                                                 javax.naming.NamingException

The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.ACACTGRP_ID = ?".

Parameters:
aActionGroupId - int
Returns:
java.util.Enumeration
Throws:
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByOwnerId

public java.util.Enumeration findByOwnerId(long aOwnerId)
                                    throws javax.ejb.FinderException,
                                           java.rmi.RemoteException,
                                           javax.naming.NamingException

The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.MEMBER_ID = ?".

Parameters:
aOwnerId - long
Returns:
java.util.Enumeration
Throws:
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByPolicyName

public java.util.Enumeration findByPolicyName(java.lang.String aPolicyName)
                                       throws javax.ejb.FinderException,
                                              java.rmi.RemoteException,
                                              javax.naming.NamingException

The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.POLICYNAME = ?"

Parameters:
aPolicyName - java.lang.String
Returns:
java.util.Enumeration
Throws:
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByRelationId

public java.util.Enumeration findByRelationId(java.lang.Integer aRelationId)
                                       throws javax.ejb.FinderException,
                                              java.rmi.RemoteException,
                                              javax.naming.NamingException

The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.ACRELATION_ID = ?".

Parameters:
aRelationId - java.lang.Integer
Returns:
java.util.Enumeration
Throws:
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByResourceGroupId

public java.util.Enumeration findByResourceGroupId(int aResourceGroupId)
                                            throws javax.ejb.FinderException,
                                                   java.rmi.RemoteException,
                                                   javax.naming.NamingException

The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.ACRESGRP_ID = ?"

Parameters:
aResourceGroupId - int
Returns:
java.util.Enumeration
Throws:
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByUserGroupId

public java.util.Enumeration findByUserGroupId(long aUserGroupId)
                                        throws javax.ejb.FinderException,
                                               java.rmi.RemoteException,
                                               javax.naming.NamingException

The SQL is "SELECT * FROM ACPOLICY T1 WHERE T1.MBRGRP_ID = ?".

Parameters:
aUserGroupId - long
Returns:
java.util.Enumeration
Throws:
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

fulfills

public boolean fulfills(java.lang.Long aMember,
                        java.lang.String aRelationship)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException

Determines if a given member fulfills a given relationship with the resource.

Parameters:
aMember - java.lang.Long
aRelationship - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getActionGroupId

public java.lang.String getActionGroupId()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

Action group ID. The ID of the action group that this policy refers to. Foreign key to the ACACTGRP table.

Specified by:
getActionGroupId in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getActionGroupIdInEJBType

public int getActionGroupIdInEJBType()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Action group ID. The ID of the action group that this policy refers to. Foreign key to the ACACTGRP table.

Returns:
int
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getField1

public java.lang.String getField1()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException

This method provides access to the ACPOLICY.FIELD1 column of DB2 type VARCHAR(128) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException

Returns the member id of the owner of the resource.

Returns:
java.lang.Long
Throws:
java.lang.Exception - The java.lang.Exception exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwnerId

public java.lang.String getOwnerId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

Owner id this policy refers to.

Specified by:
getOwnerId in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwnerIdInEJBType

public long getOwnerIdInEJBType()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException

Owner id that this policy refers to.

Returns:
long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPolicyId

public java.lang.String getPolicyId()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

Policy ID of this policy record.

Specified by:
getPolicyId in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPolicyIdInEJBType

public int getPolicyIdInEJBType()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException

Policy ID of this policy record.

Returns:
int
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPolicyName

public java.lang.String getPolicyName()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the ACPOLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.

The following is a description of this column:

Name of the policy.

Specified by:
getPolicyName in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPolicyType

public java.lang.String getPolicyType()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

This flag is used to distinguish between template policies and default site wide policies. It is an optional field. The value of 1 indicates that it is a template policy, if it is not 1 then it is not a template policy.

Specified by:
getPolicyType in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPolicyTypeInEJBType

public java.lang.Integer getPolicyTypeInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

This flag is used to distinguish between template policies and default site wide policies. It is an optional field. The value of 1 indicates that it is a template policy, if it is not 1 then it is not a template policy.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getRelationId

public java.lang.String getRelationId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

Relation ID that this policy refers to.

Specified by:
getRelationId in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getRelationIdInEJBType

public java.lang.Integer getRelationIdInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

Relation ID that this policy refers to.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getResourceGroupId

public java.lang.String getResourceGroupId()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Resource group ID this policy refers to.

Specified by:
getResourceGroupId in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getResourceGroupIdInEJBType

public int getResourceGroupIdInEJBType()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

Resource group ID this policy refers to.

Returns:
int
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getUserGroupId

public java.lang.String getUserGroupId()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

User group id this policy refers to.

Specified by:
getUserGroupId in interface PolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getUserGroupIdInEJBType

public long getUserGroupIdInEJBType()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

User group id.

Returns:
long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setActionGroupId

public void setActionGroupId(int aActionGroupId)

Set the action group ID. The ID of the action group that this policy refers to. Foreign key to the ACACTGRP table.

Parameters:
aActionGroupId - int
Returns:
void

setActionGroupId

public void setActionGroupId(java.lang.String aActionGroupId)

Set the action group ID. The ID of the action group that this policy refers to. Foreign key to the ACACTGRP table.

Specified by:
setActionGroupId in interface PolicyAccessBeanData
Parameters:
aActionGroupId - java.lang.String
Returns:
void

setField1

public void setField1(java.lang.String aField1)

This method provides access to the ACPOLICY.FIELD1 column of DB2 type VARCHAR(128) NULL.

The following is a description of this column:

Customizable.

Specified by:
setField1 in interface PolicyAccessBeanData
Parameters:
aField1 - java.lang.String
Returns:
void

setInitKey_policyId

public void setInitKey_policyId(java.lang.String aInitKey_policyId)

Set the primary key for this object

Parameters:
aInitKey_policyId - java.lang.String
Returns:
void

setOwnerId

public void setOwnerId(long aOwnerId)

Set the owner id.

Parameters:
aOwnerId - long
Returns:
void

setOwnerId

public void setOwnerId(java.lang.String aOwnerId)

Set the owner id.

Specified by:
setOwnerId in interface PolicyAccessBeanData
Parameters:
aOwnerId - java.lang.String
Returns:
void

setPolicyId

public void setPolicyId(int aPolicyId)

Set the policy ID of this policy record.

Parameters:
aPolicyId - int
Returns:
void

setPolicyId

public void setPolicyId(java.lang.String aPolicyId)

Set the policy ID of this policy record.

Specified by:
setPolicyId in interface PolicyAccessBeanData
Parameters:
aPolicyId - java.lang.String
Returns:
void

setPolicyName

public void setPolicyName(java.lang.String aPolicyName)

This method provides access to the ACPOLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.

The following is a description of this column:

Name of the policy.

Specified by:
setPolicyName in interface PolicyAccessBeanData
Parameters:
aPolicyName - java.lang.String
Returns:
void

setPolicyType

public void setPolicyType(java.lang.Integer aPolicyType)

This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

This flag is used to distinguish between template policies and default site wide policies. It is an optional field. The value of 1 indicates that it is a template policy, if it is not 1 then it is not a template policy.

Parameters:
aPolicyType - java.lang.Integer
Returns:
void

setPolicyType

public void setPolicyType(java.lang.String aPolicyType)

This method provides access to the ACPOLICY.POLICYTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

This flag is used to distinguish between template policies and default site wide policies. It is an optional field. The value of 1 indicates that it is a template policy, if it is not 1 then it is not a template policy.

Specified by:
setPolicyType in interface PolicyAccessBeanData
Parameters:
aPolicyType - java.lang.String
Returns:
void

setRelationId

public void setRelationId(java.lang.Integer aRelationId)

Set the relation ID that this policy refers to.

Parameters:
aRelationId - java.lang.Integer
Returns:
void

setRelationId

public void setRelationId(java.lang.String aRelationId)

Set the relation ID that this policy refers to.

Specified by:
setRelationId in interface PolicyAccessBeanData
Parameters:
aRelationId - java.lang.String
Returns:
void

setResourceGroupId

public void setResourceGroupId(int aResourceGroupId)

Set the resource group ID this policy refers to.

Parameters:
aResourceGroupId - int
Returns:
void

setResourceGroupId

public void setResourceGroupId(java.lang.String aResourceGroupId)

Set the resource group ID this policy refers to.

Specified by:
setResourceGroupId in interface PolicyAccessBeanData
Parameters:
aResourceGroupId - java.lang.String
Returns:
void

setUserGroupId

public void setUserGroupId(long aUserGroupId)

Set the user group id.

Parameters:
aUserGroupId - long
Returns:
void

setUserGroupId

public void setUserGroupId(java.lang.String aUserGroupId)

Set the user group id.

Specified by:
setUserGroupId in interface PolicyAccessBeanData
Parameters:
aUserGroupId - java.lang.String
Returns:
void