org.alfresco.web.bean.wcm
Class CreateWebContentWizard

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wizard.BaseWizardBean
          extended by org.alfresco.web.bean.content.BaseContentWizard
              extended by org.alfresco.web.bean.content.CreateContentWizard
                  extended by org.alfresco.web.bean.wcm.CreateWebContentWizard
All Implemented Interfaces:
java.io.Serializable, IDialogBean, IWizardBean
Direct Known Subclasses:
EditWebContentWizard

public class CreateWebContentWizard
extends CreateContentWizard

Bean implementation for the "Create Web Content Wizard" dialog

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
           
protected  java.lang.String createdPath
           
protected  FilePickerBean filePickerBean
           
protected  java.lang.String formDescriptionAttribute
           
protected  FormInstanceData formInstanceData
           
protected  boolean formSelectDisabled
           
protected  java.util.List renditions
           
protected  boolean startWorkflow
           
 
Fields inherited from class org.alfresco.web.bean.content.CreateContentWizard
content, createMimeTypes, formName, formProcessorSession, formsService, instanceDataDocument
 
Fields inherited from class org.alfresco.web.bean.content.BaseContentWizard
author, createdNode, description, encoding, fileName, inlineEdit, mimeType, MSG_NODE_LOCKED, objectType, objectTypes, otherPropertiesChoiceVisible, showOtherProperties, title
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
CreateWebContentWizard()
           
 
Method Summary
 java.lang.String back()
          Called when the back button is pressed by the user
 void createContentChanged(javax.faces.event.ValueChangeEvent event)
          Create content type value changed by the user
protected  java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext facesContext, java.lang.String outcome)
          Performs any post commit processing subclasses may want to provide
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
protected  org.alfresco.service.cmr.avm.locking.AVMLockingService getAvmLockingService()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
protected  org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()
           
 java.lang.String getAvmWebappName()
          Provides the url to the preview sandbox containing the asset currently being edited.
 java.lang.String getAvmWebappPrefix()
          Provides name of current WCM webApp folder.
 java.lang.String getContent()
           
 java.util.List getCreateMimeTypes()
           
 boolean getEditMode()
           
 java.lang.String getFileName()
          Overrides in order to strip an xml extension if the user entered it
 Form getForm()
           
 java.util.List getFormChoices()
           
 java.lang.String getFormDescriptionAttribute()
           
 FormInstanceData getFormInstanceData()
          Returns the generated form instance data.
 java.lang.String getFormLabelAttribute()
           
 java.lang.String getFormName()
           
 boolean getFormSelectDisabled()
           
 java.util.List getFormsList()
           
protected  FormsService getFormsService()
           
 org.w3c.dom.Document getInstanceDataDocument()
           
 boolean getNextButtonDisabled()
          Determines whether the next button on the wizard should be disabled
 int getNumberOfSubmittableFiles()
          Returns the number of submittable files which is the total number of uploaded files, renditions, and the form instance data.
 java.lang.String getPreviewSandboxUrl()
          Provides path to current WCM webApp folder.
 java.util.List getRenditions()
          Returns the generated renditions
 boolean getStartWorkflow()
           
 boolean getSubmittable()
           
 java.lang.String getSummary()
           
 java.util.List getUploadedFiles()
          Returns the files uploaded using the form
 void init(java.util.Map parameters)
          Initialises the dialog bean
 java.lang.String next()
          Called when the next button is pressed by the user
protected  void saveContent()
          Save the specified content using the currently set wizard attributes
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmLockingService(org.alfresco.service.cmr.avm.locking.AVMLockingService avmLockingService)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
           
 void setContent(java.lang.String content)
           
 void setFilePickerBean(FilePickerBean filePickerBean)
           
 void setFormName(java.lang.String formName)
           
 void setFormSelectDisabled(boolean formSelectDisabled)
           
 void setFormsService(FormsService formsService)
           
 void setStartWorkflow(boolean startWorkflow)
           
 
Methods inherited from class org.alfresco.web.bean.content.CreateContentWizard
finish, formatErrorMessage, getFinishButtonDisabled, getFormProcessorSession, setFormProcessorSession
 
Methods inherited from class org.alfresco.web.bean.content.BaseContentWizard
getAuthor, getContentService, getDescription, getEncoding, getEncodings, getMimeType, getObjectType, getObjectTypes, getOtherPropertiesChoiceVisible, getShowOtherProperties, getSummaryMimeType, getSummaryObjectType, getTitle, initOtherProperties, isInlineEdit, saveContent, setAuthor, setContentService, setDescription, setEncoding, setFileName, setInlineEdit, setMimeType, setObjectType, setShowOtherProperties, setTitle
 
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean
buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean
cancel, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
 

Field Detail

createdPath

protected java.lang.String createdPath

renditions

protected java.util.List renditions

formInstanceData

protected FormInstanceData formInstanceData

formSelectDisabled

protected boolean formSelectDisabled

startWorkflow

protected boolean startWorkflow

formDescriptionAttribute

protected java.lang.String formDescriptionAttribute

avmBrowseBean

protected AVMBrowseBean avmBrowseBean

filePickerBean

protected FilePickerBean filePickerBean
Constructor Detail

CreateWebContentWizard

public CreateWebContentWizard()
Method Detail

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The AVMService to set.

getAvmService

protected org.alfresco.service.cmr.avm.AVMService getAvmService()

setAvmLockingService

public void setAvmLockingService(org.alfresco.service.cmr.avm.locking.AVMLockingService avmLockingService)
Parameters:
avmLockingService - The AVMLockingService to set.

getAvmLockingService

protected org.alfresco.service.cmr.avm.locking.AVMLockingService getAvmLockingService()

setAvmSyncService

public void setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
Parameters:
avmSyncService - The AVMSyncService to set.

getAvmSyncService

protected org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Parameters:
avmBrowseBean - The AVMBrowseBean to set.

setFilePickerBean

public void setFilePickerBean(FilePickerBean filePickerBean)
Parameters:
filePickerBean - The FilePickerBean to set.

setFormsService

public void setFormsService(FormsService formsService)
Overrides:
setFormsService in class CreateContentWizard
Parameters:
formsService - The FormsService to set.

getFormsService

protected FormsService getFormsService()

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class CreateContentWizard
Parameters:
parameters - Map of parameters for the dialog

next

public java.lang.String next()
Description copied from interface: IWizardBean
Called when the next button is pressed by the user

Specified by:
next in interface IWizardBean
Overrides:
next in class BaseWizardBean
Returns:
Reserved for future use

back

public java.lang.String back()
Description copied from interface: IWizardBean
Called when the back button is pressed by the user

Specified by:
back in interface IWizardBean
Overrides:
back in class BaseWizardBean
Returns:
Reserved for future use

finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Overrides:
finishImpl in class CreateContentWizard
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

doPostCommitProcessing

protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext facesContext,
                                                  java.lang.String outcome)
Description copied from class: BaseDialogBean
Performs any post commit processing subclasses may want to provide

Overrides:
doPostCommitProcessing in class CreateContentWizard
Parameters:
facesContext - FacesContext
outcome - The default outcome
Returns:
The outcome

getNextButtonDisabled

public boolean getNextButtonDisabled()
Description copied from interface: IWizardBean
Determines whether the next button on the wizard should be disabled

Specified by:
getNextButtonDisabled in interface IWizardBean
Overrides:
getNextButtonDisabled in class CreateContentWizard
Returns:
true if the button should be disabled

saveContent

protected void saveContent()
                    throws java.lang.Exception
Save the specified content using the currently set wizard attributes

Throws:
java.lang.Exception

getFileName

public java.lang.String getFileName()
Overrides in order to strip an xml extension if the user entered it

Overrides:
getFileName in class CreateContentWizard
Returns:
Returns the name of the file

getContent

public java.lang.String getContent()
Overrides:
getContent in class CreateContentWizard
Returns:
Returns the content from the edited form.

setContent

public void setContent(java.lang.String content)
Overrides:
setContent in class CreateContentWizard
Parameters:
content - The content to edit (should be clear initially)

getFormChoices

public java.util.List getFormChoices()
Returns:
the available forms from this web project that can be created.

getCreateMimeTypes

public java.util.List getCreateMimeTypes()
Overrides:
getCreateMimeTypes in class CreateContentWizard
Returns:
Returns a list of mime types to allow the user to select from

getFormName

public java.lang.String getFormName()
Overrides:
getFormName in class CreateContentWizard
Returns:
the current seleted form's name or null.

getForm

public Form getForm()
             throws FormNotFoundException
Overrides:
getForm in class CreateContentWizard
Throws:
FormNotFoundException

setFormName

public void setFormName(java.lang.String formName)
Overrides:
setFormName in class CreateContentWizard
Parameters:
form - Sets the currently selected form

getInstanceDataDocument

public org.w3c.dom.Document getInstanceDataDocument()
Overrides:
getInstanceDataDocument in class CreateContentWizard
Returns:
Returns the wrapper instance data for feeding the xml content to the form processor.

getFormsList

public java.util.List getFormsList()
Overrides:
getFormsList in class CreateContentWizard
Returns:
List of UI items to represent the full list of available Web Forms

getFormInstanceData

public FormInstanceData getFormInstanceData()
Returns the generated form instance data.


getRenditions

public java.util.List getRenditions()
Returns the generated renditions


getUploadedFiles

public java.util.List getUploadedFiles()
Returns the files uploaded using the form


getNumberOfSubmittableFiles

public int getNumberOfSubmittableFiles()
Returns the number of submittable files which is the total number of uploaded files, renditions, and the form instance data.


getFormSelectDisabled

public boolean getFormSelectDisabled()

setFormSelectDisabled

public void setFormSelectDisabled(boolean formSelectDisabled)

setStartWorkflow

public void setStartWorkflow(boolean startWorkflow)

getStartWorkflow

public boolean getStartWorkflow()

getSubmittable

public boolean getSubmittable()

getPreviewSandboxUrl

public java.lang.String getPreviewSandboxUrl()
Provides path to current WCM webApp folder.


getAvmWebappPrefix

public java.lang.String getAvmWebappPrefix()
Provides name of current WCM webApp folder.


getAvmWebappName

public java.lang.String getAvmWebappName()
Provides the url to the preview sandbox containing the asset currently being edited.


getSummary

public java.lang.String getSummary()
Overrides:
getSummary in class CreateContentWizard
Returns:
Returns the summary data for the wizard.

getEditMode

public boolean getEditMode()

getFormDescriptionAttribute

public java.lang.String getFormDescriptionAttribute()

getFormLabelAttribute

public java.lang.String getFormLabelAttribute()

createContentChanged

public void createContentChanged(javax.faces.event.ValueChangeEvent event)
Create content type value changed by the user

Overrides:
createContentChanged in class CreateContentWizard


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.