public class HubDeployer
extends com.marklogic.client.ext.helper.LoggingObject
| Constructor and Description |
|---|
HubDeployer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntityConfigToConfigDirs(HubProject hubProject,
com.marklogic.appdeployer.AppConfig appConfig)
Because the hub-internal-config directory is excluded, the staging database won't be updated unless the user has
a staging-database.json file in their ml-config directory.
|
protected java.util.List<com.marklogic.appdeployer.command.Command> |
buildCommandsForDeveloper(HubConfig hubConfig) |
protected java.util.List<com.marklogic.appdeployer.command.Command> |
buildCommandsForReplica(HubConfig hubConfig) |
protected java.util.List<com.marklogic.appdeployer.command.Command> |
buildCommandsForSecurityAdmin() |
protected java.util.regex.Pattern |
buildPatternForDatabasesToUpdateIndexesFor()
In a provisioned environment, only the databases defined by this pattern can be updated.
|
void |
deployAsDeveloper(HubConfigImpl hubConfig)
Deploys the portions of a DHF app that a data-hub-developer is permitted to deploy.
|
void |
deployAsSecurityAdmin(HubConfigImpl hubConfig)
Deploys the portions of a DHF app that a data-hub-security-admin is permitted to deploy.
|
void |
deployToReplica(HubConfig hubConfig) |
protected void |
prepareAppConfigForDeployingToDhs(HubConfig hubConfig)
The AppConfig object belonging to HubConfig can be configured based on known DHS environment settings.
|
protected void |
removeHubInternalConfigFromConfigDirs(com.marklogic.appdeployer.AppConfig appConfig)
The contents of hub-internal-config should have been deployed to DHS already via the DHF installer.
|
protected void |
setKnownValuesForDhsDeployment(HubConfig hubConfig)
Per DHFPROD-2897, these are known values in a DHS installation that can be set so that they override any changes
the user may have made for their on-premise installation.
|
void |
throwExceptionIfMarkLogicVersionIsInvalid(HubConfig hubConfig) |
public void deployAsDeveloper(HubConfigImpl hubConfig)
hubConfig - public void deployAsSecurityAdmin(HubConfigImpl hubConfig)
hubConfig - public void deployToReplica(HubConfig hubConfig)
public void throwExceptionIfMarkLogicVersionIsInvalid(HubConfig hubConfig)
protected void prepareAppConfigForDeployingToDhs(HubConfig hubConfig)
hubConfig - protected void removeHubInternalConfigFromConfigDirs(com.marklogic.appdeployer.AppConfig appConfig)
appConfig - protected void addEntityConfigToConfigDirs(HubProject hubProject, com.marklogic.appdeployer.AppConfig appConfig)
hubProject - appConfig - protected void setKnownValuesForDhsDeployment(HubConfig hubConfig)
hubConfig - protected java.util.List<com.marklogic.appdeployer.command.Command> buildCommandsForSecurityAdmin()
protected java.util.List<com.marklogic.appdeployer.command.Command> buildCommandsForReplica(HubConfig hubConfig)
protected java.util.List<com.marklogic.appdeployer.command.Command> buildCommandsForDeveloper(HubConfig hubConfig)
protected java.util.regex.Pattern buildPatternForDatabasesToUpdateIndexesFor()