wt.eff
Class SetEffTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bywt.eff.AddEffTaskDelegate
          extended bywt.eff.SetEffTaskDelegate
All Implemented Interfaces:
ContextHolder

public class SetEffTaskDelegate
extends AddEffTaskDelegate



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.eff.AddEffTaskDelegate
authorizedBy, effContext, effManagedVersion, VERBOSE
 
Fields inherited from class wt.templateutil.processor.FormTaskDelegate
 
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
SetEffTaskDelegate()
           
 
Method Summary
static EffGroup[] getEffGroups(Properties eff_data)
          Returns an array of all existing and updated EffGroups associated with the context EffManagedVersion object.
 void processAction(ContentHTTPStream contentStream)
          

Supported API: false
protected  EffManagedVersion replaceEffGroups(EffGroup[] eff_groups, EffGroup new_eff_group)
          Replaces the currently existing EffGroups associated with the context EffManagedVersion with the new EffGroups passed in.
 
Methods inherited from class wt.eff.AddEffTaskDelegate
createEffGroup, getAuthorizedBy, getContextEffManagedVersion, getEffContext, getObjectFromReference, printHttpData, setContextEffManagedVersion
 
Methods inherited from class wt.templateutil.processor.FormTaskDelegate
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, deleteFormDataFromSession, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getState, getStatus, saveFormDataInSession, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, switchPages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

SetEffTaskDelegate

public SetEffTaskDelegate()
Method Detail

processAction

public void processAction(ContentHTTPStream contentStream)
                   throws Exception


Supported API: false

Overrides:
processAction in class AddEffTaskDelegate
Parameters:
contentStream -
Throws:
Exception

getEffGroups

public static EffGroup[] getEffGroups(Properties eff_data)
                               throws WTException
Returns an array of all existing and updated EffGroups associated with the context EffManagedVersion object. This method returns all EffGroups currently associated with the EffManagedVersion, whether or not they were updated. The EffGroups are constructed from values passed in the given Properties object.

Throws:
WTException

replaceEffGroups

protected EffManagedVersion replaceEffGroups(EffGroup[] eff_groups,
                                             EffGroup new_eff_group)
                                      throws WTException
Replaces the currently existing EffGroups associated with the context EffManagedVersion with the new EffGroups passed in. The given array of EffGroups contains the EffGroups which already existed for the context EffManagedVersion. These EffGroups may have been modified. The given EffGroup object is an optional new EffGroup to be added to the EffManagedVersion.

Parameters:
eff_groups - the EffGroups currently associated with the context EffManagedVersion - they may have had their range values modified
new_eff_group - an optional EffGroup to be added as a new EffGroup to the context EffManagedVersion
Returns:
the update EffManagedVersion
Throws:
WTException