public class DeployDatabaseFieldCommand
extends com.marklogic.appdeployer.command.AbstractResourceCommand
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.
Modifier and Type | Class and Description |
---|---|
static class |
DeployDatabaseFieldCommand.HubDatabaseManager |
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.ResourceManager dbManager) |
protected void |
addExistingRangeFieldIndexes(com.marklogic.rest.util.Fragment newProps,
com.marklogic.rest.util.Fragment existingProps) |
protected void |
addExistingRangePathIndexes(com.marklogic.rest.util.Fragment newProps,
com.marklogic.rest.util.Fragment existingProps) |
protected java.lang.String |
adjustPayloadBeforeSavingResource(com.marklogic.appdeployer.command.CommandContext context,
java.io.File f,
java.lang.String payload) |
protected java.io.File[] |
getResourceDirs(com.marklogic.appdeployer.command.CommandContext context) |
protected com.marklogic.mgmt.resource.ResourceManager |
getResourceManager(com.marklogic.appdeployer.command.CommandContext commandContext) |
void |
undo(com.marklogic.appdeployer.command.CommandContext context) |
adjustPayloadBeforeDeletingResource, deleteResource, deployResourcesViaCma, execute, findResourceDirs, findResourceDirs, isDeleteResourcesOnUndo, isRestartAfterDelete, listFilesInDirectory, processExecuteOnResourceDir, processUndoOnResourceDir, saveMergedResourcesViaCma, setCatchExceptionOnDeleteFailure, setDeleteResourcesOnUndo, setRestartAfterDelete, useCmaForDeployingResources
getUndoSortOrder, setUndoSortOrder
adjustResourceManagerForPayload, afterResourceSaved, cmaEndpointExists, convertPayloadToObjectNode, convertXmlPayloadToJsonIfNecessary, copyFileToString, copyFileToString, deployConfiguration, determineDatabaseNameForDatabaseResourceDirectory, 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
protected java.io.File[] getResourceDirs(com.marklogic.appdeployer.command.CommandContext context)
getResourceDirs
in class com.marklogic.appdeployer.command.AbstractResourceCommand
protected com.marklogic.mgmt.resource.ResourceManager getResourceManager(com.marklogic.appdeployer.command.CommandContext commandContext)
getResourceManager
in class com.marklogic.appdeployer.command.AbstractResourceCommand
protected java.lang.String adjustPayloadBeforeSavingResource(com.marklogic.appdeployer.command.CommandContext context, java.io.File f, java.lang.String payload)
adjustPayloadBeforeSavingResource
in class com.marklogic.appdeployer.command.AbstractCommand
public void undo(com.marklogic.appdeployer.command.CommandContext context)
undo
in interface com.marklogic.appdeployer.command.UndoableCommand
undo
in class com.marklogic.appdeployer.command.AbstractResourceCommand
protected java.lang.String addExistingFieldsAndRangeFieldIndexes(java.lang.String payload, com.marklogic.mgmt.resource.ResourceManager 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)
protected void addExistingRangePathIndexes(com.marklogic.rest.util.Fragment newProps, com.marklogic.rest.util.Fragment existingProps)