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

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

public class ViewAndCreateContentForServiceBindingAction
extends WebworkAbstractAction

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 interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewAndCreateContentForServiceBindingAction()
           
ViewAndCreateContentForServiceBindingAction(ServiceBindingVO serviceBindingVO)
           
 
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 getAvailableServiceBindingId()
           
 java.lang.Integer getBindingTypeId()
           
 java.lang.Integer getContentId()
           
 java.lang.String getCurrentAction()
           
 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 setAvailableServiceBindingId(java.lang.Integer availableServiceBindingId)
           
 void setBindingTypeId(java.lang.Integer bindingTypeId)
           
 void setPath(java.lang.String path)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setServiceBindingId(java.lang.Integer serviceBindingId)
           
 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.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

ViewAndCreateContentForServiceBindingAction

public ViewAndCreateContentForServiceBindingAction()

ViewAndCreateContentForServiceBindingAction

public ViewAndCreateContentForServiceBindingAction(ServiceBindingVO serviceBindingVO)
Method Detail

setSiteNodeVersionId

public void setSiteNodeVersionId(java.lang.Integer siteNodeVersionId)

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

setAvailableServiceBindingId

public void setAvailableServiceBindingId(java.lang.Integer availableServiceBindingId)

setServiceDefinitionId

public void setServiceDefinitionId(java.lang.Integer serviceDefinitionId)

setBindingTypeId

public void setBindingTypeId(java.lang.Integer bindingTypeId)

setPath

public void setPath(java.lang.String path)

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

getAvailableServiceBindingId

public java.lang.Integer getAvailableServiceBindingId()

getServiceDefinitionId

public java.lang.Integer getServiceDefinitionId()

getBindingTypeId

public java.lang.Integer getBindingTypeId()

setServiceBindingId

public void setServiceBindingId(java.lang.Integer serviceBindingId)

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.

Overrides:
doExecute in class WebworkAbstractAction
java.lang.Exception

getRepositories

public java.util.List getRepositories()

getContentId

public java.lang.Integer getContentId()

getLanguageId

public java.lang.Integer getLanguageId()