public class PreviewDeployerImpl extends Object implements PreviewDeployer
Modifier and Type | Class and Description |
---|---|
protected class |
PreviewDeployerImpl.CreateTargetRequestBody |
protected class |
PreviewDeployerImpl.DeployTargetRequestBody |
Modifier and Type | Field and Description |
---|---|
protected String |
beanName |
protected EventService |
eventService |
protected org.apache.http.impl.client.CloseableHttpClient |
httpClient |
protected StudioConfiguration |
studioConfiguration |
ENV_AUTHORING, ENV_PREVIEW
Constructor and Description |
---|
PreviewDeployerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
createTarget(String site,
String searchEngine) |
boolean |
deleteTarget(String site) |
protected boolean |
doCreateTarget(String site,
String environment,
String searchEngine,
String template) |
protected boolean |
doDeleteTarget(String site,
String environment) |
protected void |
doDeployment(String site,
String environment,
boolean waitTillDone) |
String |
getBeanName() |
EventService |
getEventService() |
StudioConfiguration |
getStudioConfiguration() |
void |
onPreviewSync(PreviewEventContext context) |
void |
setBeanName(String beanName) |
void |
setEventService(EventService eventService) |
void |
setStudioConfiguration(StudioConfiguration studioConfiguration) |
void |
subscribeToPreviewSyncEvents() |
protected StudioConfiguration studioConfiguration
protected EventService eventService
protected String beanName
protected org.apache.http.impl.client.CloseableHttpClient httpClient
public void subscribeToPreviewSyncEvents()
public void onPreviewSync(PreviewEventContext context)
onPreviewSync
in interface PreviewDeployer
public boolean createTarget(String site, String searchEngine)
createTarget
in interface PreviewDeployer
protected boolean doCreateTarget(String site, String environment, String searchEngine, String template)
public boolean deleteTarget(String site)
deleteTarget
in interface PreviewDeployer
public StudioConfiguration getStudioConfiguration()
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
public EventService getEventService()
public void setEventService(EventService eventService)
public String getBeanName()
public void setBeanName(String beanName)
Copyright © 2020 CrafterCMS. All rights reserved.