org.alfresco.web.bean.wcm
Class LinkValidationDialog

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

public class LinkValidationDialog
extends BaseDialogBean

Implementation of the link validation dialog. The dialog is in one of 2 modes, either running a report showing progress or showing the results of an executed link check.

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
LinkValidationDialog()
           
 
Method Summary
protected  void executeReport()
           
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
protected  org.alfresco.service.cmr.action.ActionService getActionService()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
 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
 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 getInitialTab()
           
 boolean getRunningReport()
           
 boolean getSectionsExpanded()
           
 boolean getShowingReport()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 java.lang.String linkCheckCompleted()
           
 void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
           
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setInitialTab(java.lang.String initialTab)
           
 void setSectionsExpanded(boolean sectionsExpanded)
           
 void toggleSections(javax.faces.event.ActionEvent event)
           
 java.lang.String updateStatus()
          Sets up the dialog to update the status and display the differences
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, 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
 

Field Detail

avmBrowseBean

protected AVMBrowseBean avmBrowseBean
Constructor Detail

LinkValidationDialog

public LinkValidationDialog()
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

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

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

linkCheckCompleted

public java.lang.String linkCheckCompleted()

toggleSections

public void toggleSections(javax.faces.event.ActionEvent event)

updateStatus

public java.lang.String updateStatus()
Sets up the dialog to update the status and display the differences

Returns:
The outcome, null to stay on this page

executeReport

protected void executeReport()

getRunningReport

public boolean getRunningReport()
Returns:
true if the dialog is currently running a report

getShowingReport

public boolean getShowingReport()
Returns:
true if the dialog is currently showing a report

getSectionsExpanded

public boolean getSectionsExpanded()
Returns:
true if the broken links and generated files section are expanded

setSectionsExpanded

public void setSectionsExpanded(boolean sectionsExpanded)
Parameters:
sectionsExpanded - true if the broken links and generated files section are expanded

getInitialTab

public java.lang.String getInitialTab()
Returns:
The initial tab to be selected

setInitialTab

public void setInitialTab(java.lang.String initialTab)
Parameters:
initialTab - Sets the initial tab to be selected

setAvmBrowseBean

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

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)

getAvmService

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

setActionService

public void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
Parameters:
actionService - The actionService to set.

getActionService

protected org.alfresco.service.cmr.action.ActionService getActionService()


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