Class AbstractDeployer
- java.lang.Object
-
- org.craftercms.studio.impl.v2.deployment.AbstractDeployer
-
- All Implemented Interfaces:
Deployer
- Direct Known Subclasses:
PreviewDeployer
,ServerlessDeliveryDeployer
public abstract class AbstractDeployer extends Object implements Deployer
Base abstract class forDeployer
s. Provides the commons methods that call the Deployer APIs.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected org.craftercms.commons.rest.RestTemplate
restTemplate
protected StudioConfiguration
studioConfiguration
-
Constructor Summary
Constructors Constructor Description AbstractDeployer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalParams(Map<String,Object> params, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> additionalParams)
protected void
addChildParams(Map<String,Object> childParams, org.apache.commons.configuration2.tree.ImmutableNode parentNode, org.apache.commons.configuration2.interpol.ConfigurationInterpolator interpolator)
protected void
doCreateTarget(String site, String environment, String template, boolean replace, boolean disableDeployCron, String localRepoPath, String repoUrl, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> additionalParams)
protected void
doDeleteTarget(String site, String environment)
protected Map<String,Object>
getCreateTargetRequestBody(String site, String environment, String template, boolean replace, boolean disableDeployCron, String localRepoPath, String repoUrl, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> additionalParams)
protected abstract String
getCreateTargetUrl()
protected abstract String
getDeleteTargetUrl(String site, String environment)
protected String
getRepoUrl(String configKey, String site)
void
setStudioConfiguration(StudioConfiguration studioConfiguration)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.craftercms.studio.api.v2.deployment.Deployer
createTargets, deleteTargets
-
-
-
-
Field Detail
-
restTemplate
protected org.craftercms.commons.rest.RestTemplate restTemplate
-
studioConfiguration
protected StudioConfiguration studioConfiguration
-
-
Method Detail
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
doCreateTarget
protected void doCreateTarget(String site, String environment, String template, boolean replace, boolean disableDeployCron, String localRepoPath, String repoUrl, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> additionalParams) throws IllegalStateException, org.springframework.web.client.RestClientException
- Throws:
IllegalStateException
org.springframework.web.client.RestClientException
-
getCreateTargetRequestBody
protected Map<String,Object> getCreateTargetRequestBody(String site, String environment, String template, boolean replace, boolean disableDeployCron, String localRepoPath, String repoUrl, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> additionalParams)
-
addAdditionalParams
protected void addAdditionalParams(Map<String,Object> params, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> additionalParams)
-
addChildParams
protected void addChildParams(Map<String,Object> childParams, org.apache.commons.configuration2.tree.ImmutableNode parentNode, org.apache.commons.configuration2.interpol.ConfigurationInterpolator interpolator)
-
getCreateTargetUrl
protected abstract String getCreateTargetUrl()
-
-