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, title
browseBean, 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(FacesContext context,
String outcome)
Performs any post commit processing subclasses may want to provide
|
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
|
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(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, setTitle
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, next
finish, 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
finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
protected File file
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 dialogprotected String doPostCommitProcessing(FacesContext context, String outcome)
BaseDialogBean
doPostCommitProcessing
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeprotected String getDefaultFinishOutcome()
BaseDialogBean
getDefaultFinishOutcome
in class BaseWizardBean
public String getFileUploadSuccessMsg()
public String getFileName()
getFileName
in class BaseContentWizard
public void setFileName(String fileName)
setFileName
in class BaseContentWizard
fileName
- The name of the filepublic void start(ActionEvent event)
public String removeUploadedFile()
public String cancel()
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
protected void clearUpload()
public String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseWizardBean
protected String formatErrorMessage(Throwable exception)
BaseDialogBean
formatErrorMessage
in class BaseDialogBean
exception
- The exception that got thrownCopyright © 2005–2017 Alfresco Software. All rights reserved.