org.alfresco.web.bean.coci
Class CancelEditingDialog

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.CancelEditingDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class CancelEditingDialog
extends CheckinCheckoutDialog

See Also:
Serialized Form

Field Summary
static java.lang.String MSG_CANCEL_EDITING
           
static java.lang.String MSG_CANCEL_EDITING_FOR
           
 
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
CancelEditingDialog()
           
 
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
protected  java.lang.String getDefaultCancelOutcome()
          Returns the default cancel outcome
protected  java.lang.String getDefaultFinishOutcome()
          Returns the default finish outcome
 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 undoCheckoutFile(javax.faces.context.FacesContext context, java.lang.String outcome)
          Action to undo the checkout of a locked document.
 
Methods inherited from class org.alfresco.web.bean.coci.CheckinCheckoutDialog
cancel, checkinFileOK, clearUpload, editFile, editInline, getBrowseBean, getFileName, getFileUploadSuccessMsg, isVersionable, removeUploadedFile, resetState, setBrowseBean, setFileName, setNavigator, setProperty, setupContentAction, setupContentDocument, setupWorkflowContentAction, undoCheckout, updateFileOK
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, 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
 

Field Detail

MSG_CANCEL_EDITING

public static final java.lang.String MSG_CANCEL_EDITING
See Also:
Constant Field Values

MSG_CANCEL_EDITING_FOR

public static final java.lang.String MSG_CANCEL_EDITING_FOR
See Also:
Constant Field Values
Constructor Detail

CancelEditingDialog

public CancelEditingDialog()
Method Detail

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

getDefaultCancelOutcome

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

Overrides:
getDefaultCancelOutcome in class BaseDialogBean
Returns:
Default close outcome, dialog:close by default

getDefaultFinishOutcome

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

Overrides:
getDefaultFinishOutcome in class BaseDialogBean
Returns:
Default finish outcome, dialog:close by default

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

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

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

undoCheckoutFile

public java.lang.String undoCheckoutFile(javax.faces.context.FacesContext context,
                                         java.lang.String outcome)
Action to undo the checkout of a locked document. This document may either by the original copy or the working copy node. Therefore calculate which it is, if the working copy is found then we simply cancel checkout on that document. If the original copy is found then we need to find the appropriate working copy and perform the action on that node.



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