|
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.FieldFactory
The methods in the FieldFactory class
are used to instantiate a new field object
or to get an existing field from the server.
You then define the properties of the object,
and then you can perform different operations (e.g. set/create/delete)
on the object from the server side.
The following Java code snippet is an example of how to get a field object
that is existing on the server:
FieldFactory fieldFactory = FieldFactory.getFactory( );
NameID schemaName = new NameID( "Schema Name" );
FieldID id = new FieldID( (long) 936970913 );
FieldKey key = new FieldKey( schemaName, id );
FieldCriteria criteria = new FieldCriteria( );
criteria.setRetrieveAll( true );
Field field = fieldFactory.findByKey( context, key, criteria );
| Constructor Summary | |
protected |
FieldFactory()
|
| Method Summary | |
static FieldKey[] |
find(ARServerUser context,
FieldListCriteria criteria)
Returns a list of field IDs specified by FieldListCriteria. |
static Field |
findByKey(ARServerUser context,
FieldKey key,
FieldCriteria criteria)
Returns detailed information about the Field object specified by
FieldKey. |
static Field[] |
findObjects(ARServerUser context,
FieldListCriteria listcriteria,
FieldCriteria criteria)
Returns the information specified by FieldCriteria with a list of Field objects specified by
FieldListCriteria. |
static FieldFactory |
getFactory()
Returns the FieldFactory factory. |
java.lang.Object |
newInstance()
Returns a new Field object |
boolean |
releaseInstance(java.lang.Object obj)
Releases instance of field object from memory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected FieldFactory()
| Method Detail |
public static FieldFactory getFactory()
FieldFactory factory.
public java.lang.Object newInstance()
Field object
newInstance in interface IARObjectFactorypublic boolean releaseInstance(java.lang.Object obj)
releaseInstance in interface IARObjectFactory
public static Field findByKey(ARServerUser context,
FieldKey key,
FieldCriteria criteria)
throws ARException
Field object specified by
FieldKey. Use the following parameters:
context - An ARServerUser object containing user name, password, server name and language informationkey - A FieldKey object containing a unique identifier for the field objects.criteria - A FieldCriteria object containing the ID of the field to retrieve and the information to retrieve
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if information is not returned
public static FieldKey[] find(ARServerUser context,
FieldListCriteria criteria)
throws ARException
FieldListCriteria. Use the following parameters:
context - An ARServerUser object containing user name, password, server name and language informationcriteria - A FieldListCriteria object that defines the criteria for selecting the list of fields.
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if list is not returned
public static Field[] findObjects(ARServerUser context,
FieldListCriteria listcriteria,
FieldCriteria criteria)
throws ARException
FieldCriteria with a list of Field objects specified by
FieldListCriteria. Use the following parameters:
context - An ARServerUser object containing user name, password,
server name and language information.listcriteria - A FieldListCriteria object that defines the criteria
for selecting the list of fields.criteria - A FieldCriteria object that defines the information that should be retrieved.
java.lang.NullPointerException - if invalid ARServerUser object
ARException - if information is not returned
|
7.0 Action Request System Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||