|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.remedy.arsys.api.ObjectBase
com.remedy.arsys.api.Field
The Field
class and methods are used to represent the properties of
field objects.
Field Summary |
Fields inherited from class com.remedy.arsys.api.ObjectBase |
m_changeFlags, m_permissionList |
Constructor Summary | |
protected |
Field(java.lang.String name,
PermissionInfo[] permissionList,
java.lang.String helpText,
long lastUpdateTime,
java.lang.String owner,
java.lang.String lastChangedBy,
java.lang.String diaryStr)
|
Method Summary | |
void |
activate()
AR System reserved method. |
void |
clear()
Clears all of the references to member objects. |
java.lang.Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
void |
create()
Creates a new form field with the indicated name on the specified server. |
int |
getAuditOption()
Returns audit option for the field. |
ARServerUser |
getContext()
|
int |
getCreateMode()
Returns the flag indicating the permission status for the field when users submit entries. |
DataType |
getDataType()
Returns the data type of the field. |
Value |
getDefaultValue()
Returns the default Value of a data field. |
DisplayInstanceList |
getDisplayInstance()
Returns list of zero or more display properties to associate with the field. |
FieldID |
getFieldID()
Returns the internal ID of the field. |
FieldLimitInfo |
getFieldLimit()
Returns the value limits for the field and other properties specific to the field's type. |
FieldMappingInfo |
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. |
FieldKey |
getKey()
Returns unique identifier for field. |
boolean |
getReservedIDOK()
Returns the flag indicating whether you can create the field with a reserved ID. |
NameID |
getSchema()
Returns the name of the schema the field is linked to. |
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. |
boolean |
isPresent()
Denotes if the field is valid. |
void |
load()
Populates this object with information from the AR System server. |
void |
load(FieldCriteria criteria)
Populates this object with information specified by FieldCriteria from the AR System server. |
void |
passivate()
AR System reserved method. |
void |
remove()
Deletes the form field with the indicated ID from the specified server. |
void |
setAuditOption(int auditOption)
Sets audit option 0 None 1 Audit 2 Copy 3 Audit and Copy |
void |
setContext(ARServerUser ctxt)
Associates ARServerUser information with this
AR System server object. |
void |
setCreateMode(int cm)
Sets the flag indicating the permission status for the field when users submit entries. |
void |
setDataType(DataType type)
Sets the data type of the field. |
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 |
setDeleteOption(int option)
Sets the delete option when calling remove() on the field object to indicate the action to take if the
specified field contains data (applicable for base schemas only) or is associated with a join schema. |
void |
setDisplayInstance(DisplayInstanceList displayInstance)
Sets list of zero or more display properties to associate with the field. |
void |
setFieldID(FieldID fid)
Sets the internal ID of the field to create. |
void |
setFieldLimit(FieldLimitInfo limit)
Sets the value limits for the field and other properties specific to the field's type. |
void |
setFieldMap(FieldMappingInfo 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. |
void |
setKey(FieldKey key)
Sets unique identifier for field. |
void |
setPermissions(PermissionInfo[] permissions)
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 |
setSchema(NameID schema)
Sets the name of the schema the field is linked to. |
void |
setSetFieldOptions(int opt)
Sets the flag (following OR'd flags) into setFieldOptions to get the following behavior: |
void |
store()
Saves the changes made to this object on the AR System server. |
void |
unsetContext()
Removes the association to a specific user context. |
Methods inherited from class com.remedy.arsys.api.ObjectBase |
equals, getDiary, getHelpText, getLastChangedBy, getLastUpdateTime, getName, getNewName, getOwner, getPermissions, hashCode, resetChangeFlags, setDiary, setHelpText, setLastChangedBy, setName, setNewName, setOwner |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Field(java.lang.String name, PermissionInfo[] permissionList, java.lang.String helpText, long lastUpdateTime, java.lang.String owner, java.lang.String lastChangedBy, java.lang.String diaryStr)
Method Detail |
public void setPermissions(PermissionInfo[] permissions)
ObjectBase
setPermissions
in class ObjectBase
public boolean isPresent()
public void setDataType(DataType type)
DataType
constants:
ATTACHMENT
)
ATTACHMENT_POOL
)
BITMASK
)
BYTES
)
CHAR
)
COLUMN
)
CONTROL
)
COORDS
)
CURRENCY
)
DATE
)
DECIMAL
). Values must be specified in C locale, e.g., 1234.56
DIARY
)
DISPLAY
)
ENUM
)
INTEGER
)
JOIN
)
KEYWORD
)
ULONG
)
PAGE
)
PAGE_HOLDER
)
REAL
)
TABLE
)
TIME
)
TIME_OF_DAY
)
TRIM
)
VIEW
)
public DataType 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(FieldID 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 FieldID getFieldID()
public void setSchema(NameID schema)
public NameID getSchema()
public void setFieldOption(int opt)
public int getFieldOption()
public void setSetFieldOptions(int opt)
public int getSetFieldOptions()
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(FieldLimitInfo limit)
IntegerLimitInfo
RealLimitInfo
CharLimitInfo
DiaryLimitInfo
AttachmentLimitInfo
TableLimitInfo
ColumnLimitInfo
DecimalLimitInfo
EnumLimitInfo
FieldLimitInfo
public FieldLimitInfo getFieldLimit()
IntegerLimitInfo
RealLimitInfo
CharLimitInfo
DiaryLimitInfo
AttachmentLimitInfo
TableLimitInfo
ColumnLimitInfo
DecimalLimitInfo
EnumLimitInfo
FieldLimitInfo
public void setDeleteOption(int option)
remove()
on the field object to indicate the action to take if the
specified field contains data (applicable for base schemas only) or is associated with a join schema.
public FieldMappingInfo getFieldMap()
public void setFieldMap(FieldMappingInfo 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(DisplayInstanceList displayInstance)
public DisplayInstanceList getDisplayInstance()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ObjectBase
java.lang.CloneNotSupportedException
public FieldKey getKey()
public void setKey(FieldKey key)
public void create() throws ARException
create
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object is not createdpublic void remove() throws ARException
remove
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object is not deletedpublic void load() throws ARException
load
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object is not loadedpublic void load(FieldCriteria criteria) throws ARException
FieldCriteria
from the AR System server.
ARException
public void store() throws ARException
store
in interface IARPersistentObject
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object is not savedpublic void activate()
activate
in interface IARPersistentObject
public void passivate()
passivate
in interface IARPersistentObject
public ARServerUser getContext()
public void setContext(ARServerUser ctxt)
IARPersistentObject
ARServerUser
information with this
AR System server object.
setContext
in interface IARPersistentObject
public void unsetContext()
IARPersistentObject
setContext(null)
.
unsetContext
in interface IARPersistentObject
public void clear()
IARPersistentObject
clear
in interface IARPersistentObject
clear
in class ObjectBase
|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |