org.alfresco.repo.avm.actions
Class AVMDeployWebsiteAction

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.executer.ActionExecuterAbstractBase
              extended by org.alfresco.repo.avm.actions.AVMDeployWebsiteAction
All Implemented Interfaces:
ActionExecuter, org.springframework.beans.factory.BeanNameAware

public class AVMDeployWebsiteAction
extends ActionExecuterAbstractBase

Deploys a website to a remote server. TODO refactor and add to WCM services (when we support WCM deployment config)


Field Summary
static java.lang.String ASYNC_QUEUE_NAME
           
static java.lang.String FILE_SERVER_PREFIX
           
static java.lang.String LIVE_SUFFIX
           
static java.lang.String NAME
           
static java.lang.String PARAM_ATTEMPT
           
static java.lang.String PARAM_CALLBACK
           
static java.lang.String PARAM_SERVER
           
static java.lang.String PARAM_WEBPROJECT
           
 
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT
 
Constructor Summary
AVMDeployWebsiteAction()
           
 
Method Summary
protected  void addParameterDefinitions(java.util.List paramList)
          Adds the parameter definitions to the list
static java.lang.String calculateServerUri(java.util.Map props)
          Calculate the URI representation of a server from the given set of properties
protected  void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
          Execute the action implementation
 TransactionService getTransactionService()
           
 void setCallbacks(java.util.List callbacks)
           
 void setContentService(ContentService contentService)
           
 void setDefaultAlfrescoRmiPort(int defaultAlfrescoRmiPort)
          Sets the default RMI port for Alfresco server deployments
 void setDefaultReceiverRmiPort(int defaultReceiverRmiPort)
          Sets the default RMI port for File system deployments
 void setDefaultRemotePassword(java.lang.String defaultRemotePassword)
          Sets the default remote password to use for deployments
 void setDefaultRemoteUsername(java.lang.String defaultRemoteUsername)
          Sets the default remote username to use for deployments
 void setDefaultTargetName(java.lang.String defaultTargetName)
          Sets the default target name to use on file system receivers
 void setDelay(int delay)
          Sets the delay to use before starting the deployment
 void setDeploymentService(DeploymentService service)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
           
 void setTransactionService(TransactionService transactionService)
           
 
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

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

FILE_SERVER_PREFIX

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

PARAM_WEBPROJECT

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

PARAM_SERVER

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

PARAM_ATTEMPT

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

PARAM_CALLBACK

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

ASYNC_QUEUE_NAME

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

LIVE_SUFFIX

public static final java.lang.String LIVE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

AVMDeployWebsiteAction

public AVMDeployWebsiteAction()
Method Detail

calculateServerUri

public static java.lang.String calculateServerUri(java.util.Map props)
Calculate the URI representation of a server from the given set of properties

Parameters:
props - Set of properties to calculate URI from

setDelay

public void setDelay(int delay)
Sets the delay to use before starting the deployment

Parameters:
delay - The delay in seconds

setDefaultAlfrescoRmiPort

public void setDefaultAlfrescoRmiPort(int defaultAlfrescoRmiPort)
Sets the default RMI port for Alfresco server deployments

Parameters:
defaultAlfrescoRmiPort - port number

setDefaultReceiverRmiPort

public void setDefaultReceiverRmiPort(int defaultReceiverRmiPort)
Sets the default RMI port for File system deployments

Parameters:
defaultReceiverRmiPort - port number

setDefaultRemoteUsername

public void setDefaultRemoteUsername(java.lang.String defaultRemoteUsername)
Sets the default remote username to use for deployments

Parameters:
defaultRemoteUsername - Default remote username

setDefaultRemotePassword

public void setDefaultRemotePassword(java.lang.String defaultRemotePassword)
Sets the default remote password to use for deployments

Parameters:
defaultRemotePassword - Default remote password

setDefaultTargetName

public void setDefaultTargetName(java.lang.String defaultTargetName)
Sets the default target name to use on file system receivers

Parameters:
defaultTargetName - Default target name

setCallbacks

public void setCallbacks(java.util.List callbacks)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
Parameters:
service - The NodeService instance

setContentService

public void setContentService(ContentService contentService)
Parameters:
contentService - The ContentService instance

setDeploymentService

public void setDeploymentService(DeploymentService service)
Parameters:
service - The AVM Deployment Service instance

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Description copied from class: ParameterizedItemAbstractBase
Adds the parameter definitions to the list

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list

executeImpl

protected void executeImpl(Action action,
                           org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionExecuterAbstractBase
Execute the action implementation

Specified by:
executeImpl in class ActionExecuterAbstractBase
Parameters:
action - the action
actionedUponNodeRef - the actioned upon node

setTransactionService

public void setTransactionService(TransactionService transactionService)

getTransactionService

public TransactionService getTransactionService()


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