|
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.SupportFileFactory
The methods in the SupportFileFactory
class are used to
instantiate a new support file object
or to get an existing support file 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
an support file object that is existing on the server:
SupportFileFactory supportFileFactory = SupportFileFactory.getFactory( ); SupportFileKey key = new SupportFileKey( ); SupportFileCriteria criteria = new SupportFileCriteria( ); criteria.setRetrieveAll( true ); SupportFile supportFile = supportFileFactory.findByKey( context, key, criteria );
Constructor Summary | |
protected |
SupportFileFactory()
|
Method Summary | |
static SupportFileKey[] |
find(ARServerUser context,
SupportFileListCriteria criteria)
Returns a list of SupportFileKey objects that contain the details
of the support files specified by SupportFileListCriteria . |
static SupportFile |
findByKey(ARServerUser context,
SupportFileKey key,
SupportFileCriteria criteria)
Returns detailed information about the SupportFile object
specified by SupportFileCriteria and SupportFileKey . |
static SupportFile[] |
findObjects(ARServerUser context,
SupportFileListCriteria listcriteria,
SupportFileCriteria criteria)
Returns a list of SupportFile objects
that matches the search criteria given in the SupportFileListCriteria . |
java.lang.String |
getDefaultOutputDirectory()
Returns the default output directory where support file is is to be retrieved. |
static SupportFileFactory |
getFactory()
Returns the support file factory. |
java.lang.Object |
newInstance()
Instantiates a new support file object in memory. |
boolean |
releaseInstance(java.lang.Object supportFile)
Releases instance of support file object from memory. |
void |
setDefaultOutputDirectory(java.lang.String defaultOutputDirectory)
Set the default output directory where support file is to be retrieved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SupportFileFactory()
Method Detail |
public static SupportFileFactory getFactory()
public java.lang.Object newInstance()
newInstance
in interface IARObjectFactory
public boolean releaseInstance(java.lang.Object supportFile)
releaseInstance
in interface IARObjectFactory
public static SupportFile findByKey(ARServerUser context, SupportFileKey key, SupportFileCriteria criteria) throws ARException
SupportFile
object
specified by SupportFileCriteria
and SupportFileKey
.
context
- A ARServerUser
object containing user name,
password, server name and language informationkey
- A SupportFileKey
object that uniquely identifies
the support file on the server.criteria
- A SupportFileCriteria
object containing the name
of the SupportFile
and the information to retrieve
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if object information is not returnedpublic static SupportFileKey[] find(ARServerUser context, SupportFileListCriteria criteria) throws ARException
SupportFileKey
objects that contain the details
of the support files specified by SupportFileListCriteria
.
Each support file key object represents one support file.
context
- A ARServerUser
object containing user name, password, server name and language informationcriteria
- A SupportFileListCriteria
object
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if list is not returnedpublic java.lang.String getDefaultOutputDirectory()
public void setDefaultOutputDirectory(java.lang.String defaultOutputDirectory)
public static SupportFile[] findObjects(ARServerUser context, SupportFileListCriteria listcriteria, SupportFileCriteria criteria) throws ARException
SupportFile
objects
that matches the search criteria given in the SupportFileListCriteria
.
The information retrieved for each of the support files depends on the
SupportFileCriteria
.
context
- A ARServerUser
object containing user name, password, server name and language informationlistcriteria
- A SupportFileListCriteria
objectcriteria
- A SupportFileCriteria
object
java.lang.NullPointerException
- if invalid ARServerUser
object
ARException
- if list 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 |