|
|||||||||
| 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
public class CreateContentWizard
Bean implementation for the "Create Content Wizard" dialog
| Field Summary | |
|---|---|
protected java.lang.String |
content
|
protected java.util.List |
createMimeTypes
|
protected java.lang.String |
formName
|
protected FormProcessor.Session |
formProcessorSession
|
protected FormsService |
formsService
|
protected org.w3c.dom.Document |
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 | |
|---|---|
CreateContentWizard()
|
|
| Method Summary | |
|---|---|
void |
createContentChanged(javax.faces.event.ValueChangeEvent event)
Create content type value changed by the user |
protected java.lang.String |
doPostCommitProcessing(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs any post commit processing subclasses may want to provide |
java.lang.String |
finish()
Method handler called when the finish button of the dialog is pressed |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard. |
protected java.lang.String |
formatErrorMessage(java.lang.Throwable exception)
Returns a formatted exception string for the given exception |
java.lang.String |
getContent()
|
java.util.List |
getCreateMimeTypes()
|
java.lang.String |
getFileName()
Overrides in order to strip an xml extension if the user entered it |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled |
Form |
getForm()
|
java.lang.String |
getFormName()
|
FormProcessor.Session |
getFormProcessorSession()
|
java.util.List |
getFormsList()
|
org.w3c.dom.Document |
getInstanceDataDocument()
|
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled |
java.lang.String |
getSummary()
|
void |
init(java.util.Map parameters)
Initialises the dialog bean |
void |
setContent(java.lang.String content)
|
void |
setFormName(java.lang.String formName)
|
void |
setFormProcessorSession(FormProcessor.Session formProcessorSession)
|
void |
setFormsService(FormsService formsService)
|
| 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 |
|---|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, next |
| 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 content
protected java.util.List createMimeTypes
protected transient FormsService formsService
protected java.lang.String formName
protected FormProcessor.Session formProcessorSession
protected transient org.w3c.dom.Document instanceDataDocument
| Constructor Detail |
|---|
public CreateContentWizard()
| Method Detail |
|---|
public void setFormsService(FormsService formsService)
formsService - The FormsService to set.public java.lang.String finish()
IDialogBean
finish in interface IDialogBeanfinish in class BaseDialogBean
protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Exception
BaseDialogBean
finishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcome
java.lang.Exceptionpublic void init(java.util.Map parameters)
IDialogBean
init in interface IDialogBeaninit in class BaseContentWizardparameters - Map of parameters for the dialogpublic boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled in interface IWizardBeangetNextButtonDisabled in class BaseWizardBeanpublic boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseContentWizard
protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
java.lang.String outcome)
BaseDialogBean
doPostCommitProcessing in class BaseDialogBeancontext - FacesContextoutcome - The default outcome
public java.lang.String getContent()
public void setContent(java.lang.String content)
content - The content to edit (should be clear initially)public java.util.List getCreateMimeTypes()
public java.lang.String getSummary()
public java.util.List getFormsList()
public java.lang.String getFormName()
public void setFormName(java.lang.String formName)
public Form getForm()
throws FormNotFoundException
FormNotFoundExceptionpublic FormProcessor.Session getFormProcessorSession()
public void setFormProcessorSession(FormProcessor.Session formProcessorSession)
public org.w3c.dom.Document getInstanceDataDocument()
public java.lang.String getFileName()
getFileName in class BaseContentWizardpublic void createContentChanged(javax.faces.event.ValueChangeEvent event)
protected java.lang.String formatErrorMessage(java.lang.Throwable exception)
BaseDialogBean
formatErrorMessage in class BaseDialogBeanexception - The exception that got thrown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||