|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.ObjectBase com.bmc.arsys.api.Field
public abstract class Field
The Field
class and methods are used to represent the properties of field objects.
Constructor Summary | |
---|---|
Field()
|
|
Field(String form,
int id)
|
Method Summary | |
---|---|
void |
clear()
Clears all of the references to member objects. |
Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
List<PermissionInfo> |
getAssignedGroup()
get list of assigned group |
int |
getAuditOption()
Returns audit option for the field. |
int |
getCreateMode()
Returns the flag indicating the permission status for the field when users submit entries. |
int |
getDataType()
Returns the data type of the field. |
Value |
getDefaultValue()
Returns the default Value of a data field. |
DisplayInstanceMap |
getDisplayInstance()
Returns list of zero or more display properties to associate with the field. |
int |
getFieldID()
Returns the internal ID of the field. |
FieldLimit |
getFieldLimit()
Returns the value limits for the field and other properties specific to the field's type. |
FieldMapping |
getFieldMap()
Returns underlying form in which to create the field (applicable for join forms only). |
int |
getFieldOption()
Returns the flag indicating whether users must enter a value in the field. |
int |
getFieldType()
Returns a bitmask indicating field types. |
String |
getForm()
Returns the name of the form the field is linked to. |
FieldKey |
getKey()
Returns unique identifier for field. |
ObjectPropertyMap |
getObjectProperty()
Returns list of object properties. |
boolean |
getReservedIDOK()
Returns the flag indicating whether you can create the field with a reserved ID. |
int |
getSetFieldOptions()
Returns the flag indicating whether only display instances in the list will be replaced and rest left alone or if all of them will be replaced with new list. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
boolean |
isCoreField()
returns True if the field is a core field |
static boolean |
isCoreFieldId(int fieldId)
returns True if the id is a core field id |
boolean |
isGroupField()
|
static boolean |
isGroupField(int fieldId)
|
boolean |
isGroupList()
|
static boolean |
isGroupList(int fieldId)
|
boolean |
isMultiAssignField()
|
static boolean |
isMultiAssignField(int fieldId)
|
boolean |
isRoleStateMappingField()
|
static boolean |
isRoleStateMappingField(int fieldId)
|
boolean |
isRowLevelAccessField()
|
static boolean |
isRowLevelAccessField(int fieldId)
|
boolean |
optionSet(int index)
Reserved for internal use. |
void |
setAuditOption(int auditOption)
Sets audit option 0 None 1 Audit 2 Copy 3 Audit and Copy |
void |
setCreateMode(int cm)
Sets the flag indicating the permission status for the field when users submit entries. |
void |
setDefaultValue(Value v)
Sets the value to apply if a user submits an entry with no field value (applicable for data fields only). |
void |
setDisplayInstance(DisplayInstanceMap displayInstance)
Sets list of zero or more display properties to associate with the field. |
void |
setFieldID(int fid)
Sets the internal ID of the field to create. |
void |
setFieldLimit(FieldLimit limit)
Sets the value limits for the field and other properties specific to the field's type. |
void |
setFieldMap(FieldMapping mapInfo)
Sets underlying form in which to create the field (applicable for join forms only). |
void |
setFieldOption(int opt)
Sets the flag indicating whether users must enter a value in the field. |
boolean |
SetFieldOptionsSet()
Reserved for internal use. |
void |
setForm(String form)
Sets the name of the form the field is linked to. |
void |
setKey(FieldKey key)
Sets unique identifier for field. |
void |
setObjectProperty(ObjectPropertyMap objPropList)
Set list of object properties. |
void |
setPermissions(List<PermissionInfo> permissionList)
Sets the permissions of the AR System object. |
void |
setReservedIDOK(boolean flag)
Sets the flag indicating whether you can create the field with a reserved ID. |
void |
setSetFieldOptions(int opt)
Sets the flag (following OR'd flags) into setFieldOptions to get the following behavior: |
String |
toString()
Returns a string description of the object. |
Methods inherited from class com.bmc.arsys.api.ObjectBase |
---|
appendDiaryText, getChangeFlags, getDiary, getHelpText, getLastChangedBy, getLastUpdateTime, getName, getNewName, getOwner, getPermissions, setChangeFlags, setDiary, setDiary, setHelpText, setLastChangedBy, setName, setNewName, setOwner |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Field()
public Field(String form, int id)
Method Detail |
---|
public void setPermissions(List<PermissionInfo> permissionList)
ObjectBase
setPermissions
in interface IARPersistentObject
setPermissions
in class ObjectBase
public int getDataType()
public int getFieldType()
Constants
:
AR_FIELD_TYPE_DATA
).
AR_FIELD_TYPE_TRIM
)
AR_FIELD_TYPE_CONTROL
).
AR_FIELD_TYPE_PAGE
).
AR_FIELD_TYPE_PAGE_HOLDER
).
AR_FIELD_TYPE_TABLE
).
AR_FIELD_TYPE_COLUMN
).
AR_FIELD_TYPE_ATTACH
).
AR_FIELD_TYPE_ATTACH_POOL
).
public void setFieldID(int fid)
AR_MAX_RESERVED_FIELD_ID
). If you specify a reserved ID, the system
generates an error unless the reservedIdOK parameter is set to 1 (TRUE) (see the Developing AR System
Applications: Basic guide for restrictions on using reserved IDs).
public int getFieldID()
public void setForm(String form)
public String getForm()
public void setFieldOption(int opt)
public int getFieldOption()
public void setSetFieldOptions(int opt)
public int getSetFieldOptions()
public boolean SetFieldOptionsSet()
public boolean optionSet(int index)
index
- public void setReservedIDOK(boolean flag)
TRUE:
Allow reserved IDs.
FALSE:
System will generate an error when you specify a reserved ID for the fieldId parameter.
public boolean getReservedIDOK()
TRUE:
Allow reserved IDs.
FALSE:
System will generate an error when you specify a reserved ID for the fieldId parameter.
public void setCreateMode(int cm)
public int getCreateMode()
public void setAuditOption(int auditOption)
public int getAuditOption()
public void setDefaultValue(Value v)
public Value getDefaultValue()
Value
of a data field. The system returns 0 if the field has no default
public void setFieldLimit(FieldLimit limit)
IntegerFieldLimit
RealFieldLimit
CharacterFieldLimit
DiaryFieldLimit
AttachmentFieldLimit
TableFieldLimit
ColumnFieldLimit
DecimalFieldLimit
SelectionFieldLimit
FieldLimit
public FieldLimit getFieldLimit()
IntegerFieldLimit
RealFieldLimit
CharacterFieldLimit
DiaryFieldLimit
AttachmentFieldLimit
TableFieldLimit
ColumnFieldLimit
DecimalFieldLimit
SelectionFieldLimit
FieldLimit
public FieldMapping getFieldMap()
public void setFieldMap(FieldMapping mapInfo)
AR_FIELD_REGULAR
).
Otherwise,specify a field type of 2 (AR_FIELD_JOIN
), and identify the member
form (primary or secondary) and field ID for the new field. If the member form is also a join form, create fields
in all nested join forms until you can map the field to an underlying base form.
public void setDisplayInstance(DisplayInstanceMap displayInstance)
public DisplayInstanceMap getDisplayInstance()
public void setObjectProperty(ObjectPropertyMap objPropList)
public ObjectPropertyMap getObjectProperty()
public Object clone() throws CloneNotSupportedException
clone
in class ObjectBase
CloneNotSupportedException
public FieldKey getKey()
public void setKey(FieldKey key)
public void clear()
ObjectBase
clear
in class ObjectBase
public boolean isCoreField()
public static boolean isCoreFieldId(int fieldId)
public String toString()
toString
in class ObjectBase
public int hashCode()
hashCode
in class ObjectBase
public boolean equals(Object obj)
equals
in class ObjectBase
obj
- the object that we are comparing to
public static boolean isGroupList(int fieldId)
public static boolean isRowLevelAccessField(int fieldId)
public static boolean isRoleStateMappingField(int fieldId)
public static boolean isMultiAssignField(int fieldId)
public static boolean isGroupField(int fieldId)
public boolean isGroupList()
public boolean isRowLevelAccessField()
public boolean isRoleStateMappingField()
public boolean isMultiAssignField()
public boolean isGroupField()
public List<PermissionInfo> getAssignedGroup()
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |