public class GenerateHubTDETemplateCommand
extends com.marklogic.appdeployer.command.es.GenerateModelArtifactsCommand
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
GenerateHubTDETemplateCommand(HubConfig hubConfig) |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Map<java.lang.String,java.io.File> |
createEntityNameFileMap(java.util.List<java.io.File> entityFiles) |
void |
execute(com.marklogic.appdeployer.command.CommandContext context) |
protected static java.util.Optional<java.lang.String> |
extractEntityNameFromFilename(java.lang.String filename) |
protected void |
filterEntities(java.util.Map<java.lang.String,java.io.File> entityNameFileMap) |
protected java.util.List<java.io.File> |
findEntityFiles() |
protected void |
generateExtractionTemplate(com.marklogic.appdeployer.AppConfig appConfig,
com.marklogic.client.ext.es.GeneratedCode code) |
java.lang.String |
getEntityNames() |
void |
setEntityNames(java.lang.String entityNames) |
buildCodeGenerationRequest, buildDatabaseClient, fileHasDifferentContent, generateDatabaseProperties, generateInstanceConverter, generateSchema, generateSearchOptions, loadModelDefinition, loadModelDefinition, removeGeneratedAtTimestamp, selectModulesDir, setOptionsPath
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 GenerateHubTDETemplateCommand(HubConfig hubConfig)
public void execute(com.marklogic.appdeployer.command.CommandContext context)
execute
in interface com.marklogic.appdeployer.command.Command
execute
in class com.marklogic.appdeployer.command.es.GenerateModelArtifactsCommand
public java.lang.String getEntityNames()
public void setEntityNames(java.lang.String entityNames)
protected void filterEntities(java.util.Map<java.lang.String,java.io.File> entityNameFileMap)
protected static java.util.Map<java.lang.String,java.io.File> createEntityNameFileMap(java.util.List<java.io.File> entityFiles)
protected java.util.List<java.io.File> findEntityFiles()
protected void generateExtractionTemplate(com.marklogic.appdeployer.AppConfig appConfig, com.marklogic.client.ext.es.GeneratedCode code)
generateExtractionTemplate
in class com.marklogic.appdeployer.command.es.GenerateModelArtifactsCommand
protected static java.util.Optional<java.lang.String> extractEntityNameFromFilename(java.lang.String filename)