|
|||||||||
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.AddContentDialog
public class AddContentDialog
Bean implementation for the "Add Content" dialog
Field Summary | |
---|---|
protected java.io.File |
file
|
protected java.util.List |
inlineEditableMimeTypes
|
Fields inherited from class org.alfresco.web.bean.content.BaseContentWizard |
---|
author, createdNode, description, encoding, fileName, inlineEdit, logger, mimeType, MSG_NODE_LOCKED, objectType, objectTypes, otherPropertiesChoiceVisible, showOtherProperties, title |
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
AddContentDialog()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.alfresco.web.bean.content.BaseContentWizard |
---|
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, setTitle |
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean |
---|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getNextButtonDisabled, 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 |
---|
finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored |
Field Detail |
---|
protected java.util.List inlineEditableMimeTypes
protected java.io.File file
Constructor Detail |
---|
public AddContentDialog()
Method Detail |
---|
protected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
public void init(java.util.Map parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseContentWizard
parameters
- Map of parameters for the dialogprotected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context, java.lang.String outcome)
BaseDialogBean
doPostCommitProcessing
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
protected java.lang.String getDefaultFinishOutcome()
BaseDialogBean
getDefaultFinishOutcome
in class BaseWizardBean
public java.lang.String getFileUploadSuccessMsg()
public java.lang.String getFileName()
getFileName
in class BaseContentWizard
public void setFileName(java.lang.String fileName)
setFileName
in class BaseContentWizard
fileName
- 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 IDialogBean
cancel
in class BaseDialogBean
protected void clearUpload()
protected java.util.List getInlineEditableMimeTypes()
public java.lang.String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseWizardBean
protected java.lang.String formatErrorMessage(java.lang.Throwable exception)
BaseDialogBean
formatErrorMessage
in class BaseDialogBean
exception
- The exception that got thrown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |