org.infoglue.cms.applications.deliver.actions
Class ViewApplicationSettingsAction

java.lang.Object
  |
  +--org.infoglue.cms.applications.common.actions.WebworkAbstractAction
        |
        +--org.infoglue.cms.applications.deliver.actions.ViewApplicationSettingsAction
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, java.io.Serializable, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class ViewApplicationSettingsAction
extends org.infoglue.cms.applications.common.actions.WebworkAbstractAction

This is the action that can supply a caller with a lot of information about the delivery-engine.

Author:
Mattias Bogeblad
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, SUCCESS
 
Constructor Summary
ViewApplicationSettingsAction()
          The constructor for this action - contains nothing right now.
 
Method Summary
 java.lang.String doExecute()
          This method is the application entry-point.
 java.lang.String doGetTemplateLogicMethods()
          This command is used to get a list of all available methods on the templateController.
 java.lang.String doRenderTemplate()
          This command is used to get a generated view of the component in it's context.
 TemplateController getTemplateController(NodeDeliveryController nodeDeliveryController, IntegrationDeliveryController integrationDeliveryController, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, javax.servlet.http.HttpServletRequest request)
          This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template.
 java.util.List getTemplateMethods()
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getCurrentUrl, getError, getErrors, getSession, setCommand, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewApplicationSettingsAction

public ViewApplicationSettingsAction()
The constructor for this action - contains nothing right now.

Method Detail

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
This method is the application entry-point. The parameters has been set through the setters and now we just have to render the appropriate output.

Overrides:
doExecute in class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
java.lang.Exception

doGetTemplateLogicMethods

public java.lang.String doGetTemplateLogicMethods()
                                           throws java.lang.Exception
This command is used to get a list of all available methods on the templateController. This service is mostly used by the template-editor so it can keep up with changes easily.

java.lang.Exception

getTemplateMethods

public java.util.List getTemplateMethods()

doRenderTemplate

public java.lang.String doRenderTemplate()
                                  throws java.lang.Exception
This command is used to get a generated view of the component in it's context.

java.lang.Exception

getTemplateController

public TemplateController getTemplateController(NodeDeliveryController nodeDeliveryController,
                                                IntegrationDeliveryController integrationDeliveryController,
                                                java.lang.Integer siteNodeId,
                                                java.lang.Integer languageId,
                                                java.lang.Integer contentId,
                                                javax.servlet.http.HttpServletRequest request)
                                         throws org.infoglue.cms.exception.SystemException,
                                                java.lang.Exception
This method should be much more sophisticated later and include a check to see if there is a digital asset uploaded which is more specialized and can be used to act as serverside logic to the template. The method also consideres wheter or not to invoke the preview-version with administrative functioality or the normal site-delivery version.

org.infoglue.cms.exception.SystemException
java.lang.Exception