public class HubProjectImpl extends com.marklogic.client.ext.helper.LoggingObject implements HubProject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENTITY_CONFIG_DIR |
static java.lang.String |
MODULES_DIR |
static java.lang.String |
USER_SCHEMAS_DIR |
HUB_CONFIG_DIR, PATH_PREFIX, USER_CONFIG_DIR| Constructor and Description |
|---|
HubProjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createProject(java.lang.String projectDirString) |
void |
exportProject(java.io.File location)
Exports the project content to disk
|
void |
exportProject(java.io.OutputStream outputStream)
Exports the project content to output stream
|
void |
exportProject(java.io.OutputStream outputStream,
java.util.List<java.lang.String> additionalFilesTobeAdded) |
java.nio.file.Path |
getCustomMappingFunctionsDir() |
java.nio.file.Path |
getCustomModuleDir(java.lang.String stepName,
java.lang.String stepType) |
java.nio.file.Path |
getCustomModulesDir()
Gets the path for the custom modules directory
|
java.nio.file.Path |
getEntityConfigDir()
Gets the path for the entity's config directory
|
java.nio.file.Path |
getEntityDatabaseDir()
Gets the path for the entity database directory
|
java.nio.file.Path |
getEntityDir(java.lang.String entityName)
Deprecated.
|
java.nio.file.Path |
getFlowsDir()
Gets the path for the flows directory
|
java.nio.file.Path |
getHubConfigDir()
Gets the path for the hub's config directory
|
java.nio.file.Path |
getHubDatabaseDir()
Gets the path for the hub's database directory
|
java.nio.file.Path |
getHubEntitiesDir()
Gets the path for the hub entities directory
|
java.nio.file.Path |
getHubMappingsDir()
Gets the path for the hub mappings directory
|
java.lang.String |
getHubModulesDeployTimestampFile() |
java.nio.file.Path |
getHubPluginsDir()
Gets the path for the hub plugins directory
|
java.nio.file.Path |
getHubSecurityDir()
Gets the path for the hub's security directory
|
java.nio.file.Path |
getHubServersDir()
Gets the path for the hub servers directory
|
java.nio.file.Path |
getHubStagingModulesDir()
Deprecated.
|
java.nio.file.Path |
getHubTriggersDir()
Gets the path for the hub's triggers directory
|
java.nio.file.Path |
getLegacyHubEntitiesDir()
Gets the legacy path for the hub entities directory
|
java.nio.file.Path |
getLegacyHubMappingsDir()
Gets the legacy path for the hub mappings directory
|
java.nio.file.Path |
getLegacyMappingDir(java.lang.String mappingName) |
java.nio.file.Path |
getMappingDir(java.lang.String mappingName) |
java.nio.file.Path |
getModulesDir()
Gets the path for the modules directory
|
java.nio.file.Path |
getProjectDir()
Returns the base directory for this project
|
java.lang.String |
getProjectDirString()
Gets the string used to originally make the project
|
java.lang.String |
getProjectName()
Returns the name of the project
|
java.nio.file.Path |
getStepDefinitionPath(StepDefinition.StepDefinitionType type)
Gets the path for the hub step directory by step type
|
java.nio.file.Path |
getStepDefinitionsDir()
Gets the path for the hub step-definitions directory
|
java.io.File |
getStepFile(StepDefinition.StepDefinitionType stepType,
java.lang.String stepName) |
java.nio.file.Path |
getStepsPath() |
java.nio.file.Path |
getStepsPath(StepDefinition.StepDefinitionType type) |
java.nio.file.Path |
getUserConfigDir()
Gets the path for the user config directory
|
java.nio.file.Path |
getUserDatabaseDir()
Gets the path for the user database directory
|
java.nio.file.Path |
getUserFinalModulesDir()
Deprecated.
|
java.lang.String |
getUserModulesDeployTimestampFile() |
java.nio.file.Path |
getUserSchemasDir()
Gets the path for the user schemas directory
|
java.nio.file.Path |
getUserSecurityDir()
Gets the path for the user security directory
|
java.nio.file.Path |
getUserServersDir()
Gets the path for the user servers directory
|
java.nio.file.Path |
getUserStagingModulesDir()
Deprecated.
|
protected boolean |
hasEmptyRangeElementIndexArray(com.fasterxml.jackson.databind.node.ObjectNode db) |
void |
init(java.util.Map<java.lang.String,java.lang.String> customTokens)
Initializes a directory as a hub project directory.
|
boolean |
isInitialized()
Checks if the project has been initialized or not
|
protected void |
removeEmptyRangeElementIndexArrayFromFinalDatabaseFile()
This method uses warn-level log messages to ensure they appear when upgrading a project via Gradle.
|
void |
setUserModulesDeployTimestampFile(java.lang.String userModulesDeployTimestampFile) |
protected void |
updateStepDefinitionTypeForInlineMappingSteps(FlowManager flowManager) |
void |
upgradeProject(FlowManager flowManager)
Performs an upgrade to a pre-4.0 project by copying folders
to their new positions as defined in hubproject.
|
public static final java.lang.String ENTITY_CONFIG_DIR
public static final java.lang.String MODULES_DIR
public static final java.lang.String USER_SCHEMAS_DIR
public java.lang.String getProjectDirString()
HubProjectgetProjectDirString in interface HubProjectpublic void createProject(java.lang.String projectDirString)
createProject in interface HubProjectpublic java.nio.file.Path getHubPluginsDir()
HubProjectgetHubPluginsDir in interface HubProjectpublic java.nio.file.Path getStepDefinitionsDir()
HubProjectgetStepDefinitionsDir in interface HubProjectpublic java.nio.file.Path getStepDefinitionPath(StepDefinition.StepDefinitionType type)
HubProjectgetStepDefinitionPath in interface HubProjecttype - - a Step typepublic java.nio.file.Path getHubEntitiesDir()
HubProjectgetHubEntitiesDir in interface HubProjectpublic java.nio.file.Path getHubMappingsDir()
HubProjectgetHubMappingsDir in interface HubProjectpublic java.nio.file.Path getLegacyHubEntitiesDir()
HubProjectgetLegacyHubEntitiesDir in interface HubProjectpublic java.nio.file.Path getLegacyHubMappingsDir()
HubProjectgetLegacyHubMappingsDir in interface HubProjectpublic java.nio.file.Path getHubConfigDir()
HubProjectgetHubConfigDir in interface HubProjectpublic java.nio.file.Path getHubDatabaseDir()
HubProjectgetHubDatabaseDir in interface HubProjectpublic java.nio.file.Path getHubServersDir()
HubProjectgetHubServersDir in interface HubProjectpublic java.nio.file.Path getHubSecurityDir()
HubProjectgetHubSecurityDir in interface HubProjectpublic java.nio.file.Path getHubTriggersDir()
HubProjectgetHubTriggersDir in interface HubProjectpublic java.nio.file.Path getUserConfigDir()
HubProjectgetUserConfigDir in interface HubProjectpublic java.nio.file.Path getUserSecurityDir()
HubProjectgetUserSecurityDir in interface HubProjectpublic java.nio.file.Path getUserDatabaseDir()
HubProjectgetUserDatabaseDir in interface HubProjectpublic java.nio.file.Path getUserSchemasDir()
HubProjectgetUserSchemasDir in interface HubProjectpublic java.nio.file.Path getUserServersDir()
HubProjectgetUserServersDir in interface HubProjectpublic java.nio.file.Path getEntityConfigDir()
HubProjectgetEntityConfigDir in interface HubProjectpublic java.nio.file.Path getEntityDatabaseDir()
HubProjectgetEntityDatabaseDir in interface HubProjectpublic java.nio.file.Path getFlowsDir()
HubProjectgetFlowsDir in interface HubProject@Deprecated public java.nio.file.Path getHubStagingModulesDir()
HubProjectgetHubStagingModulesDir in interface HubProject@Deprecated public java.nio.file.Path getUserStagingModulesDir()
HubProjectgetUserStagingModulesDir in interface HubProjectpublic java.nio.file.Path getModulesDir()
HubProjectgetModulesDir in interface HubProject@Deprecated public java.nio.file.Path getUserFinalModulesDir()
HubProjectgetUserFinalModulesDir in interface HubProjectpublic java.nio.file.Path getCustomModulesDir()
HubProjectgetCustomModulesDir in interface HubProjectpublic java.nio.file.Path getCustomMappingFunctionsDir()
getCustomMappingFunctionsDir in interface HubProjectpublic boolean isInitialized()
HubProjectisInitialized in interface HubProjectpublic void init(java.util.Map<java.lang.String,java.lang.String> customTokens)
HubProjectinit in interface HubProjectcustomTokens - - some custom tokens to start withpublic void upgradeProject(FlowManager flowManager) throws java.io.IOException
HubProjectupgradeProject in interface HubProjectjava.io.IOException - if problem happens with the on-disk project.public void exportProject(java.io.File location)
HubProjectexportProject in interface HubProjectpublic void exportProject(java.io.OutputStream outputStream)
HubProjectexportProject in interface HubProjectpublic void exportProject(java.io.OutputStream outputStream,
java.util.List<java.lang.String> additionalFilesTobeAdded)
public java.lang.String getProjectName()
HubProjectgetProjectName in interface HubProjectprotected void updateStepDefinitionTypeForInlineMappingSteps(FlowManager flowManager)
protected void removeEmptyRangeElementIndexArrayFromFinalDatabaseFile()
protected boolean hasEmptyRangeElementIndexArray(com.fasterxml.jackson.databind.node.ObjectNode db)
public java.lang.String getHubModulesDeployTimestampFile()
getHubModulesDeployTimestampFile in interface HubProjectpublic java.lang.String getUserModulesDeployTimestampFile()
getUserModulesDeployTimestampFile in interface HubProjectpublic void setUserModulesDeployTimestampFile(java.lang.String userModulesDeployTimestampFile)
setUserModulesDeployTimestampFile in interface HubProject@Deprecated public java.nio.file.Path getEntityDir(java.lang.String entityName)
getEntityDir in interface HubProjectpublic java.nio.file.Path getMappingDir(java.lang.String mappingName)
getMappingDir in interface HubProjectpublic java.nio.file.Path getLegacyMappingDir(java.lang.String mappingName)
getLegacyMappingDir in interface HubProjectpublic java.nio.file.Path getCustomModuleDir(java.lang.String stepName,
java.lang.String stepType)
getCustomModuleDir in interface HubProjectpublic java.nio.file.Path getProjectDir()
HubProjectgetProjectDir in interface HubProjectpublic java.nio.file.Path getStepsPath()
getStepsPath in interface HubProjectpublic java.nio.file.Path getStepsPath(StepDefinition.StepDefinitionType type)
getStepsPath in interface HubProjectpublic java.io.File getStepFile(StepDefinition.StepDefinitionType stepType, java.lang.String stepName)
getStepFile in interface HubProject