|
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.ViewFactory
The methods in the ViewFactory
class are used to
instantiate a new view object or to get an existing view 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 view object that is existing on the server:
ViewFactory viewFactory = ViewFactory.getFactory( ); ViewKey key = new ViewKey( ); ViewCriteria criteria = null; if( ViewKey.GetBoolean( false ) { criteria = new ViewCriteria( ); criteria.setRetrieveAll( true ); } View view = viewFactory.findByKey( context, key, criteria );
Constructor Summary | |
protected |
ViewFactory()
|
Method Summary | |
static ViewKey[] |
find(ARServerUser context,
ViewListCriteria criteria)
Returns a list of View names. |
static View |
findByKey(ARServerUser context,
ViewKey key,
ViewCriteria criteria)
Returns detailed information about the View object specified
by ViewCriteria and ViewKey . |
static View[] |
findObjects(ARServerUser context,
ViewListCriteria listCriteria,
ViewCriteria criteria)
Returns a list of View objects specified
by ViewListCriteria and ViewCriteria . |
static ViewFactory |
getFactory()
Returns the view factory. |
java.lang.Object |
newInstance()
Instantiates a new view object in memory. |
boolean |
releaseInstance(java.lang.Object obj)
Releases instance of view object from memory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ViewFactory()
Method Detail |
public static ViewFactory getFactory()
public java.lang.Object newInstance()
newInstance
in interface IARObjectFactory
public boolean releaseInstance(java.lang.Object obj)
releaseInstance
in interface IARObjectFactory
public static View findByKey(ARServerUser context, ViewKey key, ViewCriteria criteria) throws ARException
View
object specified
by ViewCriteria
and ViewKey
.
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if information is not foundpublic static ViewKey[] find(ARServerUser context, ViewListCriteria criteria) throws ARException
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if list is not foundpublic static View[] findObjects(ARServerUser context, ViewListCriteria listCriteria, ViewCriteria criteria) throws ARException
View
objects specified
by ViewListCriteria
and ViewCriteria
.
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if list is not found
|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |