org.infoglue.deliver.applications.actions
Class ViewPageAction

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.deliver.applications.actions.ViewPageAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
ViewApplicationSettingsAction

public class ViewPageAction
extends InfoGlueAbstractAction

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
static long boundContentTime
           
static long closeTime
           
static long commitTime
           
static long contentAttributeTime
           
static long contentVersionTime
           
static long inheritedServiceBindingTime
           
protected  IntegrationDeliveryController integrationDeliveryController
           
static long isValidTime
           
static long lastRequestProcessingTime
           
static org.apache.log4j.Logger logger
           
protected  NodeDeliveryController nodeDeliveryController
           
static long qualifyersTime
           
static long rollbackTime
           
static long selectMatchingEntitiesTime
           
static long serviceBindingTime
           
static long sortQualifyersTime
           
protected  TemplateController templateController
           
 
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
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.String doRenderDecoratedPage()
          This method the renderer for the component editor.
 java.lang.Integer getContentId()
           
 java.lang.Integer getLanguageId()
           
 java.lang.String getReferer()
           
 java.lang.String getRepositoryName()
           
 java.lang.Integer getSiteNodeId()
          Setters and getters for all things sent to the page in the request
 TemplateController getTemplateController(DatabaseWrapper dbWrapper, java.lang.Integer siteNodeId, java.lang.Integer languageId, java.lang.Integer contentId, javax.servlet.http.HttpServletRequest request, InfoGluePrincipal infoGluePrincipal, boolean allowEditOnSightAtAll)
          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.
 boolean handleExtranetLogic(org.exolab.castor.jdo.Database db, java.lang.Integer protectedSiteNodeVersionId, boolean protectDeliver)
          This method validates that the current page is accessible to the requesting user.
 void setCmsUserName(java.lang.String userName)
           
 void setContentId(java.lang.Integer contentId)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setRecacheCall(boolean isRecacheCall)
           
 void setReferer(java.lang.String referer)
           
 void setRepositoryName(java.lang.String repositoryName)
           
 void setShowSimple(boolean showSimple)
           
 void setSiteNodeId(java.lang.Integer siteNodeId)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAllowPublicationEventFilter, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getDisableImageEditor, getInfoGluePrincipal, getLanguageCode, getLocale, 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
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

nodeDeliveryController

protected NodeDeliveryController nodeDeliveryController

integrationDeliveryController

protected IntegrationDeliveryController integrationDeliveryController

templateController

protected TemplateController templateController

contentVersionTime

public static long contentVersionTime

serviceBindingTime

public static long serviceBindingTime

contentAttributeTime

public static long contentAttributeTime

boundContentTime

public static long boundContentTime

inheritedServiceBindingTime

public static long inheritedServiceBindingTime

selectMatchingEntitiesTime

public static long selectMatchingEntitiesTime

isValidTime

public static long isValidTime

qualifyersTime

public static long qualifyersTime

sortQualifyersTime

public static long sortQualifyersTime

commitTime

public static long commitTime

rollbackTime

public static long rollbackTime

closeTime

public static long closeTime

lastRequestProcessingTime

public static long lastRequestProcessingTime
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.

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

doRenderDecoratedPage

public java.lang.String doRenderDecoratedPage()
                                       throws java.lang.Exception
This method the renderer for the component editor.

Throws:
java.lang.Exception

getTemplateController

public TemplateController getTemplateController(DatabaseWrapper dbWrapper,
                                                java.lang.Integer siteNodeId,
                                                java.lang.Integer languageId,
                                                java.lang.Integer contentId,
                                                javax.servlet.http.HttpServletRequest request,
                                                InfoGluePrincipal infoGluePrincipal,
                                                boolean allowEditOnSightAtAll)
                                         throws 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.

Throws:
SystemException
java.lang.Exception

handleExtranetLogic

public boolean handleExtranetLogic(org.exolab.castor.jdo.Database db,
                                   java.lang.Integer protectedSiteNodeVersionId,
                                   boolean protectDeliver)
                            throws 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,

Throws:
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)

getReferer

public java.lang.String getReferer()

setReferer

public void setReferer(java.lang.String referer)

setShowSimple

public void setShowSimple(boolean showSimple)

setRecacheCall

public void setRecacheCall(boolean isRecacheCall)

setCmsUserName

public void setCmsUserName(java.lang.String userName)


Copyright © 2005 InfoGlue.org All Rights Reserved.