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 |
addExistingPathNamespaces(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) |
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, useCmaForDeployingResourcesgetUndoSortOrder, setUndoSortOrderadjustResourceManagerForPayload, 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, storeTokenForResourceIdprotected java.io.File[] getResourceDirs(com.marklogic.appdeployer.command.CommandContext context)
getResourceDirs in class com.marklogic.appdeployer.command.AbstractResourceCommandprotected com.marklogic.mgmt.resource.ResourceManager getResourceManager(com.marklogic.appdeployer.command.CommandContext commandContext)
getResourceManager in class com.marklogic.appdeployer.command.AbstractResourceCommandprotected 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.AbstractCommandpublic void undo(com.marklogic.appdeployer.command.CommandContext context)
undo in interface com.marklogic.appdeployer.command.UndoableCommandundo in class com.marklogic.appdeployer.command.AbstractResourceCommandprotected 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)
protected void addExistingPathNamespaces(com.marklogic.rest.util.Fragment newProps,
com.marklogic.rest.util.Fragment existingProps)