|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.templateutil.processor.DefaultTemplateProcessor
wt.templateutil.processor.GenerateFormProcessor
wt.eff.AddEffFormProcessor
Supported API: false
Extendable: false
Field Summary | |
static String |
AUTHORIZED_BY
|
private static String |
CLASSNAME
|
static String |
CONFIG_NAME_VARIABLE_NAME
|
protected static String |
DEFAULT_FORM_ACTION
|
protected static String |
DEFAULT_FORM_METHOD
|
protected static String |
DEFAULT_FORM_NAME
|
protected static String |
DEFAULT_PROCESS_METHOD
|
protected static String |
DEFAULT_VALIDATE_FUNCTION_NAME
|
static String |
EFF_TYPE_SELECT_NAME
|
static String |
EFF_TYPE_VARIABLE_NAME
|
static String |
EFF_VALUE_VARIABLE_NAME
|
protected EffContext |
effContext
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
OBJREF_VARIABLE_NAME
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private static ReferenceFactory |
rf
|
static String |
SEARCH_RESULT_OBJREF
|
(package private) static long |
serialVersionUID
|
protected static boolean |
VERBOSE
|
Fields inherited from class wt.templateutil.processor.GenerateFormProcessor |
DEFAULT_LIFECYCLE, ON_CHANGE_EVENT_NAME, TEAMTEMPLATE_INPUT_NAME |
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor |
ACTION, CLASS, CODEBASE, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID |
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
AddEffFormProcessor()
|
Method Summary | |
static String |
addFontTags(String text,
String[] tags,
String[] values)
Add HTML tags to the given string text. |
void |
buildSearchURL(Properties properties,
Locale locale,
OutputStream os)
Builds a URL to search using the ObjectSearchProcessor Supported API: false |
void |
buildSearchURL(String form_action,
Properties properties,
Locale locale,
OutputStream os)
Builds a URL to search using the ObjectSearchProcessor Supported API: false |
protected static Properties |
copyProperties(Properties props)
Returns a new Properties object with the same key-value pairs as the given properties object. |
void |
endForm(Properties props,
Locale locale,
OutputStream os)
Outputs the ending tag for an HTML form. |
protected EffContext |
getContextEffContext()
Returns the EffContext object associated with this template processor. |
protected EffManagedVersion |
getContextEffManagedVersion()
Returns the EffManagedVersion object which is the context object for this processor. |
void |
getCurrentPageURL(Properties props,
Locale locale,
OutputStream os)
|
protected static EffContext |
getEffContextByName(String context_name)
Attempts to retrieve an EffContext based on the given String name. |
protected static String[][] |
getEffGroupPairs(EffManagedVersion eff_version,
EffContext eff_context,
Locale locale)
Returns an array of String arrays which contain pairs used in building the drop-down list for choosing an effectivity type. |
static String |
getHiddenFieldHTML(String name,
String value)
|
static void |
outputConfigItemVariableName(Properties props,
Locale locale,
OutputStream os)
Outputs the name of the config item name variable. |
void |
outputEffContextDisplayIdentity(Properties props,
Locale locale,
OutputStream os)
Outputs the name of the EffContext object if one has been associated with this template processor. |
void |
outputEffContextObjRef(Properties props,
Locale locale,
OutputStream os)
Outputs the object id of the EffContext to a hidden field in the HTML page. |
void |
outputEffectivityType(Properties parameters,
Locale locale,
OutputStream os)
Outputs an HTML drop-down SELECT object displaying the valid effectivity types. |
void |
outputEffectivityValue(Properties props,
Locale locale,
OutputStream os)
|
static void |
outputFormName(Properties props,
Locale locale,
OutputStream os)
Outputs the name of the form to the given output stream |
static void |
outputHiddenField(String name,
String value,
PrintWriter out)
Outputs a HIDDEN form field with the given name and given value to the given printwriter. |
static void |
outputObjRefVariableName(Properties props,
Locale locale,
OutputStream os)
|
static void |
outputSubmitButton(Properties props,
Locale locale,
OutputStream os)
Outputs the HTML code to display a 'submit' button for submitting a form. |
static void |
outputTypeVariableName(Properties props,
Locale locale,
OutputStream os)
Outputs the name of the effectivity type variable. |
static void |
outputValueVariableName(Properties props,
Locale locale,
OutputStream os)
Outputs the name of the effectivity value variable. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AddEffFormProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
startForm(Properties props,
Locale locale,
OutputStream os)
Outputs the FORM tag for starting an HTML FORM. |
void |
startForm(String process_method,
String form_method,
String form_name,
String form_action,
Properties props,
Locale locale,
OutputStream os)
Outputs the FORM tag for starting an HTML FORM. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static boolean VERBOSE
protected static String DEFAULT_FORM_METHOD
protected static String DEFAULT_FORM_NAME
protected static String DEFAULT_PROCESS_METHOD
protected static String DEFAULT_FORM_ACTION
protected static String DEFAULT_VALIDATE_FUNCTION_NAME
protected EffContext effContext
public static String OBJREF_VARIABLE_NAME
public static String SEARCH_RESULT_OBJREF
public static String CONFIG_NAME_VARIABLE_NAME
public static String EFF_TYPE_SELECT_NAME
public static String EFF_TYPE_VARIABLE_NAME
public static String EFF_VALUE_VARIABLE_NAME
public static final String AUTHORIZED_BY
private static ReferenceFactory rf
Constructor Detail |
public AddEffFormProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class GenerateFormProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class GenerateFormProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AddEffFormProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void buildSearchURL(Properties properties, Locale locale, OutputStream os) throws WTException
properties
- locale
- os
-
WTException
public void outputEffectivityType(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- public static void outputObjRefVariableName(Properties props, Locale locale, OutputStream os)
public void outputEffectivityValue(Properties props, Locale locale, OutputStream os)
public void startForm(Properties props, Locale locale, OutputStream os) throws WTException
props
- the Properties object containing parameters passed
in the SCRIPT calllocale
- the Locale of the clientos
- the OutputStream to write the FORM to
WTException
public void endForm(Properties props, Locale locale, OutputStream os)
props
- the Properties object containing parameters passed
in the SCRIPT calllocale
- the Locale of the clientos
- the OutputStream to write the FORM topublic static void outputSubmitButton(Properties props, Locale locale, OutputStream os)
props
- the Properties object containing parameters passed
in the SCRIPT calllocale
- the Locale of the clientos
- the OutputStream to write the submit button toprotected static Properties copyProperties(Properties props)
props
- the Properties object to copy
protected static String[][] getEffGroupPairs(EffManagedVersion eff_version, EffContext eff_context, Locale locale)
protected EffManagedVersion getContextEffManagedVersion()
protected EffContext getContextEffContext()
public void getCurrentPageURL(Properties props, Locale locale, OutputStream os)
public void outputEffContextDisplayIdentity(Properties props, Locale locale, OutputStream os)
public void outputEffContextObjRef(Properties props, Locale locale, OutputStream os) throws WTException
WTException
public static void outputHiddenField(String name, String value, PrintWriter out)
name
- the Name of the hidden fieldvalue
- the value of the hidden fieldout
- the PrintWriter to write to.public static String getHiddenFieldHTML(String name, String value)
public static void outputFormName(Properties props, Locale locale, OutputStream os)
public static void outputTypeVariableName(Properties props, Locale locale, OutputStream os)
public static void outputValueVariableName(Properties props, Locale locale, OutputStream os)
public static void outputConfigItemVariableName(Properties props, Locale locale, OutputStream os)
public static String addFontTags(String text, String[] tags, String[] values)
text
- the String text to wrap with FONT tagstags
- an array of String FONT tagsvalues
- an array of String values which correspond to
the given font tags.
protected static EffContext getEffContextByName(String context_name) throws WTException
context_name
- the String name of the EffContext to search
for
WTException
public void startForm(String process_method, String form_method, String form_name, String form_action, Properties props, Locale locale, OutputStream os) throws WTException
process_method
- The name of the method on URLProcessor that will respond to the POST or GETform_method
- POST or GETform_name
- The name of the form. This is used by JavaScript methods in the HTML templateform_action
- The context action which gets invoked after the user has selected
a Configuration Item or Product.props
- the Properties object containing parameters passed
in the SCRIPT calllocale
- the Locale of the clientos
- the OutputStream to write the FORM to
WTException
public void buildSearchURL(String form_action, Properties properties, Locale locale, OutputStream os) throws WTException
form_action
- The context action which gets invoked after the user has selected
a Configuration Item or Product.properties
- locale
- os
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |