|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.wizard.BaseWizardBean
org.alfresco.web.bean.content.BaseContentWizard
org.alfresco.web.bean.content.CreateContentWizard
org.alfresco.web.bean.wcm.CreateWebContentWizard
public class CreateWebContentWizard
Bean implementation for the "Create Web Content Wizard" dialog
| 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, 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 |
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 the url to the preview sandbox containing the asset currently being edited. |
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 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 |
|---|
protected java.lang.String createdPath
protected java.util.List renditions
protected FormInstanceData formInstanceData
protected boolean formSelectDisabled
protected boolean startWorkflow
protected java.lang.String formDescriptionAttribute
protected AVMBrowseBean avmBrowseBean
protected FilePickerBean filePickerBean
| Constructor Detail |
|---|
public CreateWebContentWizard()
| Method Detail |
|---|
public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
avmService - The AVMService to set.protected org.alfresco.service.cmr.avm.AVMService getAvmService()
public void setAvmLockingService(org.alfresco.service.cmr.avm.locking.AVMLockingService avmLockingService)
avmLockingService - The AVMLockingService to set.protected org.alfresco.service.cmr.avm.locking.AVMLockingService getAvmLockingService()
public void setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
avmSyncService - The AVMSyncService to set.protected org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()
public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
avmBrowseBean - The AVMBrowseBean to set.public void setFilePickerBean(FilePickerBean filePickerBean)
filePickerBean - The FilePickerBean to set.public void setFormsService(FormsService formsService)
setFormsService in class CreateContentWizardformsService - The FormsService to set.protected FormsService getFormsService()
public void init(java.util.Map parameters)
IDialogBean
init in interface IDialogBeaninit in class CreateContentWizardparameters - Map of parameters for the dialogpublic java.lang.String next()
IWizardBean
next in interface IWizardBeannext in class BaseWizardBeanpublic java.lang.String back()
IWizardBean
back in interface IWizardBeanback in class BaseWizardBean
protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Exception
BaseDialogBean
finishImpl in class CreateContentWizardcontext - FacesContextoutcome - The default outcome
java.lang.Exception
protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext facesContext,
java.lang.String outcome)
BaseDialogBean
doPostCommitProcessing in class CreateContentWizardfacesContext - FacesContextoutcome - The default outcome
public boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled in interface IWizardBeangetNextButtonDisabled in class CreateContentWizard
protected void saveContent()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getFileName()
getFileName in class CreateContentWizardpublic java.lang.String getContent()
getContent in class CreateContentWizardpublic void setContent(java.lang.String content)
setContent in class CreateContentWizardcontent - The content to edit (should be clear initially)public java.util.List getFormChoices()
public java.util.List getCreateMimeTypes()
getCreateMimeTypes in class CreateContentWizardpublic java.lang.String getFormName()
getFormName in class CreateContentWizard
public Form getForm()
throws FormNotFoundException
getForm in class CreateContentWizardFormNotFoundExceptionpublic void setFormName(java.lang.String formName)
setFormName in class CreateContentWizardform - Sets the currently selected formpublic org.w3c.dom.Document getInstanceDataDocument()
getInstanceDataDocument in class CreateContentWizardpublic java.util.List getFormsList()
getFormsList in class CreateContentWizardpublic FormInstanceData getFormInstanceData()
public java.util.List getRenditions()
public java.util.List getUploadedFiles()
public int getNumberOfSubmittableFiles()
public boolean getFormSelectDisabled()
public void setFormSelectDisabled(boolean formSelectDisabled)
public void setStartWorkflow(boolean startWorkflow)
public boolean getStartWorkflow()
public boolean getSubmittable()
public java.lang.String getPreviewSandboxUrl()
public java.lang.String getSummary()
getSummary in class CreateContentWizardpublic boolean getEditMode()
public java.lang.String getFormDescriptionAttribute()
public java.lang.String getFormLabelAttribute()
public void createContentChanged(javax.faces.event.ValueChangeEvent event)
createContentChanged in class CreateContentWizard
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||