Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.contentbrowser
Class WorkspaceActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.base.InputController
      extended by org.nuxeo.ecm.webapp.contentbrowser.WorkspaceActionsBean
All Implemented Interfaces:
java.io.Serializable, StatefulBaseLifeCycle, WorkspaceActions

@Name(value="workspaceActions")
@Scope(value=CONVERSATION)
public class WorkspaceActionsBean
extends InputController
implements WorkspaceActions, java.io.Serializable

Action listener that deals with operations with the workspaces.

This action listener handles the workspace creation wizard.

Author:
Razvan Caraghin
See Also:
Serialized Form

Constructor Summary
WorkspaceActionsBean()
           
 
Method Summary
 java.lang.String cancel()
           
 java.lang.String createWorkspace()
           
 java.lang.String createWorkspaceOld()
           
 void destroy()
           
 java.lang.String exitWizard()
           
 ContextStringWrapper FactoryForSelectedTemplateId()
           
 ContextStringWrapper FactoryForSelectSecurityModel()
           
 ContextStringWrapper FactoryForSelectSecurityOwner()
           
 java.lang.String finishPageFlow()
           
 java.lang.String getA4JHackingURL()
           
 DocumentModel getSelectedTemplate()
           
 java.lang.String getSelectedTemplateDescription()
           
 DocumentModelList getTemplates()
           
 DocumentModel getTmpWorkspace()
           
 java.lang.Boolean getUseTemplate()
           
 void initialize()
           
 void readState()
          Activate method.
 void saveState()
          Passivate method.
 void setUseTemplate(java.lang.Boolean value)
           
 
Methods inherited from class org.nuxeo.ecm.webapp.base.InputController
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.webapp.contentbrowser.WorkspaceActions
getAdministrator
 

Constructor Detail

WorkspaceActionsBean

public WorkspaceActionsBean()
Method Detail

initialize

@Create
public void initialize()
Specified by:
initialize in interface WorkspaceActions

destroy

@Destroy
public void destroy()
Specified by:
destroy in interface WorkspaceActions

cancel

public java.lang.String cancel()

saveState

public void saveState()
Description copied from interface: StatefulBaseLifeCycle
Passivate method.

Specified by:
saveState in interface StatefulBaseLifeCycle

readState

public void readState()
Description copied from interface: StatefulBaseLifeCycle
Activate method.

Specified by:
readState in interface StatefulBaseLifeCycle

setUseTemplate

public void setUseTemplate(java.lang.Boolean value)
Specified by:
setUseTemplate in interface WorkspaceActions

getUseTemplate

public java.lang.Boolean getUseTemplate()
Specified by:
getUseTemplate in interface WorkspaceActions

FactoryForSelectedTemplateId

@Factory(value="selectedTemplateId")
public ContextStringWrapper FactoryForSelectedTemplateId()
Specified by:
FactoryForSelectedTemplateId in interface WorkspaceActions

FactoryForSelectSecurityModel

@Factory(value="selectedSecurityModel")
public ContextStringWrapper FactoryForSelectSecurityModel()
Specified by:
FactoryForSelectSecurityModel in interface WorkspaceActions

FactoryForSelectSecurityOwner

@Factory(value="selectedOwnerModel")
public ContextStringWrapper FactoryForSelectSecurityOwner()
Specified by:
FactoryForSelectSecurityOwner in interface WorkspaceActions

getTmpWorkspace

@Begin(pageflow="createWorkspace",
       nested=true)
@Factory(value="tmpWorkspace")
public DocumentModel getTmpWorkspace()
Specified by:
getTmpWorkspace in interface WorkspaceActions

getTemplates

@Factory(value="availableWorkspaceTemplates")
public DocumentModelList getTemplates()
                               throws ClientException
Specified by:
getTemplates in interface WorkspaceActions
Throws:
ClientException

finishPageFlow

public java.lang.String finishPageFlow()
Specified by:
finishPageFlow in interface WorkspaceActions

getSelectedTemplateDescription

public java.lang.String getSelectedTemplateDescription()
Specified by:
getSelectedTemplateDescription in interface WorkspaceActions

getSelectedTemplate

public DocumentModel getSelectedTemplate()
Specified by:
getSelectedTemplate in interface WorkspaceActions

createWorkspace

@End
public java.lang.String createWorkspace()
                                 throws ClientException
Specified by:
createWorkspace in interface WorkspaceActions
Throws:
ClientException

createWorkspaceOld

@End(beforeRedirect=true)
public java.lang.String createWorkspaceOld()
                                    throws ClientException
Throws:
ClientException

exitWizard

@End(beforeRedirect=true)
public java.lang.String exitWizard()
                            throws ClientException
Specified by:
exitWizard in interface WorkspaceActions
Throws:
ClientException

getA4JHackingURL

public java.lang.String getA4JHackingURL()
Specified by:
getA4JHackingURL in interface WorkspaceActions

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.