@Component
public class LoadUserArtifactsCommand
extends com.marklogic.appdeployer.command.AbstractCommand
Constructor and Description |
---|
LoadUserArtifactsCommand() |
LoadUserArtifactsCommand(HubConfig hubConfig)
For use outside of a Spring container.
|
Modifier and Type | Method and Description |
---|---|
protected com.marklogic.client.io.DocumentMetadataHandle |
buildMetadata(java.lang.String permissions,
java.lang.String collection)
As of 5.2.0, artifact permissions are separate from module permissions.
|
void |
execute(com.marklogic.appdeployer.command.CommandContext context) |
void |
loadUserArtifacts()
The CommandContext has no bearing on how user artifacts are loaded, so this method is easier to use when this
class is used outside a deployment context.
|
protected com.fasterxml.jackson.databind.node.ObjectNode |
replaceLanguageWithLang(com.fasterxml.jackson.databind.node.ObjectNode object)
Per DHFPROD-3193 and an update to MarkLogic 10.0-2, "lang" must now be used instead of "language".
|
void |
setForceLoad(boolean forceLoad) |
void |
setHubConfig(HubConfig hubConfig) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
adjustPayloadBeforeSavingResource, 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
public LoadUserArtifactsCommand()
public LoadUserArtifactsCommand(HubConfig hubConfig)
hubConfig
- public void setForceLoad(boolean forceLoad)
public void execute(com.marklogic.appdeployer.command.CommandContext context)
public void loadUserArtifacts()
protected com.marklogic.client.io.DocumentMetadataHandle buildMetadata(java.lang.String permissions, java.lang.String collection)
permissions
- collection
- protected com.fasterxml.jackson.databind.node.ObjectNode replaceLanguageWithLang(com.fasterxml.jackson.databind.node.ObjectNode object)
object
- public void setHubConfig(HubConfig hubConfig)
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)