|
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.MenuFactory
The methods in the MenuFactory
class are used to
instantiate a new menu object or to get an existing menu 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 menu object that is existing on the server:
MenuFactory menuFactory = MenuFactory.getFactory( ); MenuKey key = new MenuKey( ); MenuCriteria crit = new MenuCriteria(); if( crit != null ) { crit.setRetrieveAll(true); } Menu menu = menuFactory.findByKey( context, key, criteria );
Method Summary | |
static MenuKey[] |
find(ARServerUser context,
MenuListCriteria criteria)
Returns a list of menu names specified by MenuListCriteria . |
static Menu |
findByKey(ARServerUser context,
MenuKey key,
MenuCriteria criteria)
Returns detailed information about the menu object specified by MenuCriteria and MenuKey . |
static Menu[] |
findObjects(ARServerUser context,
MenuListCriteria listCrit,
MenuCriteria crit)
Returns detailed information for a list of Menu objects specified by MenuListCriteria and MenuCriteria . |
static MenuFactory |
getFactory()
Returns the menu factory. |
java.lang.Object |
newInstance()
Instantiates a new menu object in memory. |
boolean |
releaseInstance(java.lang.Object obj)
Releases instance of menu object from memory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static MenuFactory getFactory()
public java.lang.Object newInstance()
newInstance
in interface IARObjectFactory
public boolean releaseInstance(java.lang.Object obj)
releaseInstance
in interface IARObjectFactory
public static Menu findByKey(ARServerUser context, MenuKey key, MenuCriteria criteria) throws ARException
MenuCriteria
and MenuKey
.
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if information is not returnedpublic static MenuKey[] find(ARServerUser context, MenuListCriteria criteria) throws ARException
MenuListCriteria
.
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if list is not returnedpublic static Menu[] findObjects(ARServerUser context, MenuListCriteria listCrit, MenuCriteria crit) throws ARException
MenuListCriteria
and MenuCriteria
.
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 |