org.alfresco.web.bean.coci
Class DoneEditingDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.coci.CheckinCheckoutDialog
          extended by org.alfresco.web.bean.coci.DoneEditingDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean
Direct Known Subclasses:
UploadNewVersionDialog

public class DoneEditingDialog
extends CheckinCheckoutDialog

This bean class handle done-editing(commit) dialog.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.coci.CheckinCheckoutDialog
FILE, MSG_ERROR_CANCELCHECKOUT, MSG_ERROR_CHECKIN, MSG_ERROR_CHECKOUT, MSG_ERROR_UPDATE, property
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
DoneEditingDialog()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 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
 java.lang.String getMajorNewVersionLabel()
           
 java.lang.String getMinorNewVersionLabel()
           
 void handle(javax.faces.event.ActionEvent event)
          Method for handling done-editing action(e.g.
 boolean isSourceFound()
           
 boolean isSourceVersionable()
           
 void resetState()
          Clear form state and upload file bean
 void setupContentAction(javax.faces.event.ActionEvent event)
          Action event called by all actions that need to setup a Content Document context on the CheckinCheckoutDialog before an action page/wizard is called.
 
Methods inherited from class org.alfresco.web.bean.coci.CheckinCheckoutDialog
cancel, checkinFileOK, clearUpload, editFile, editInline, getBrowseBean, getFileName, getFileUploadSuccessMsg, isVersionable, removeUploadedFile, setBrowseBean, setFileName, setNavigator, setProperty, setupContentDocument, setupWorkflowContentAction, undoCheckout, updateFileOK
 
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, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoneEditingDialog

public DoneEditingDialog()
Method Detail

getMajorNewVersionLabel

public java.lang.String getMajorNewVersionLabel()
Returns:
Returns label for new version with major changes

getMinorNewVersionLabel

public java.lang.String getMinorNewVersionLabel()
Returns:
Returns label for new version with minor changes

isSourceVersionable

public boolean isSourceVersionable()
Returns:
Returns flag, which indicates occurrence when source node is versionable

isSourceFound

public boolean isSourceFound()
Returns:
Returns true if source node for selected working copy founded

handle

public void handle(javax.faces.event.ActionEvent event)
Method for handling done-editing action(e.g. "done_editing_doc")

Parameters:
event - Action Event

setupContentAction

public void setupContentAction(javax.faces.event.ActionEvent event)
Description copied from class: CheckinCheckoutDialog
Action event called by all actions that need to setup a Content Document context on the CheckinCheckoutDialog before an action page/wizard is called. The context will be a Node in setDocument() which can be retrieved on action pages via getDocument().

Overrides:
setupContentAction in class CheckinCheckoutDialog
Parameters:
event - ActionEvent

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

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 CheckinCheckoutDialog
Returns:
true if the button should be disabled

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 CheckinCheckoutDialog
Returns:
The title or null if the title is to be acquired via configuration

resetState

public void resetState()
Description copied from class: CheckinCheckoutDialog
Clear form state and upload file bean

Overrides:
resetState in class CheckinCheckoutDialog

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

Overrides:
finishImpl in class CheckinCheckoutDialog
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception


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