|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.innovationinvestments.cheyenne.engine.Dialog
public abstract class Dialog
This is the base class for every Cheyenne dialog. Legacy mode: - JDBC: autoCommit - SQL: strings, no binding Default mode: - JDBC: transaction (autocommit upon dialog exit) - SQL: all parameters through binding
| Nested Class Summary | |
|---|---|
static class |
Dialog.ESCAPING
|
| Field Summary | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
Dialog()
|
|
| Method Summary | |
|---|---|
Connection |
borrowJdbcConnection(String id)
JdbcConnection |
nl.knowledgeplaza.soaptools.client.SoapClient |
borrowSoapClient(String id)
|
void |
commit()
commit all connections and return them to the pool |
protected String |
convertToString(Object o)
|
protected void |
dialogSection()
|
void |
enteringLoop(Loop loop)
|
List<DataSet> |
fillAndRememberFlashContext()
|
DataSet |
findDataSetById(String id)
Find the data set by ID |
void |
generateDialog()
|
void |
generateDialog(boolean clearData)
generate a dialog |
void |
generateDialogInit()
prepare running the generate dialog This is a separate method because logically this code belongs in the generateDialog method, however due to multithreading issues it must be run prior to spawning the two thread (generateDialog & XSLT). |
void |
generateDialogThroughXSLT(String id)
generate a dialog (using a new thread) |
String |
getAnnotation(String name)
get an annotation |
String |
getApp()
|
String |
getContentType()
|
Context |
getContext()
|
Loop |
getCurrentLoop()
|
String |
getDefaultJdbcConnectionName()
|
String |
getDiagMode()
|
String |
getEncoding()
|
Dialog.ESCAPING |
getEscaping()
|
String |
getId()
Id |
String |
getIdFull()
|
String |
getLanguage()
|
int |
getLanguageIdx(String[] languages)
|
boolean |
getLegacyMode()
|
Loop |
getLoop(int level)
Get the loop |
List<Loop> |
getLoops()
Return all loops, index = 0 is current loop |
String |
getNextUrl()
|
PrintWriter |
getPrintWriter()
|
String |
getRole()
|
nl.knowledgeplaza.soaptools.client.SoapClient |
getSoapClient(SOAP soap)
|
String |
getTarget()
|
String |
getUser()
|
boolean |
hasAnnotation(String name)
true if an annotation is present |
protected void |
initialize()
|
boolean |
isAnnotationTrue(String name)
true if an annotation is present and its content is equals true, yes, 1, ... |
void |
leavingLoop(Loop loop)
|
void |
loadDialog()
|
void |
loadDialog(boolean clearData)
|
protected void |
loadSection()
|
Assign |
newAssign()
Return a instance of this tag (optionally from a pool) |
DatasetAction |
newDatasetAction()
Return a instance of this tag (optionally from a pool) |
If |
newIf()
Return a instance of this tag (optionally from a pool) |
Loop |
newLoop()
Return a instance of this tag (optionally from a pool) |
Redirect |
newRedirect()
Return a instance of this tag (optionally from a pool) |
SOAP |
newSOAP()
Return a instance of this tag (optionally from a pool) |
Sql |
newSql()
Return a instance of this tag (optionally from a pool) |
Textfile |
newTextfile()
Return a instance of this tag (optionally from a pool) |
XML |
newXML()
Return a instance of this tag (optionally from a pool) |
Map<String,String> |
outParameters()
outParameters is used for requesting the output parameters and the content for example the soap message receiver |
void |
pickupFlashContext()
Pick up an existing flash dataset from the session and move it to the old-flashcontext |
protected void |
print(String x)
Output to writer |
void |
registerDataSet(DataSet dataSet)
Newest dataset is put at #0 |
void |
registerDataSet(SQLDataSet dataSet)
Newest dataset is put at #0 |
void |
registerDataSet(XMLDataSet dataSet)
Newest dataset is put at #0 |
void |
registerSoapClient(SOAP soap,
nl.knowledgeplaza.soaptools.client.SoapClient soapClient)
|
void |
rememberFlashContext(List<DataSet> flashDataSets)
Also used by the CheyenneServlet |
void |
removeAnnotation(String name)
remove an annotation |
String |
resolve(String input)
|
String |
resolve(String input,
Dialog.ESCAPING escaping)
This will resolve all variables (or even nested variables) in the input string. |
String |
resolveColumnName(String input)
|
Object |
resolveInAssign(String name)
|
Object |
resolveInDataSet(String name)
|
String |
resolveInParent(String variableName)
|
Object |
resolveSingleVariable(String variableName)
This will resolve a single variable (% are already stripped) First the data set is searched Secondly the input parameters Thirdly the configuration parameters |
String |
resolveSingleVariableAsString(String variableName)
|
String |
resolveWithoutEscapingTheResult(String input)
This will resolve all variables (or even nested variables) in the input string |
void |
returnConnection(String id,
Connection connection)
|
void |
returnSoapClient(String id,
nl.knowledgeplaza.soaptools.client.SoapClient client)
|
void |
rollback()
rollback all connections and return them to the pool |
void |
setAnnotation(String name,
String value)
add an annotation |
void |
setApp(String value)
App |
void |
setAssign(String id,
Object value)
|
void |
setContentType(String value)
ContentType |
void |
setContext(Context value)
Context |
void |
setDefaultJdbcConnectionName(String value)
DefaultJdbcConnectionName |
void |
setDiagMode(String value)
|
void |
setEncoding(String value)
Encoding @see http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html |
void |
setEscaping(Dialog.ESCAPING value)
Escaping |
void |
setLanguage(String value)
Language |
void |
setLegacyMode(boolean value)
LegacyMode |
void |
setNextUrl(String value)
NextUrl |
void |
setPrintWriter(PrintWriter value)
PrintWriter |
void |
setRole(String value)
Role |
void |
setTarget(String value)
Target |
protected void |
setupFromContext()
|
void |
setUser(String value)
User |
void |
submitDialog()
|
void |
submitDialog(boolean clearData)
submit a dialog Use this method to optionally clear the data (for unittests) |
protected void |
submitSection()
|
void |
unregisterAllDataSets()
|
void |
unregisterDataSet(DataSet dataSet)
|
void |
unregisterDataSet(XMLDataSet dataSet)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public Dialog()
| Method Detail |
|---|
protected void setupFromContext()
public void setContext(Context value)
public Context getContext()
public void setEncoding(String value)
public String getEncoding()
public void setContentType(String value)
public String getContentType()
public void setDefaultJdbcConnectionName(String value)
public String getDefaultJdbcConnectionName()
public void setNextUrl(String value)
public String getNextUrl()
public String getId()
public String getIdFull()
public void setPrintWriter(PrintWriter value)
public PrintWriter getPrintWriter()
public void setLegacyMode(boolean value)
public boolean getLegacyMode()
public void setEscaping(Dialog.ESCAPING value)
public Dialog.ESCAPING getEscaping()
public void setTarget(String value)
public String getTarget()
public void setApp(String value)
public String getApp()
public void setRole(String value)
public String getRole()
public void setUser(String value)
public String getUser()
public void setLanguage(String value)
public String getLanguage()
public void setDiagMode(String value)
public String getDiagMode()
public Connection borrowJdbcConnection(String id)
public void returnConnection(String id,
Connection connection)
public void commit()
public void rollback()
public nl.knowledgeplaza.soaptools.client.SoapClient borrowSoapClient(String id)
public void returnSoapClient(String id,
nl.knowledgeplaza.soaptools.client.SoapClient client)
protected void initialize()
protected void loadSection()
protected void dialogSection()
protected void submitSection()
public void loadDialog(boolean clearData)
clearData - public void loadDialog()
public void generateDialogInit()
public void generateDialog(boolean clearData)
public void generateDialog()
public void generateDialogThroughXSLT(String id)
public void submitDialog(boolean clearData)
public void submitDialog()
public void pickupFlashContext()
public List<DataSet> fillAndRememberFlashContext()
public void rememberFlashContext(List<DataSet> flashDataSets)
public If newIf()
public Loop newLoop()
public Sql newSql()
public Textfile newTextfile()
public Redirect newRedirect()
public Assign newAssign()
public DatasetAction newDatasetAction()
public XML newXML()
public SOAP newSOAP()
public void registerDataSet(DataSet dataSet)
public void unregisterDataSet(DataSet dataSet)
dataSet - public DataSet findDataSetById(String id)
id -
public void unregisterAllDataSets()
public Object resolveInDataSet(String name)
name -
public void registerDataSet(SQLDataSet dataSet)
public void registerDataSet(XMLDataSet dataSet)
public void unregisterDataSet(XMLDataSet dataSet)
dataSet -
public void setAssign(String id,
Object value)
public Object resolveInAssign(String name)
name -
public String resolve(String input,
Dialog.ESCAPING escaping)
public String resolve(String input)
public String resolveColumnName(String input)
throws CheyenneEngineException
CheyenneEngineExceptionpublic String resolveWithoutEscapingTheResult(String input)
public Object resolveSingleVariable(String variableName)
public String resolveSingleVariableAsString(String variableName)
public String resolveInParent(String variableName)
variableName -
protected String convertToString(Object o)
o -
public void enteringLoop(Loop loop)
public void leavingLoop(Loop loop)
public Loop getCurrentLoop()
public Loop getLoop(int level)
level - 0 = current loop, 1 = one level below current, etc
public List<Loop> getLoops()
protected void print(String x)
public int getLanguageIdx(String[] languages)
public void setAnnotation(String name,
String value)
public String getAnnotation(String name)
public void removeAnnotation(String name)
public boolean hasAnnotation(String name)
public boolean isAnnotationTrue(String name)
public Map<String,String> outParameters()
public nl.knowledgeplaza.soaptools.client.SoapClient getSoapClient(SOAP soap)
WSDL - action -
public void registerSoapClient(SOAP soap,
nl.knowledgeplaza.soaptools.client.SoapClient soapClient)
WSDL - action -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||