public class AccessPolicyResourceData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AccessPolicyResourceData(long objectKey,
java.lang.String objectName,
long formDefinitionKey,
java.lang.String formDefinitionName,
java.lang.String frmType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
PolicyChildTableRecord |
addChildTableRecord(java.lang.String tableKey,
java.lang.String tableName,
java.lang.String action,
java.util.HashMap recordValues)
Add Child Table Record and Action Type
|
java.util.ArrayList |
getChildTableRecords()
Get all the Child Table Records
|
PolicyChildTableRecord[] |
getChildTableRecords(java.lang.String tableKey)
Get all the Child Table Records for a particular child table
|
java.util.HashMap |
getChildTables()
Get all Child Tables for which data has been provided
|
java.util.HashMap |
getFormData()
Returns all the data set for the parent form
|
long |
getFormDefinitionKey()
Returns the key of the form definition for which data is specified
|
java.lang.String |
getFormName()
Returns the name of the form for which data is specified
|
java.lang.String |
getFormType()
Returns the type of the form for which data is specified
|
long |
getObjectKey()
Returns the key of the object for which data is specified
|
java.lang.String |
getObjectName()
Returns the name of the object for which data is specified
|
java.lang.String |
getValue(java.lang.String fieldName)
Gets the value for specified field from the form data
|
void |
removeChildTableRecord(java.lang.String tableKey,
PolicyChildTableRecord record)
Remove a Child Table Record from the value object
|
void |
setFormData(java.util.HashMap parentFormData)
Sets the data for the parent form
|
void |
setValue(java.lang.String fieldName,
java.lang.String value)
Sets the value for specified field in the form data
|
public AccessPolicyResourceData(long objectKey, java.lang.String objectName, long formDefinitionKey, java.lang.String formDefinitionName, java.lang.String frmType)
objectKey
- Resource Object KeyobjectName
- Resource Object NameformDefinitionKey
- Key of the parent formformDefinitionName
- Name of the parent formfrmType
- form typepublic java.util.HashMap getFormData()
public void setFormData(java.util.HashMap parentFormData)
parentFormData
- HashMap representing the record. Key is the column
name, Value is the column valuepublic PolicyChildTableRecord addChildTableRecord(java.lang.String tableKey, java.lang.String tableName, java.lang.String action, java.util.HashMap recordValues)
tableKey
- child tbale key to which record is addedtableName
- child tbale name to which record is addedaction
- action indicates whether you want to add/delete a child
table record. the values that should be provided are Add OR
DeleterecordValues
- child table record datapublic void removeChildTableRecord(java.lang.String tableKey, PolicyChildTableRecord record)
tableKey
- table from which the record should be deletedrecord
- public PolicyChildTableRecord[] getChildTableRecords(java.lang.String tableKey)
tableKey
- public java.util.ArrayList getChildTableRecords()
public java.util.HashMap getChildTables()
public void setValue(java.lang.String fieldName, java.lang.String value)
fieldName
- name of the field in the formvalue
- value to be setpublic java.lang.String getValue(java.lang.String fieldName)
fieldName
- fieldName for which to retreive the form datapublic long getObjectKey()
public java.lang.String getObjectName()
public long getFormDefinitionKey()
public java.lang.String getFormName()
public java.lang.String getFormType()