public class AddContentDialog extends BaseContentWizard
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
file |
protected java.util.List |
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 |
|---|---|
java.lang.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 java.lang.String |
doPostCommitProcessing(javax.faces.context.FacesContext context,
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 java.lang.String |
formatErrorMessage(java.lang.Throwable exception)
Returns a formatted exception string for the given exception
|
protected java.lang.String |
getDefaultFinishOutcome()
Returns the default finish outcome
|
java.lang.String |
getFileName() |
java.lang.String |
getFileUploadSuccessMsg() |
java.lang.String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
protected java.util.List |
getInlineEditableMimeTypes() |
void |
init(java.util.Map parameters)
Initialises the dialog bean
|
java.lang.String |
removeUploadedFile()
Action handler called when the user wishes to remove an uploaded file
|
void |
setFileName(java.lang.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, 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, getTransactionService, 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 java.util.List inlineEditableMimeTypes
protected java.io.File file
protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomejava.lang.Exceptionpublic void init(java.util.Map parameters)
IDialogBeaninit in interface IDialogBeaninit in class BaseContentWizardparameters - Map of parameters for the dialogprotected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
java.lang.String outcome)
BaseDialogBeandoPostCommitProcessing in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeprotected java.lang.String getDefaultFinishOutcome()
BaseDialogBeangetDefaultFinishOutcome in class BaseWizardBeanpublic java.lang.String getFileUploadSuccessMsg()
public java.lang.String getFileName()
getFileName in class BaseContentWizardpublic void setFileName(java.lang.String fileName)
setFileName in class BaseContentWizardfileName - The name of the filepublic void start(javax.faces.event.ActionEvent event)
public java.lang.String removeUploadedFile()
public java.lang.String cancel()
cancel in interface IDialogBeancancel in class BaseDialogBeanprotected void clearUpload()
protected java.util.List getInlineEditableMimeTypes()
public java.lang.String getFinishButtonLabel()
IDialogBeangetFinishButtonLabel in interface IDialogBeangetFinishButtonLabel in class BaseWizardBeanprotected java.lang.String formatErrorMessage(java.lang.Throwable exception)
BaseDialogBeanformatErrorMessage in class BaseDialogBeanexception - The exception that got thrownCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.