org.infoglue.cms.applications.tasktool.actions
Class ViewExecuteTaskAction

java.lang.Object
  extended by org.infoglue.cms.applications.common.actions.WebworkAbstractAction
      extended by org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
          extended by org.infoglue.cms.applications.tasktool.actions.ViewExecuteTaskAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class ViewExecuteTaskAction
extends InfoGlueAbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
colorScheme
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewExecuteTaskAction()
           
 
Method Summary
 java.lang.String doExecute()
          This method which is the default one only serves to show a list of tasks to the user so he/she can select one to run.
 java.lang.String doExecuteTask()
          This method serves as the invoker of a task/script.
 java.lang.String doUserInput()
           
 java.lang.Integer getContentId()
           
 java.lang.Integer getTaskContentId()
           
 java.util.List getTasks()
          This method returns the contents that are of contentTypeDefinition "HTMLTemplate"
 void renderTemplate(java.util.Map params, java.io.PrintWriter pw, java.lang.String templateAsString)
          This method takes arguments and renders a template given as a string to the specified outputstream.
 void setContentId(java.lang.Integer contentId)
           
 void setTaskContentId(java.lang.Integer taskContentId)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getLogger, getLogoutURL, getOriginalFullURL, getParameter, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getSingleParameter, getThis, getToolId, getToolLocales, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme, setLanguageCode, setToolId
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getHttpSession, getInfoGluePrincipal, getLocalizedString, getRequest, getResponse, getRoot, getSession, setCommand, setError, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewExecuteTaskAction

public ViewExecuteTaskAction()
Method Detail

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
This method which is the default one only serves to show a list of tasks to the user so he/she can select one to run.

Specified by:
doExecute in class WebworkAbstractAction
Throws:
java.lang.Exception

doUserInput

public java.lang.String doUserInput()
                             throws java.lang.Exception
Throws:
java.lang.Exception

doExecuteTask

public java.lang.String doExecuteTask()
                               throws java.lang.Exception
This method serves as the invoker of a task/script. It uses the velocity-engine to run logic. It allways run the script within it's own transaction as of now.

Throws:
java.lang.Exception

renderTemplate

public void renderTemplate(java.util.Map params,
                           java.io.PrintWriter pw,
                           java.lang.String templateAsString)
                    throws java.lang.Exception
This method takes arguments and renders a template given as a string to the specified outputstream. Improve later - cache for example the engine.

Throws:
java.lang.Exception

getTasks

public java.util.List getTasks()
                        throws java.lang.Exception
This method returns the contents that are of contentTypeDefinition "HTMLTemplate"

Throws:
java.lang.Exception

getTaskContentId

public java.lang.Integer getTaskContentId()

setTaskContentId

public void setTaskContentId(java.lang.Integer taskContentId)

getContentId

public java.lang.Integer getContentId()

setContentId

public void setContentId(java.lang.Integer contentId)


Copyright © 2005 InfoGlue.org All Rights Reserved.