org.alfresco.web.bean.wcm
Class MonitorDeploymentDialog

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

public class MonitorDeploymentDialog
extends BaseDialogBean

Monitors the deployment of a web project snapshot to one or more remote servers.

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
           
protected  java.lang.String calledFromTaskDialog
           
protected  java.lang.String deployMode
           
protected  java.lang.String[] deployTo
           
protected  java.lang.String outcome
           
protected  java.lang.String store
           
protected  int versionToDeploy
           
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
MonitorDeploymentDialog()
           
 
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 getCancelButtonLabel()
          Returns the label to use for the cancel button
protected  java.lang.String getDefaultCancelOutcome()
          Returns the default cancel outcome
 java.lang.String getDeployMode()
          Returns the type of server to deploy to, either 'live' or 'test'.
 java.lang.String[] getDeployTo()
          Returns the remote servers to deploy to as an array
 int getSnapshotVersion()
           
 java.lang.String getStore()
           
 org.alfresco.service.cmr.repository.NodeRef getWebProjectRef()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setDeployTo(java.lang.String[] deployTo)
          Sets the list of remote servers to deploy to
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, 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

outcome

protected java.lang.String outcome

webProjectRef

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

avmBrowseBean

protected AVMBrowseBean avmBrowseBean

versionToDeploy

protected int versionToDeploy

deployTo

protected java.lang.String[] deployTo

store

protected java.lang.String store

deployMode

protected java.lang.String deployMode

calledFromTaskDialog

protected java.lang.String calledFromTaskDialog

websiteRef

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

MonitorDeploymentDialog

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

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

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

setAvmBrowseBean

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

getWebProjectRef

public org.alfresco.service.cmr.repository.NodeRef getWebProjectRef()
Returns:
The NodeRef of the web project the deployment reports are being shown for

getDeployTo

public java.lang.String[] getDeployTo()
Returns the remote servers to deploy to as an array

Returns:
String array of servers to deploy to

setDeployTo

public void setDeployTo(java.lang.String[] deployTo)
Sets the list of remote servers to deploy to

Parameters:
deployTo - String array of servers to deploy to

getDeployMode

public java.lang.String getDeployMode()
Returns the type of server to deploy to, either 'live' or 'test'.

Returns:
The type of server to deploy to

getStore

public java.lang.String getStore()
Returns:
The store being deployed

getSnapshotVersion

public int getSnapshotVersion()
Returns:
The version of the snapshot to deploy


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