org.alfresco.web.bean.wcm
Class AVMEditBean

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wcm.AVMEditBean
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class AVMEditBean
extends BaseDialogBean

Bean backing the edit pages for a AVM node content.

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
AVMEditBean()
           
 
Method Summary
 java.lang.String cancel()
          Deals with the cancel button being pressed on the upload file page
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 AVMNode getAvmNode()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 java.lang.String getFileName()
           
 java.lang.String getFileType16()
           
 java.lang.String getFileType32()
           
 java.lang.String getFileUploadSuccessMsg()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getFinishButtonLabel()
          Returns the label to use for the finish button
protected  FormsService getFormsService()
           
 void removeUploadedFile()
          Clear form state and upload file bean
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setFormsService(FormsService formsService)
           
 java.lang.String updateFileOK()
          Action called upon completion of the Update File page
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, 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
 

Field Detail

avmBrowseBean

protected AVMBrowseBean avmBrowseBean
Constructor Detail

AVMEditBean

public AVMEditBean()
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.

setFormsService

public void setFormsService(FormsService formsService)
Parameters:
formsService - The FormsService to set.

getFormsService

protected FormsService getFormsService()

getAvmNode

public AVMNode getAvmNode()
Returns:
Returns the current AVM node context.

getFileType32

public java.lang.String getFileType32()
Returns:
Large file icon for current AVM node

getFileType16

public java.lang.String getFileType16()
Returns:
Small file icon for current AVM node

getFileName

public java.lang.String getFileName()
Returns:
Returns the name of the file

getFileUploadSuccessMsg

public java.lang.String getFileUploadSuccessMsg()
Returns:
Returns the message to display when a file has been uploaded

updateFileOK

public java.lang.String updateFileOK()
Action called upon completion of the Update File page


cancel

public java.lang.String cancel()
Deals with the cancel button being pressed on the upload file page

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

removeUploadedFile

public void removeUploadedFile()
Clear form state and upload file bean


finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

getContainerTitle

public java.lang.String getContainerTitle()
Description copied from interface: IDialogBean
Returns the title to be used for the dialog

If this returns null the DialogManager will lookup the title via the dialog configuration

Specified by:
getContainerTitle in interface IDialogBean
Overrides:
getContainerTitle in class BaseDialogBean
Returns:
The title or null if the title is to be acquired via configuration

getFinishButtonDisabled

public boolean getFinishButtonDisabled()
Description copied from interface: IDialogBean
Determines whether the finish button on the dialog should be disabled

Specified by:
getFinishButtonDisabled in interface IDialogBean
Overrides:
getFinishButtonDisabled in class BaseDialogBean
Returns:
true if the button should be disabled

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 BaseDialogBean
Returns:
The finish button label


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