org.alfresco.web.bean.wcm
Class AddAvmContentDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wizard.BaseWizardBean
          extended by org.alfresco.web.bean.content.BaseContentWizard
              extended by org.alfresco.web.bean.content.AddContentDialog
                  extended by org.alfresco.web.bean.wcm.AddAvmContentDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean, IWizardBean

public class AddAvmContentDialog
extends AddContentDialog

Add/upload content dialog for AVM browse screens.

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
          AVM Browse Bean reference
protected  java.lang.String path
           
 
Fields inherited from class org.alfresco.web.bean.content.AddContentDialog
file, 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
AddAvmContentDialog()
           
 
Method Summary
 java.lang.String cancel()
          Action handler called when the dialog is cancelled
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  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
protected  java.lang.String getDefaultFinishOutcome()
          Returns the default finish outcome
 java.lang.String getFinishButtonLabel()
          Returns the label to use for the finish button
protected  void saveContent(java.io.File fileContent, java.lang.String strContent)
          Save the specified content using the currently set wizard attributes
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 
Methods inherited from class org.alfresco.web.bean.content.AddContentDialog
clearUpload, finishImpl, formatErrorMessage, getFileName, getFileUploadSuccessMsg, getInlineEditableMimeTypes, init, removeUploadedFile, setFileName, start
 
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, 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 org.alfresco.web.bean.dialog.BaseDialogBean
finish, 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, setSearchService
 
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

avmBrowseBean

protected AVMBrowseBean avmBrowseBean
AVM Browse Bean reference


path

protected java.lang.String path
Constructor Detail

AddAvmContentDialog

public AddAvmContentDialog()
Method Detail

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The AVMService to set.

getAvmService

protected org.alfresco.service.cmr.avm.AVMService getAvmService()

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Parameters:
avmBrowseBean - The AVMBrowseBean to set.

saveContent

protected void saveContent(java.io.File fileContent,
                           java.lang.String strContent)
                    throws java.lang.Exception
Save the specified content using the currently set wizard attributes

Overrides:
saveContent in class BaseContentWizard
Parameters:
fileContent - File content to save
strContent - String content to save
Throws:
java.lang.Exception

doPostCommitProcessing

protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
                                                  java.lang.String outcome)
Description copied from class: BaseDialogBean
Performs any post commit processing subclasses may want to provide

Overrides:
doPostCommitProcessing in class AddContentDialog
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
See Also:
AddContentDialog.doPostCommitProcessing(javax.faces.context.FacesContext, java.lang.String)

getDefaultFinishOutcome

protected java.lang.String getDefaultFinishOutcome()
Description copied from class: BaseDialogBean
Returns the default finish outcome

Overrides:
getDefaultFinishOutcome in class AddContentDialog
Returns:
Default finish outcome, dialog:close by default
See Also:
AddContentDialog.getDefaultFinishOutcome()

cancel

public java.lang.String cancel()
Description copied from class: AddContentDialog
Action handler called when the dialog is cancelled

Specified by:
cancel in interface IDialogBean
Overrides:
cancel in class AddContentDialog
Returns:
The outcome to return

getFinishButtonLabel

public java.lang.String getFinishButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the finish button

Specified by:
getFinishButtonLabel in interface IDialogBean
Overrides:
getFinishButtonLabel in class AddContentDialog
Returns:
The finish button label


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.