org.alfresco.web.bean.coci
Class EditOfflineDialog

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

public class EditOfflineDialog
extends CheckinCheckoutDialog

See Also:
Serialized Form

Field Summary
static java.lang.String CLOSE
           
static java.lang.String MSG_ERROR_CHECKOUT
           
static java.lang.String OFFLINE_EDITING
           
static java.lang.String OFFLINE_TITLE
           
protected  UserPreferencesBean userPreferencesBean
           
 
Fields inherited from class org.alfresco.web.bean.coci.CheckinCheckoutDialog
FILE, MSG_ERROR_CANCELCHECKOUT, MSG_ERROR_CHECKIN, MSG_ERROR_UPDATE, property
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
EditOfflineDialog()
           
 
Method Summary
 java.lang.String cancel()
          Deals with the cancel button being pressed on the check in file page
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 UserPreferencesBean getUserPreferencesBean()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 boolean isContinueCountdown()
           
 void restored()
          Called when the dialog is restored after a nested dialog is closed
 void setContinueCountdown(boolean continueCountdown)
           
 void setupContentAction(javax.faces.event.ActionEvent event)
          Action listener for handle offline editing action.
 void setUserPreferencesBean(UserPreferencesBean userPreferencesBean)
           
 
Methods inherited from class org.alfresco.web.bean.coci.CheckinCheckoutDialog
checkinFileOK, clearUpload, editFile, editInline, getBrowseBean, getFileName, getFileUploadSuccessMsg, getFinishButtonDisabled, getFinishButtonLabel, isVersionable, removeUploadedFile, resetState, setBrowseBean, setFileName, setNavigator, setProperty, setupContentDocument, setupWorkflowContentAction, undoCheckout, updateFileOK
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, 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

OFFLINE_EDITING

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

CLOSE

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

MSG_ERROR_CHECKOUT

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

OFFLINE_TITLE

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

userPreferencesBean

protected UserPreferencesBean userPreferencesBean
Constructor Detail

EditOfflineDialog

public EditOfflineDialog()
Method Detail

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class BaseDialogBean
Parameters:
parameters - Map of parameters for the dialog

restored

public void restored()
Description copied from interface: IDialogBean
Called when the dialog is restored after a nested dialog is closed

Specified by:
restored in interface IDialogBean
Overrides:
restored in class BaseDialogBean

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

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

getCancelButtonLabel

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

Specified by:
getCancelButtonLabel in interface IDialogBean
Overrides:
getCancelButtonLabel in class BaseDialogBean
Returns:
The cancel button label

setupContentAction

public void setupContentAction(javax.faces.event.ActionEvent event)
Action listener for handle offline editing action. E.g "edit_doc_offline" action

Overrides:
setupContentAction in class CheckinCheckoutDialog
Parameters:
event - ActionEvent

cancel

public java.lang.String cancel()
Description copied from class: CheckinCheckoutDialog
Deals with the cancel button being pressed on the check in file page

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

getUserPreferencesBean

public UserPreferencesBean getUserPreferencesBean()
Returns:
userPreferencesBean bean with current user's preferences

setUserPreferencesBean

public void setUserPreferencesBean(UserPreferencesBean userPreferencesBean)
Parameters:
userPreferencesBean - bean with current user's preferences to set

isContinueCountdown

public boolean isContinueCountdown()
Returns:
continueCountdown

setContinueCountdown

public void setContinueCountdown(boolean continueCountdown)
Parameters:
continueCountdown -


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