public class CreateContentWizard extends BaseContentWizard
Modifier and Type | Field and Description |
---|---|
protected String |
content |
protected List<SelectItem> |
createMimeTypes |
author, createdNode, description, encoding, fileName, inlineEdit, mimeType, MSG_NODE_LOCKED, objectType, objectTypes, otherPropertiesChoiceVisible, showOtherProperties, title
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
CreateContentWizard() |
Modifier and Type | Method and Description |
---|---|
void |
createContentChanged(ValueChangeEvent event)
Create content type value changed by the user
|
protected String |
doPostCommitProcessing(FacesContext context,
String outcome)
Performs any post commit processing subclasses may want to provide
|
String |
finish()
Method handler called when the finish button of the dialog is pressed
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected String |
formatErrorMessage(Throwable exception)
Returns a formatted exception string for the given exception
|
String |
getContent() |
List<SelectItem> |
getCreateMimeTypes() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled
|
String |
getSummary() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
void |
setContent(String content) |
getAuthor, getContentService, getDescription, getEncoding, getEncodings, getFileName, getMimeType, getObjectType, getObjectTypes, getOtherPropertiesChoiceVisible, getShowOtherProperties, getSummaryMimeType, getSummaryObjectType, getTitle, getTransactionService, initOtherProperties, isInlineEdit, saveContent, setAuthor, setContentService, setDescription, setEncoding, setFileName, setInlineEdit, setMimeType, setObjectType, setShowOtherProperties, setTitle
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle, next
cancel, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
protected String content
protected List<SelectItem> createMimeTypes
public String finish()
IDialogBean
finish
in interface IDialogBean
finish
in class BaseDialogBean
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public void init(Map<String,String> parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseContentWizard
parameters
- Map of parameters for the dialogpublic boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled
in interface IWizardBean
getNextButtonDisabled
in class BaseWizardBean
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseContentWizard
protected String doPostCommitProcessing(FacesContext context, String outcome)
BaseDialogBean
doPostCommitProcessing
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomepublic String getContent()
public void setContent(String content)
content
- The content to edit (should be clear initially)public List<SelectItem> getCreateMimeTypes()
public String getSummary()
public void createContentChanged(ValueChangeEvent event)
protected String formatErrorMessage(Throwable exception)
BaseDialogBean
formatErrorMessage
in class BaseDialogBean
exception
- The exception that got thrownCopyright © 2005–2017 Alfresco Software. All rights reserved.