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

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

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

This is the main delivery action. Gets called when the user clicks on a link that goes inside the site.

Author:
Mattias Bogeblad
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, SUCCESS
 
Constructor Summary
ViewPageAction()
          The constructor for this action - contains nothing right now.
 
Method Summary
 java.lang.String doExecute()
          This method is the application entry-point.
 java.lang.Integer getContentId()
           
 java.lang.Integer getLanguageId()
           
 java.lang.String getRepositoryName()
           
 java.lang.Integer getSiteNodeId()
          Setters and getters for all things sent to the page in the request
 TemplateController getTemplateController(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.
 void handleExtranetLogic()
          This method validates that the current page is accessible to the requesting user.
 void setContentId(java.lang.Integer contentId)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setRepositoryName(java.lang.String repositoryName)
           
 void setSiteNodeId(java.lang.Integer siteNodeId)
           
 
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

ViewPageAction

public ViewPageAction()
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

getTemplateController

public TemplateController getTemplateController(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

handleExtranetLogic

public void handleExtranetLogic()
                         throws org.infoglue.cms.exception.SystemException,
                                java.lang.Exception
This method validates that the current page is accessible to the requesting user. It fetches information from the page metainfo about if the page is protected and if it is validates the users credentials against the extranet database,

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

getSiteNodeId

public java.lang.Integer getSiteNodeId()
Setters and getters for all things sent to the page in the request


setSiteNodeId

public void setSiteNodeId(java.lang.Integer siteNodeId)

getContentId

public java.lang.Integer getContentId()

setContentId

public void setContentId(java.lang.Integer contentId)

getLanguageId

public java.lang.Integer getLanguageId()

setLanguageId

public void setLanguageId(java.lang.Integer languageId)

getRepositoryName

public java.lang.String getRepositoryName()

setRepositoryName

public void setRepositoryName(java.lang.String repositoryName)