org.alfresco.web.bean.wcm
Class DeployWebsiteDialog

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

public class DeployWebsiteDialog
extends BaseDialogBean

Deploys a website 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 store
           
protected  boolean updateTestServer
           
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
DeployWebsiteDialog()
           
 
Method Summary
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 getContainerDescription()
          Returns the description to be used for the dialog
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 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
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 int getSnapshotVersion()
           
 java.lang.String getStore()
           
 org.alfresco.service.cmr.repository.NodeRef getWebProjectRef()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
           
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 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, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, 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

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

webProjectRef

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

updateTestServer

protected boolean updateTestServer

avmBrowseBean

protected AVMBrowseBean avmBrowseBean
Constructor Detail

DeployWebsiteDialog

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

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

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

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

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

setAvmBrowseBean

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

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The AVMService to set.

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

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

getDeployTo

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

Returns:
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

getWebProjectRef

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

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.