public class AddContentDialog extends BaseContentWizard
| Modifier and Type | Field and Description |
|---|---|
protected File |
file |
protected List<String> |
inlineEditableMimeTypes |
author, createdNode, description, encoding, fileName, inlineEdit, logger, mimeType, MSG_NODE_LOCKED, objectType, objectTypes, otherPropertiesChoiceVisible, showOtherProperties, titlebrowseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
AddContentDialog() |
| Modifier and Type | Method and Description |
|---|---|
String |
cancel()
Action handler called when the dialog is cancelled
|
protected void |
clearUpload()
Deletes the uploaded file and removes the FileUploadBean from the session
|
protected String |
doPostCommitProcessing(javax.faces.context.FacesContext context,
String outcome)
Performs any post commit processing subclasses may want to provide
|
protected String |
finishImpl(javax.faces.context.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
|
protected String |
getDefaultFinishOutcome()
Returns the default finish outcome
|
String |
getFileName() |
String |
getFileUploadSuccessMsg() |
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
protected List<String> |
getInlineEditableMimeTypes() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
String |
removeUploadedFile()
Action handler called when the user wishes to remove an uploaded file
|
void |
setFileName(String fileName) |
void |
start(javax.faces.event.ActionEvent event)
Action listener called when the add content dialog is called
|
getAuthor, getContentService, getDescription, getEncoding, getEncodings, getFinishButtonDisabled, getMimeType, getObjectType, getObjectTypes, getOtherPropertiesChoiceVisible, getShowOtherProperties, getSummaryMimeType, getSummaryObjectType, getTitle, getTransactionService, initOtherProperties, isInlineEdit, saveContent, setAuthor, setContentService, setDescription, setEncoding, setInlineEdit, setMimeType, setObjectType, setShowOtherProperties, setTitleback, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, nextfinish, 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, setSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restoredprotected File file
protected String finishImpl(javax.faces.context.FacesContext context, String outcome) throws Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeExceptionpublic void init(Map<String,String> parameters)
IDialogBeaninit in interface IDialogBeaninit in class BaseContentWizardparameters - Map of parameters for the dialogprotected String doPostCommitProcessing(javax.faces.context.FacesContext context, String outcome)
BaseDialogBeandoPostCommitProcessing in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeprotected String getDefaultFinishOutcome()
BaseDialogBeangetDefaultFinishOutcome in class BaseWizardBeanpublic String getFileUploadSuccessMsg()
public String getFileName()
getFileName in class BaseContentWizardpublic void setFileName(String fileName)
setFileName in class BaseContentWizardfileName - The name of the filepublic void start(javax.faces.event.ActionEvent event)
public String removeUploadedFile()
public String cancel()
cancel in interface IDialogBeancancel in class BaseDialogBeanprotected void clearUpload()
public String getFinishButtonLabel()
IDialogBeangetFinishButtonLabel in interface IDialogBeangetFinishButtonLabel in class BaseWizardBeanprotected String formatErrorMessage(Throwable exception)
BaseDialogBeanformatErrorMessage in class BaseDialogBeanexception - The exception that got thrownCopyright © 2005–2018 Alfresco Software. All rights reserved.