org.infoglue.cms.applications.common.actions
Class InfoGlueAbstractAction

java.lang.Object
  |
  +--org.infoglue.cms.applications.common.actions.WebworkAbstractAction
        |
        +--org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, java.io.Serializable, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
CreateContentWizardAbstractAction, CreateContentWizardInputContentAction, CreateInterceptionPointAction, CreateInterceptorAction, CreatePageTemplateAction, CreateSiteNodeAction, CreateWorkflowInstanceAction, DeleteContentAction, DeleteDigitalAssetAction, DeleteInterceptionPointAction, DeleteInterceptorAction, DeleteSiteNodeAction, InfoGlueDefaultInputHandlerAction, InfoGluePropertiesAbstractAction, InstallationValidatorAction, InvokeWorkflowAction, ModelAction, MoveMultipleContentAction, MoveMultipleSiteNodeAction, RegisterUserInfoAction, SearchContentAction, TextToImageEditorAction, UnpublishContentVersionAction, UnpublishSiteNodeVersionAction, UpdateSystemUserPasswordAction, UpdateWorkflowDefinitionAction, ViewApplicationStateAction, ViewCMSToolHeaderAction, ViewContentAction, ViewContentTypeDefinitionAction, ViewContentVersionAction, ViewDigitalAssetAction, ViewEntityPropertiesAction, ViewLinkDialogAction, ViewListContentVersionAction, ViewListGroupAction, ViewListRoleAction, ViewListSiteNodeVersionAction, ViewListSystemUserAction, ViewMyDesktopToolAction, ViewMyDesktopToolHeaderAction, ViewMyDesktopToolStartPageAction, ViewMyDesktopToolToolBarAction, ViewPageAction, ViewRepositoryAction, ViewSiteNodeAction, ViewSiteNodePageComponentsAction, ViewStructureToolMenuAction, ViewStructureToolToolBarAction, ViewStructureTreeForInlineLinkAction, ViewSystemUserAction, ViewSystemUserPropertiesAction, ViewWorkflowDefinitionAction, WYSIWYGPropertiesAction

public abstract class InfoGlueAbstractAction
extends WebworkAbstractAction

Author:
Mattias Bogeblad This is an abstract action used for all InfoGlue actions. Just to not have to put to much in the WebworkAbstractAction.
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
InfoGlueAbstractAction()
           
 
Method Summary
 void beginTransaction(org.exolab.castor.jdo.Database db)
          Begins a transaction on the supplied database
 void closeDatabase(org.exolab.castor.jdo.Database db)
          Close the database
 void closeTransaction(org.exolab.castor.jdo.Database db)
          Rollbacks a transaction on the named database
 java.lang.String encode(java.lang.String value)
           
 java.lang.String getCMSBaseUrl()
           
 java.lang.String getColorScheme()
           
 java.lang.String getComponentRendererAction()
           
 java.lang.String getComponentRendererUrl()
           
 java.lang.String getCurrentURL()
          This method returns the current url.
 java.lang.String getLanguageCode()
           
 java.util.Locale getLocale()
           
 java.util.Map getPrincipalPropertyHashValues(java.lang.String propertyName, boolean escapeSpecialCharacters)
          Getting a property for a Principal - used for personalisation.
 java.lang.String getPrincipalPropertyValue(java.lang.String propertyName, boolean escapeSpecialCharacters)
          This method returns a propertyValue for the logged in user.
 java.lang.String getPrincipalPropertyValue(java.lang.String propertyName, boolean escapeSpecialCharacters, boolean findLargestValue)
          This method returns a propertyValue for the logged in user.
 int getSessionTimeout()
          This method returns the session timeout value.
 InfoGlueAbstractAction getThis()
          This method lets the velocity template get hold of all actions inheriting.
 java.lang.String getURLBase()
          This method returns the actions url base.
 java.lang.String getUserName()
          Get the username for the currently logged in user
 boolean hasAccessTo(java.lang.String interceptionPointName)
          Used by the view pages to determine if the current user has sufficient access rights to perform the action specific by the interception point name.
 boolean hasAccessTo(java.lang.String interceptionPointName, java.lang.String extraParameter)
          Used by the view pages to determine if the current user has sufficient access rights to perform the action specific by the interception point name.
 void rollbackTransaction(org.exolab.castor.jdo.Database db)
          Rollbacks a transaction on the named database
 void setColorScheme(java.lang.String colorScheme)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getInfoGluePrincipal, getLocalizedString, getRoot, getSession, setCommand, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoGlueAbstractAction

public InfoGlueAbstractAction()
Method Detail

getThis

public InfoGlueAbstractAction getThis()
This method lets the velocity template get hold of all actions inheriting.

Returns:
The action object currently invoked

getURLBase

public java.lang.String getURLBase()
This method returns the actions url base.


getCurrentURL

public java.lang.String getCurrentURL()
This method returns the current url.


getSessionTimeout

public int getSessionTimeout()
This method returns the session timeout value.


getPrincipalPropertyValue

public java.lang.String getPrincipalPropertyValue(java.lang.String propertyName,
                                                  boolean escapeSpecialCharacters)
This method returns a propertyValue for the logged in user.


getPrincipalPropertyValue

public java.lang.String getPrincipalPropertyValue(java.lang.String propertyName,
                                                  boolean escapeSpecialCharacters,
                                                  boolean findLargestValue)
This method returns a propertyValue for the logged in user.


getPrincipalPropertyHashValues

public java.util.Map getPrincipalPropertyHashValues(java.lang.String propertyName,
                                                    boolean escapeSpecialCharacters)
Getting a property for a Principal - used for personalisation. This method starts with getting the property on the user and if it does not exist we check out the group-properties as well.


hasAccessTo

public boolean hasAccessTo(java.lang.String interceptionPointName)
Used by the view pages to determine if the current user has sufficient access rights to perform the action specific by the interception point name.

Parameters:
interceptionPointName - THe Name of the interception point to check access rights
Returns:
True is access is allowed, false otherwise

hasAccessTo

public boolean hasAccessTo(java.lang.String interceptionPointName,
                           java.lang.String extraParameter)
Used by the view pages to determine if the current user has sufficient access rights to perform the action specific by the interception point name.

Parameters:
interceptionPointName - THe Name of the interception point to check access rights
Returns:
True is access is allowed, false otherwise

getUserName

public java.lang.String getUserName()
Get the username for the currently logged in user


getColorScheme

public java.lang.String getColorScheme()

setColorScheme

public void setColorScheme(java.lang.String colorScheme)

encode

public java.lang.String encode(java.lang.String value)

getComponentRendererUrl

public java.lang.String getComponentRendererUrl()

getComponentRendererAction

public java.lang.String getComponentRendererAction()

getCMSBaseUrl

public java.lang.String getCMSBaseUrl()

getLocale

public java.util.Locale getLocale()

getLanguageCode

public java.lang.String getLanguageCode()

beginTransaction

public void beginTransaction(org.exolab.castor.jdo.Database db)
                      throws SystemException
Begins a transaction on the supplied database

SystemException

closeTransaction

public void closeTransaction(org.exolab.castor.jdo.Database db)
                      throws SystemException
Rollbacks a transaction on the named database

SystemException

rollbackTransaction

public void rollbackTransaction(org.exolab.castor.jdo.Database db)
                         throws SystemException
Rollbacks a transaction on the named database

SystemException

closeDatabase

public void closeDatabase(org.exolab.castor.jdo.Database db)
                   throws SystemException
Close the database

SystemException