org.infoglue.cms.applications.structuretool.actions
Class ViewAndCreateContentForServiceBindingAction

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.structuretool.actions.ViewAndCreateContentForServiceBindingAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class ViewAndCreateContentForServiceBindingAction
extends InfoGlueAbstractAction

This action first checks if there is a bound content linked - if not one is created in a special folder. The content is then shown to the user for editing.

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
ViewAndCreateContentForServiceBindingAction()
           
 
Method Summary
 java.lang.String doExecute()
          We first checks if there is a bound content linked - if not one is created in a special folder and a new service binding is created to it.
 java.lang.Integer getBindingTypeId()
           
 java.lang.String getChangeStateToWorking()
           
 java.lang.Integer getContentId()
           
 java.lang.String getCurrentAction()
           
 LanguageVO getInitialLanguageVO(java.lang.Integer contentId)
           
 java.lang.Integer getLanguageId()
           
 java.util.List getRepositories()
           
 java.lang.Integer getRepositoryId()
           
 java.lang.Integer getServiceDefinitionId()
           
 ServiceDefinitionVO getSingleServiceDefinitionVO()
           
 java.lang.Integer getSiteNodeId()
           
 java.lang.Integer getSiteNodeVersionId()
           
 java.lang.String getTree()
           
 void setChangeStateToWorking(java.lang.String changeStateToWorking)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setServiceDefinitionId(java.lang.Integer serviceDefinitionId)
           
 void setSiteNodeId(java.lang.Integer siteNodeId)
           
 void setSiteNodeVersionId(java.lang.Integer siteNodeVersionId)
           
 void setTree(java.lang.String string)
           
 
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

ViewAndCreateContentForServiceBindingAction

public ViewAndCreateContentForServiceBindingAction()
Method Detail

setSiteNodeVersionId

public void setSiteNodeVersionId(java.lang.Integer siteNodeVersionId)

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

setServiceDefinitionId

public void setServiceDefinitionId(java.lang.Integer serviceDefinitionId)

getSiteNodeVersionId

public java.lang.Integer getSiteNodeVersionId()

setSiteNodeId

public void setSiteNodeId(java.lang.Integer siteNodeId)

getSiteNodeId

public java.lang.Integer getSiteNodeId()

getRepositoryId

public java.lang.Integer getRepositoryId()

getServiceDefinitionId

public java.lang.Integer getServiceDefinitionId()

getBindingTypeId

public java.lang.Integer getBindingTypeId()

getSingleServiceDefinitionVO

public ServiceDefinitionVO getSingleServiceDefinitionVO()

getTree

public java.lang.String getTree()

setTree

public void setTree(java.lang.String string)

getCurrentAction

public java.lang.String getCurrentAction()

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
We first checks if there is a bound content linked - if not one is created in a special folder and a new service binding is created to it. The content is then shown to the user for editing. Most of this method should be moved to an controller.

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

getInitialLanguageVO

public LanguageVO getInitialLanguageVO(java.lang.Integer contentId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getRepositories

public java.util.List getRepositories()

getContentId

public java.lang.Integer getContentId()

getLanguageId

public java.lang.Integer getLanguageId()

getChangeStateToWorking

public java.lang.String getChangeStateToWorking()

setChangeStateToWorking

public void setChangeStateToWorking(java.lang.String changeStateToWorking)


Copyright © 2005 InfoGlue.org All Rights Reserved.