|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.vc.config.SetConfigSpecDelegate
Form action delegate which handles creating a Configuration Specification from given Form data. This delegate is the action associated with the form created and specified by the ConfigSpecProcessor form processor.
FormActionDelegate
,
ConfigSpec
Nested Class Summary | |
class |
SetConfigSpecDelegate.ConfigSpecHolder
Helper class for taking in the information passed in the form and converting it into a configuration specification. |
Field Summary | |
private Object |
actionObject
The Action object which is the context object for this delegate. |
static String |
ENCODED_CONFIG_SPEC_KEY
The key whose value specifies the configuration specification encoded in a base-64 encoding. |
private static String |
RESOURCE
Resource bundle class to be used for messages in this class |
static String |
RETURN_ACTION
Specifies the default action to be set after invoking 'processAction' on this delegate. |
static String |
RETURN_ACTION_KEY
The key whose value specifies the action which should occur as a result of invoking 'processAction' on this delegate. |
static String |
RETURN_OID_KEY
The key whose value specifies the oid of the object which should be set as the context object as a result of invoking 'processAction' on this delegate. |
static String |
RETURN_TEMPLATE
Specifies the default template which should be displayed as a result of invoking 'processAction' on this delegate. |
static String |
RETURN_TEMPLATE_KEY
The key whose value specifies the template which should be displayed as a result of invoking 'processAction' on this delegate. |
static String |
RETURN_TEMPLATE_PROCESSOR
Specifies the default template which should be displayed as a result of invoking 'processAction' on this delegate. |
static String |
RETURN_TEMPLATE_PROCESSOR_KEY
The key whose value specifies the template which should be displayed as a result of invoking 'processAction' on this delegate. |
private static boolean |
VERBOSE
Flag for providing additional debugging information. |
Fields inherited from interface wt.enterprise.FormActionDelegate |
ACTION_OBJECT |
Constructor Summary | |
SetConfigSpecDelegate()
|
Method Summary | |
SetConfigSpecDelegate.ConfigSpecHolder |
createConfigSpecHolder(Properties props)
Creates a ConfigSpecHolder from the given Properties hashtable. |
Object |
getActionObject()
Return the object which is the context for this Action Delegate. |
static String |
getClassDisplayName(Class class_obj)
Returns the display name for the given class. |
WTPartConfigSpec |
getConfigSpec()
|
static String |
getEncodedConfigSpec(ConfigSpec config_spec)
Returns the given ConfigSpec encoded in a String using base-64 encoding. |
protected static Object |
getObjectBySearch(Class search_class,
String attr_name,
String attr_value)
Attempts to retrieve an EffContext based on the given String name. |
Properties |
processAction(Properties props,
ContentHTTPStream contentStream,
Locale locale)
Process the given form data and create the resulting configuration specification. |
void |
setActionObject(Object action_object)
Sets the object which is the context for this Action Delegate. |
void |
setConfigSpec(ConfigSpec config_spec)
|
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 boolean VERBOSE
private Object actionObject
public static final String RETURN_TEMPLATE
public static final String RETURN_TEMPLATE_PROCESSOR
public static final String RETURN_ACTION
public static final String RETURN_TEMPLATE_KEY
public static final String RETURN_TEMPLATE_PROCESSOR_KEY
public static final String RETURN_ACTION_KEY
public static final String RETURN_OID_KEY
public static final String ENCODED_CONFIG_SPEC_KEY
Constructor Detail |
public SetConfigSpecDelegate()
Method Detail |
public Object getActionObject()
getActionObject
in interface FormActionDelegate
public void setActionObject(Object action_object) throws WTPropertyVetoException
setActionObject
in interface FormActionDelegate
action_object
- the object which is the context for this
delegate
WTPropertyVetoException
public Properties processAction(Properties props, ContentHTTPStream contentStream, Locale locale) throws Exception
processAction
in interface FormActionDelegate
props
- the Properties which was built from the form datacontentStream
- this parameter is ignoredlocale
- the locale of the client
Exception
FormProcessor
,
wt.content.ContentHttpStream
public WTPartConfigSpec getConfigSpec()
public void setConfigSpec(ConfigSpec config_spec) throws WTPropertyVetoException
WTPropertyVetoException
public SetConfigSpecDelegate.ConfigSpecHolder createConfigSpecHolder(Properties props)
props
- the Properties passed in from the form
public static String getEncodedConfigSpec(ConfigSpec config_spec) throws IOException
config_spec
- the config spec to be encoded
IOException
protected static Object getObjectBySearch(Class search_class, String attr_name, String attr_value) throws WTException
WTException
public static String getClassDisplayName(Class class_obj)
class_obj
- the Class whose display name is returned.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |