public class DialogGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MXLogger |
INTERACTIONLOGGER
Interaction logger for logging messages related to Interaction.
|
Constructor and Description |
---|
DialogGenerator()
Construct generator
|
Modifier and Type | Method and Description |
---|---|
boolean |
findAction(org.jdom.Document doc,
java.lang.String appName,
java.lang.String actionId)
Find action by id.
|
java.util.List<MboRemote> |
findChildren(MboSetRemote set,
java.lang.String relation,
java.lang.String hierarchyPath)
Add support for workflow to the application named by this Mbo.
|
boolean |
findDialog(org.jdom.Document doc,
java.lang.String appName,
java.lang.String dialogID)
Find Dialog by id.
|
boolean |
findElementByID(org.jdom.Element in,
java.lang.String inid)
Find Element by ID.
|
java.lang.String |
generateDialog(MboRemote intGenerator,
byte[] presentataion)
Generate dialog based in IntGenerator Mbo.
|
java.lang.String |
generateUniqueID()
Generate unique ID for attribute ID
return unique id
|
org.jdom.Document |
getAppXML(java.lang.String app,
UserInfo userInfo)
Get Application XML from MAXPRESENTATION table.
|
java.lang.String |
getFileName(java.lang.String inter,
java.lang.String name)
Get the full path and file name based on given message data.
|
java.lang.String |
removeDialog(org.jdom.Document doc,
java.lang.String dialogID)
Remove dialog from presentataion.
|
void |
setLookup(org.jdom.Element data,
java.lang.String type)
Set domain lookup in presentataion.
|
public static final MXLogger INTERACTIONLOGGER
public DialogGenerator()
MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String generateDialog(MboRemote intGenerator, byte[] presentataion) throws java.rmi.RemoteException, MXException
intGenerator
- Give reference to generator Mbo.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Document getAppXML(java.lang.String app, UserInfo userInfo) throws java.rmi.RemoteException, MXException
app
- name of an applicationuserInfo
- UserInfo objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String removeDialog(org.jdom.Document doc, java.lang.String dialogID) throws java.rmi.RemoteException, MXException
doc
- Document to find dialogdialogID
- dialog idMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean findDialog(org.jdom.Document doc, java.lang.String appName, java.lang.String dialogID) throws java.rmi.RemoteException, MXException
doc
- Document to find dialogappName
- application namedialogID
- dialog idMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean findElementByID(org.jdom.Element in, java.lang.String inid) throws java.rmi.RemoteException, MXException
in
- Element to serachinid
- id to findMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean findAction(org.jdom.Document doc, java.lang.String appName, java.lang.String actionId) throws java.rmi.RemoteException, MXException
doc
- Document to find dialogappName
- application nameactionId
- action idMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.util.List<MboRemote> findChildren(MboSetRemote set, java.lang.String relation, java.lang.String hierarchyPath) throws java.rmi.RemoteException, MXException
set
- reference to MboSetrelation
- relationship namehierarchyPath
- hierarchy pathMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void setLookup(org.jdom.Element data, java.lang.String type) throws java.rmi.RemoteException, MXException
data
- Element to serachtype
- domain typeMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String generateUniqueID()
public java.lang.String getFileName(java.lang.String inter, java.lang.String name) throws MXException
inter
- Interaction Namename
- file NameMXException