org.alfresco.web.bean.wcm
Class CompareSnapshotDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wcm.CompareSnapshotDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean
Direct Known Subclasses:
CompareToAnySnapshotDialog, CompareToCurrentSnapshotDialog, CompareToPreviousSnapshotDialog

public abstract class CompareSnapshotDialog
extends BaseDialogBean

Base class for AVMCompare dialogs

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
           
protected  boolean finished
           
protected  java.lang.String sandbox
           
protected  java.lang.String store
           
protected  java.lang.String storeRoot
           
protected  int version
           
protected  org.alfresco.service.cmr.repository.NodeRef webProjectRef
           
protected  org.alfresco.service.cmr.repository.NodeRef websiteRef
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
CompareSnapshotDialog()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 AVMBrowseBean getAvmBrowseBean()
          Getter for avmBrowseBean
 org.alfresco.service.cmr.avm.AVMService getAvmService()
          Getter for avmService service
 org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()
          Getter for avmSyncService service
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
abstract  java.util.List getComparedNodes()
           
 java.lang.String getContainerDescription()
          Returns the description to be used for the dialog
protected abstract  java.lang.String getDescription()
          Returns description message id for AVMCompare dialog
 java.lang.String getSandbox()
          Returns sandbox name
 org.alfresco.wcm.sandbox.SandboxService getSandboxService()
          Getter for sandboxService service
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
          Setter for avmBrowseBean
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, 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

websiteRef

protected org.alfresco.service.cmr.repository.NodeRef websiteRef

store

protected java.lang.String store

webProjectRef

protected org.alfresco.service.cmr.repository.NodeRef webProjectRef

version

protected int version

sandbox

protected java.lang.String sandbox

storeRoot

protected java.lang.String storeRoot

finished

protected boolean finished
Constructor Detail

CompareSnapshotDialog

public CompareSnapshotDialog()
Method Detail

getComparedNodes

public abstract java.util.List getComparedNodes()

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

getContainerDescription

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

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

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

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

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

getAvmBrowseBean

public AVMBrowseBean getAvmBrowseBean()
Getter for avmBrowseBean

Returns:
avmBrowseBean

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Setter for avmBrowseBean

Parameters:
avmBrowseBean - avm browse bean

getAvmService

public org.alfresco.service.cmr.avm.AVMService getAvmService()
Getter for avmService service

Returns:
avmService

getSandboxService

public org.alfresco.wcm.sandbox.SandboxService getSandboxService()
Getter for sandboxService service

Returns:
sandboxService

getAvmSyncService

public org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()
Getter for avmSyncService service

Returns:
avmSyncService

getDescription

protected abstract java.lang.String getDescription()
Returns description message id for AVMCompare dialog

Returns:
description message id for dialog

getSandbox

public java.lang.String getSandbox()
Returns sandbox name

Returns:
sandbox name


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