public class DeployDatabaseFieldCommand
extends com.marklogic.appdeployer.command.databases.DeployDatabaseCommand
The reason that these fields are applied via an XML file is to avoid a bug specific to JSON files and the Manage API that is not yet fixed in ML 9.0-9.
Constructor and Description |
---|
DeployDatabaseFieldCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExistingFields(com.marklogic.rest.util.Fragment newProps,
com.marklogic.rest.util.Fragment existingProps) |
protected java.lang.String |
addExistingFieldsAndRangeFieldIndexes(java.lang.String payload,
com.marklogic.mgmt.resource.databases.DatabaseManager dbManager) |
protected void |
addExistingRangeFieldIndexes(com.marklogic.rest.util.Fragment newProps,
com.marklogic.rest.util.Fragment existingProps) |
void |
execute(com.marklogic.appdeployer.command.CommandContext context) |
protected org.springframework.core.io.Resource[] |
getDatabaseFieldFilesFromClasspath() |
buildDefaultDatabasePayload, buildDeployForestsCommand, buildPayload, buildPayloadForSaving, customForestsExist, deploySubDatabases, getDatabaseFilename, getDatabaseName, getDatabasesToNotUndeploy, getDeployForestsCommand, getForestDeleteLevel, getForestFilename, getForestsPerHost, getPayload, getSuperDatabaseName, getUndoSortOrder, isCheckForCustomForests, isCreateDatabaseWithoutFile, isCreateForestsOnEachHost, isPostponeForestCreation, isSubDatabase, newDatabaseManageForDeleting, setCheckForCustomForests, setCreateDatabaseWithoutFile, setCreateForestsOnEachHost, setDatabaseFile, setDatabaseFilename, setDatabaseName, setDatabasesToNotUndeploy, setDeployDatabaseCommandFactory, setForestFilename, setForestsPerHost, setPayload, setPostponeForestCreation, setSubDatabase, setSuperDatabaseName, setUndoSortOrder, shouldCreateForests, toString, undo
adjustPayloadBeforeSavingResource, adjustResourceManagerForPayload, afterResourceSaved, cmaEndpointExists, convertPayloadToObjectNode, convertXmlPayloadToJsonIfNecessary, copyFileToString, copyFileToString, deployConfiguration, getBiPredicateForMergingResources, getContextKeyForResourcesToSave, getExecuteSortOrder, getResourceClassType, getResourceFilenameFilter, getResourceIdPropertyName, isStoreResourceIdsAsCustomTokens, isSupportsResourceMerging, listFilesInDirectory, logResourceDirectoryNotFound, mergeResources, readResourceFromFile, resourceMergingIsSupported, saveMergedResources, saveResource, saveResource, setExecuteSortOrder, setFilenamesToIgnore, setIncrementalMode, setPayloadTokenReplacer, setResourceClassType, setResourceFilenameFilter, setResourceFilenamesExcludePattern, setResourceFilenamesIncludePattern, setResourceIdPropertyName, setStoreResourceIdsAsCustomTokens, setSupportsResourceMerging, storeResourceInCommandContextMap, storeTokenForResourceId
public void execute(com.marklogic.appdeployer.command.CommandContext context)
execute
in interface com.marklogic.appdeployer.command.Command
execute
in class com.marklogic.appdeployer.command.databases.DeployDatabaseCommand
protected org.springframework.core.io.Resource[] getDatabaseFieldFilesFromClasspath()
protected java.lang.String addExistingFieldsAndRangeFieldIndexes(java.lang.String payload, com.marklogic.mgmt.resource.databases.DatabaseManager dbManager)
protected void addExistingFields(com.marklogic.rest.util.Fragment newProps, com.marklogic.rest.util.Fragment existingProps)
protected void addExistingRangeFieldIndexes(com.marklogic.rest.util.Fragment newProps, com.marklogic.rest.util.Fragment existingProps)