public class PresentationLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<java.lang.String,java.lang.String> |
MAXLABELS_PROPERTIES |
static java.util.Set<java.lang.String> |
MAXLABELS_PROPERTIES_SET |
static java.lang.String |
XML_VERSION_TAG |
static java.lang.String |
XML_VERSION_TAG_REGEX |
Constructor and Description |
---|
PresentationLoader() |
Modifier and Type | Method and Description |
---|---|
void |
exportSQL(WebClientSession wcs)
Handles the Export SQL function -- exports all of the presentations to presentations folder on server disk.
|
void |
exportSQL(WebClientSession wcs,
java.lang.String appID,
java.io.PrintWriter out)
Handles the Export SQL function
|
java.lang.String |
exportXML(WebClientSession wcs,
java.lang.String appID)
Function that returns the XML for a presentation as stored in the database
|
java.lang.String |
getAppID() |
java.lang.String |
getXMLSafePropertyString(ControlInstance control,
java.util.HashMap<java.lang.String,java.lang.String> cachedLabels)
Returns a string containing all of the attributes for the control
|
java.lang.String |
getXMLString(WebClientSession wcs,
ControlInstance control) |
void |
importApp(WebClientSession wcs,
java.lang.String xml)
Reads the XML for a single presentation and imports it.
|
void |
importApp(WebClientSession wcs,
java.lang.String xml,
boolean saveLabels) |
void |
importPresentationSet(WebClientSession wcs,
java.lang.String xml)
Reads the XML for a set of presentations and imports each individual presentation
|
static boolean |
isMaxLabelProperty(java.lang.String property)
Tell whether the property is a label-type property
|
static java.lang.String |
makesafevalue(java.lang.String value)
THIS IS NECESSARY TO KEEP BAD XML OUT OF THE PRESENTATION
Used to protect xml values that may contain special characters.
|
void |
writeFormattedXML(java.io.PrintWriter out,
java.lang.String xml,
LabelCache appLabelCache)
Method used by designer to get the xml for exporting an application
|
public static final java.lang.String XML_VERSION_TAG
public static final java.lang.String XML_VERSION_TAG_REGEX
public static final java.util.HashMap<java.lang.String,java.lang.String> MAXLABELS_PROPERTIES
public static final java.util.Set<java.lang.String> MAXLABELS_PROPERTIES_SET
public void importPresentationSet(WebClientSession wcs, java.lang.String xml) throws java.lang.Exception
wcs
- the webClientSessionxml
- the XML containing the presentation setjava.lang.Exception
public void importApp(WebClientSession wcs, java.lang.String xml) throws java.lang.Exception
wcs
- the webClientSessionxml
- the XML containing the presentationjava.lang.Exception
public void importApp(WebClientSession wcs, java.lang.String xml, boolean saveLabels) throws java.lang.Exception
java.lang.Exception
public java.lang.String getAppID()
public static boolean isMaxLabelProperty(java.lang.String property)
public void exportSQL(WebClientSession wcs)
public void exportSQL(WebClientSession wcs, java.lang.String appID, java.io.PrintWriter out)
appID
- Application to be exported@TraceMaskValue public java.lang.String exportXML(WebClientSession wcs, java.lang.String appID) throws MXException, java.rmi.RemoteException
appID
- Application to be exportedMXException
java.rmi.RemoteException
public java.lang.String getXMLString(WebClientSession wcs, ControlInstance control) throws java.io.IOException
java.io.IOException
public java.lang.String getXMLSafePropertyString(ControlInstance control, java.util.HashMap<java.lang.String,java.lang.String> cachedLabels)
labelsforcontrol
- HashMap containing any new properties for the control where key=property,value=valuepublic static java.lang.String makesafevalue(java.lang.String value)
value
- the value to be protectedpublic void writeFormattedXML(java.io.PrintWriter out, java.lang.String xml, LabelCache appLabelCache)