| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
customForestPath |
protected java.lang.Integer |
finalForestsPerHost |
protected java.lang.String |
finalHttpName |
protected java.lang.Integer |
finalSchemasForestsPerHost |
protected java.lang.Integer |
finalTriggersForestsPerHost |
protected java.lang.Integer |
jobForestsPerHost |
protected java.lang.String |
jobHttpName |
protected java.lang.Integer |
modulesForestsPerHost |
protected java.lang.Integer |
stagingForestsPerHost |
protected java.lang.String |
stagingHttpName |
protected java.lang.Integer |
stagingSchemasForestsPerHost |
protected java.lang.Integer |
stagingTriggersForestsPerHost |
DEFAULT_AUTH_METHOD, DEFAULT_CUSTOM_FOREST_PATH, DEFAULT_DEVELOPER_ROLE_NAME, DEFAULT_DEVELOPER_USER_NAME, DEFAULT_FINAL_NAME, DEFAULT_FINAL_PORT, DEFAULT_FINAL_SCHEMAS_DB_NAME, DEFAULT_FINAL_TRIGGERS_DB_NAME, DEFAULT_FORESTS_PER_HOST, DEFAULT_HUB_LOG_LEVEL, DEFAULT_JOB_NAME, DEFAULT_JOB_PORT, DEFAULT_MODULES_DB_NAME, DEFAULT_ROLE_NAME, DEFAULT_SCHEME, DEFAULT_STAGING_NAME, DEFAULT_STAGING_PORT, DEFAULT_STAGING_SCHEMAS_DB_NAME, DEFAULT_STAGING_TRIGGERS_DB_NAME, DEFAULT_USER_NAME, ENTITY_CONFIG_DIR, EXP_FINAL_ENTITY_QUERY_OPTIONS_FILE, EXP_STAGING_ENTITY_QUERY_OPTIONS_FILE, FINAL_ENTITY_DATABASE_FILE, FINAL_ENTITY_QUERY_OPTIONS_FILE, HUB_CONFIG_DIR, HUB_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES, PATH_PREFIX, PII_PROTECTED_PATHS_FILE, PII_QUERY_ROLESET_FILE, STAGING_ENTITY_DATABASE_FILE, STAGING_ENTITY_QUERY_OPTIONS_FILE, USER_CONFIG_DIR, USER_CONTENT_DEPLOY_TIMESTAMPS_PROPERTIES, USER_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES| Constructor and Description |
|---|
HubConfigImpl()
Constructs a HubConfigImpl with a default set of property values.
|
HubConfigImpl(HubProject hubProject)
Constructor for when using this object outside of a Spring container, but a HubProject is still needed.
|
HubConfigImpl(java.lang.String host,
java.lang.String mlUsername,
java.lang.String mlPassword)
Provides a minimally-configured instance of HubConfigImpl based on DHF default properties, with no dependency
on Spring or on project files.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDhfPropertiesToCustomTokens(com.marklogic.appdeployer.AppConfig appConfig)
Populates the custom tokens map in the given AppConfig object.
|
void |
applyDefaultPermissionPropertyValues()
This is called by applyDefaultPropertyValues, but is separate for testing purposes.
|
void |
applyDefaultPropertyValues()
Applies values that, prior to 5.3.0, were stored in the dhf-defaults.properties file that was available from the
classpath.
|
void |
applyProperties(java.util.Properties properties)
Applies properties in the given properties to this instance.
|
void |
applyProperties(com.marklogic.mgmt.util.PropertySource propertySource)
Applies properties in the given property source to this instance.
|
void |
applyProperties(com.marklogic.mgmt.util.PropertySource propertySource,
com.marklogic.appdeployer.AppConfig appConfigToReuse,
com.marklogic.mgmt.ManageConfig manageConfigToReuse,
com.marklogic.mgmt.admin.AdminConfig adminConfigToReuse)
Applies properties in the given property source to this instance.
|
void |
configureForDhs() |
void |
createProject(java.lang.String projectDirString)
Initializes the java application state to a specific location.
|
void |
disableSimpleSsl() |
void |
enableSimpleSsl() |
com.marklogic.mgmt.admin.AdminConfig |
getAdminConfig() |
com.marklogic.mgmt.admin.AdminManager |
getAdminManager() |
com.marklogic.appdeployer.AppConfig |
getAppConfig()
Returns the current AppConfig object attached to the HubConfig
|
java.lang.String |
getAuthMethod(com.marklogic.hub.DatabaseKind kind)
Returns the AuthMethod object for the DatabaseKind in the hub config
|
java.lang.String |
getCertFile(com.marklogic.hub.DatabaseKind kind)
Returns the SSL Cert file as a string for the DatabaseKind in the hub config
|
java.lang.String |
getCertPassword(com.marklogic.hub.DatabaseKind kind)
Returns the SSL Cert Password as a string for the DatabaseKind in the hub config
|
java.lang.String |
getCustomForestPath()
Returns the path for the custom forests definition
|
java.lang.String |
getDbName(com.marklogic.hub.DatabaseKind kind)
Returns the database name for the DatabaseKind set in the config
|
java.nio.file.Path |
getEntityDatabaseDir()
Gets the path for the entity database directory
|
java.lang.String |
getEntityModelPermissions()
Prior to 5.1.0, entities were assigned permissions returned by getModulePermissions.
|
java.lang.String |
getExternalName(com.marklogic.hub.DatabaseKind kind)
Returns the external name for the host for the DatabaseKind in the hub config
|
java.lang.String |
getFlowDeveloperRoleName()
Get the roleName the hub uses for developing flows
|
java.lang.String |
getFlowDeveloperUserName()
Get the current marklogic user name the hub uses to develop flows
|
java.lang.String |
getFlowOperatorRoleName()
Get the roleName the hub uses
|
java.lang.String |
getFlowOperatorUserName()
Get the current marklogic user name the hub uses
|
java.lang.String |
getFlowPermissions()
Prior to 5.2.0, entities were assigned permissions returned by getModulePermissions.
|
java.nio.file.Path |
getFlowsDir()
Gets the path for the flows directory
|
java.lang.Integer |
getForestsPerHost(com.marklogic.hub.DatabaseKind kind)
Returns the number of forests per host for the DatabaseKind set in the config
|
java.lang.String |
getHost()
Gets the hostname of the AppConfig
|
java.lang.String |
getHttpName(com.marklogic.hub.DatabaseKind kind)
Returns the appserver name for the DatabaseKind set in the config
|
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.lang.String |
getHubLogLevel()
Gets the current level of logging set for the data hub
|
java.nio.file.Path |
getHubMappingsDir()
Gets the path for the hub mappings directory
|
java.lang.String |
getHubModulesDeployTimestampFile()
Deprecated.
|
java.nio.file.Path |
getHubPluginsDir()
Gets the path for the hub plugins directory
|
HubProject |
getHubProject()
Returns the HubProject associated with the HubConfig
|
java.nio.file.Path |
getHubProjectDir() |
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.lang.String |
getInfo()
Gets information on a datahub configuration
|
java.lang.Boolean |
getIsProvisionedEnvironment()
Signifies if we are dealing with a provisioned environment.
|
java.lang.String |
getJarVersion()
Gets the current version of the DHF Jar
|
java.lang.String |
getJobPermissions() |
com.marklogic.mgmt.ManageClient |
getManageClient() |
com.marklogic.mgmt.ManageConfig |
getManageConfig() |
java.lang.String |
getMappingPermissions()
Prior to 5.2.0, entities were assigned permissions returned by getModulePermissions.
|
java.lang.String |
getMlPassword() |
java.lang.String |
getMlUsername() |
java.nio.file.Path |
getModulesDir()
Gets the path for the modules directory
|
java.lang.Integer |
getPort(com.marklogic.hub.DatabaseKind kind)
Returns the port number for the DatabaseKind set in the config
|
java.lang.String |
getProjectDir()
Deprecated.
|
java.lang.String |
getScheme(com.marklogic.hub.DatabaseKind kind)
Deprecated.
|
boolean |
getSimpleSsl(com.marklogic.hub.DatabaseKind kind)
Returns if Simple SSL is set for the DatabaseKind in the hub config
|
javax.net.ssl.SSLContext |
getSslContext(com.marklogic.hub.DatabaseKind kind)
Returns the SSL Context for the DatabaseKind set in the config
|
com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier |
getSslHostnameVerifier(com.marklogic.hub.DatabaseKind kind)
Returns the SSL hostname verifier object for the DatabaseKind in the hub config
|
java.nio.file.Path |
getStepDefinitionPath(StepDefinition.StepDefinitionType type) |
java.lang.String |
getStepDefinitionPermissions()
Prior to 5.2.0, entities were assigned permissions returned by getModulePermissions.
|
java.nio.file.Path |
getStepDefinitionsDir()
Gets the path for the step definitions directory
|
javax.net.ssl.X509TrustManager |
getTrustManager(com.marklogic.hub.DatabaseKind kind)
Returns the TrustManager object for the DatabaseKind in the hub config
|
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.lang.String |
getUserModulesDeployTimestampFile()
Deprecated.
|
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
|
void |
initHubProject()
Initializes the hub project on disk
|
protected void |
initializeConfigDirs(com.marklogic.appdeployer.AppConfig config)
ml-app-deployer defaults to a single config path of src/main/ml-config.
|
protected void |
initializeModulePaths(com.marklogic.appdeployer.AppConfig config)
Need to initialize every module path as being relative to the current project directory.
|
protected void |
initializePropertyConsumerMap()
Defines functions for consuming properties from a PropertySource.
|
void |
loadConfigurationFromProperties(java.util.Properties userProperties,
boolean loadGradleProperties)
Use this when you need to apply properties, and you likely also want to load properties from Gradle files.
|
com.marklogic.client.DatabaseClient |
newAppServicesClient()
Creates a new DatabaseClient for accessing the AppServices app
|
com.marklogic.client.DatabaseClient |
newFinalClient()
Gets a new DatabaseClient that queries the Final database and appserver
|
com.marklogic.hub.HubClient |
newHubClient() |
com.marklogic.client.DatabaseClient |
newReverseFlowClient()
Gets a new DatabaseClient that queries the Final database using the staging appserver.
|
com.marklogic.client.DatabaseClient |
newStagingClient()
Gets a new DatabaseClient that queries the staging database and appserver
|
com.marklogic.client.DatabaseClient |
newTraceDbClient()
Deprecated.
|
void |
refreshProject()
Loads HubConfig object with values from gradle.properties (optionally overridden with
gradle-(environment).properties).
|
protected HubProject |
requireHubProject() |
void |
setAdminConfig(com.marklogic.mgmt.admin.AdminConfig adminConfig) |
void |
setAdminManager(com.marklogic.mgmt.admin.AdminManager adminManager) |
void |
setAppConfig(com.marklogic.appdeployer.AppConfig config)
Sets the AppConfig for the current HubConfig
|
void |
setAppConfig(com.marklogic.appdeployer.AppConfig config,
boolean skipUpdate)
Sets the AppConfig for the current HubConfig, with skipUpdate option
|
void |
setAuthMethod(com.marklogic.hub.DatabaseKind kind,
java.lang.String authMethod)
Sets the SSL Auth Method for the DatabaseKind in the config
|
void |
setCertFile(com.marklogic.hub.DatabaseKind kind,
java.lang.String certFile)
Sets the SSL Certfile to use for the DatabaseKind in the config
|
void |
setCertPass(com.marklogic.hub.DatabaseKind kind,
java.lang.String certPassword)
Sets the SSL Cert password for the DatabaseKind in the config
|
void |
setCustomForestPath(java.lang.String customForestPath) |
void |
setDbName(com.marklogic.hub.DatabaseKind kind,
java.lang.String dbName)
Sets the database name for the databaseKind on the hubconfig
|
void |
setEntityModelPermissions(java.lang.String entityModelPermissions) |
void |
setExternalName(com.marklogic.hub.DatabaseKind kind,
java.lang.String externalName)
Sets the external hostname for the DatabaseKind in the config
|
void |
setFlowDeveloperRoleName(java.lang.String flowDeveloperRoleName)
Set the role name that the hub uses for developing flows
|
void |
setFlowDeveloperUserName(java.lang.String flowDeveloperUserName)
Sets the username for the hub to use in MarkLogic for developing flows
|
void |
setFlowOperatorRoleName(java.lang.String flowOperatorRoleName)
Set the role name that the hub uses
|
void |
setFlowOperatorUserName(java.lang.String flowOperatorUserName)
Sets the username for the hub to use in MarkLogic
|
void |
setFlowPermissions(java.lang.String flowPermissions) |
void |
setForestsPerHost(com.marklogic.hub.DatabaseKind kind,
java.lang.Integer forestsPerHost)
Sets the number of forests per host for the databaseKind on the hubconfig
|
void |
setHost(java.lang.String host) |
void |
setHttpName(com.marklogic.hub.DatabaseKind kind,
java.lang.String httpName)
Sets the appserver name for the databaseKind on the hubconfig
|
void |
setHubProject(HubProject hubProject) |
void |
setIsProvisionedEnvironment(boolean isProvisionedEnvironment) |
void |
setJobPermissions(java.lang.String jobPermissions) |
void |
setManageClient(com.marklogic.mgmt.ManageClient manageClient) |
void |
setMappingPermissions(java.lang.String mappingPermissions) |
void |
setMlPassword(java.lang.String mlPassword) |
void |
setMlUsername(java.lang.String mlUsername) |
void |
setPort(com.marklogic.hub.DatabaseKind kind,
java.lang.Integer port)
Sets the port number for the databaseKind on the hubconfig
|
void |
setProjectDir(java.lang.String projectDir)
Deprecated.
|
void |
setScheme(com.marklogic.hub.DatabaseKind kind,
java.lang.String scheme)
Deprecated.
|
void |
setSimpleSsl(com.marklogic.hub.DatabaseKind kind,
java.lang.Boolean simpleSsl)
Sets if Simple SSL is to be used for the DatabaseKind in the config
|
void |
setSslContext(com.marklogic.hub.DatabaseKind kind,
javax.net.ssl.SSLContext sslContext)
Sets the SSL Context for the DatabaseKind in the config
|
void |
setSslHostnameVerifier(com.marklogic.hub.DatabaseKind kind,
com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier sslHostnameVerifier)
Sets the SSL Hostname Verifier object for the DatabaseKind in the config
|
void |
setStepDefinitionPermissions(java.lang.String stepDefinitionPermissions) |
void |
setTrustManager(com.marklogic.hub.DatabaseKind kind,
javax.net.ssl.X509TrustManager trustManager)
Sets the Trust Manager for the DatabaseKind in the config
|
java.lang.String |
toString() |
static HubConfigImpl |
withDefaultProperties()
Deprecated.
|
static HubConfigImpl |
withProperties(java.util.Properties props)
Convenience method for instantiating a HubConfigImpl with its default property values and then overlaying the
values specified in the given Properties object.
|
HubConfig |
withPropertiesFromEnvironment(java.lang.String environment)
It is not expected that a client would use this, as it would be partially re-inventing what the Gradle
properties plugin does.
|
applyProperties, getDatabaseNames, getFinalAuthMethod, getFinalCertFile, getFinalCertPassword, getFinalDbName, getFinalExternalName, getFinalPort, getFinalSchemasDbName, getFinalSimpleSsl, getFinalSslContext, getFinalSslHostnameVerifier, getFinalTriggersDbName, getFinalTrustManager, getIsHostLoadBalancer, getJobAuthMethod, getJobCertFile, getJobCertPassword, getJobDbName, getJobExternalName, getJobPort, getJobSimpleSsl, getJobSslContext, getJobSslHostnameVerifier, getJobTrustManager, getModulePermissions, getModulesDbName, getPassword, getPropertyConsumerMap, getStagingAuthMethod, getStagingCertFile, getStagingCertPassword, getStagingDbName, getStagingExternalName, getStagingPort, getStagingSchemasDbName, getStagingSimpleSsl, getStagingSslContext, getStagingSslHostnameVerifier, getStagingTriggersDbName, getStagingTrustManager, getUsername, newFinalClient, newJobDbClient, newModulesDbClient, newStagingClient, registerLowerCasedPropertyConsumers, setConfiguredDatabaseClientFactory, setFinalAuthMethod, setFinalCertFile, setFinalCertPassword, setFinalDbName, setFinalExternalName, setFinalPort, setFinalSchemasDbName, setFinalSimpleSsl, setFinalSslContext, setFinalSslHostnameVerifier, setFinalTriggersDbName, setFinalTrustManager, setIsHostLoadBalancer, setJobAuthMethod, setJobCertFile, setJobCertPassword, setJobDbName, setJobExternalName, setJobPort, setJobSimpleSsl, setJobSslContext, setJobSslHostnameVerifier, setJobTrustManager, setManageConfig, setModulePermissions, setModulesDbName, setPassword, setStagingAuthMethod, setStagingCertFile, setStagingCertPassword, setStagingDbName, setStagingExternalName, setStagingPort, setStagingSchemasDbName, setStagingSimpleSsl, setStagingSslContext, setStagingSslHostnameVerifier, setStagingTriggersDbName, setStagingTrustManager, setUsernameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIsHostLoadBalancer, getModulePermissions, getStagingTriggersDbName, newFinalClient, newJobDbClient, newModulesDbClient, newStagingClientprotected java.lang.String stagingHttpName
protected java.lang.Integer stagingForestsPerHost
protected java.lang.String finalHttpName
protected java.lang.Integer finalForestsPerHost
protected java.lang.String jobHttpName
protected java.lang.Integer jobForestsPerHost
protected java.lang.Integer modulesForestsPerHost
protected java.lang.Integer stagingTriggersForestsPerHost
protected java.lang.Integer finalTriggersForestsPerHost
protected java.lang.Integer stagingSchemasForestsPerHost
protected java.lang.Integer finalSchemasForestsPerHost
protected java.lang.String customForestPath
public HubConfigImpl()
public HubConfigImpl(HubProject hubProject)
hubProject - public HubConfigImpl(java.lang.String host,
java.lang.String mlUsername,
java.lang.String mlPassword)
host - mlUsername - mlPassword - @Deprecated public static HubConfigImpl withDefaultProperties()
public static HubConfigImpl withProperties(java.util.Properties props)
props - public void applyProperties(java.util.Properties properties)
applyProperties in class com.marklogic.hub.HubClientConfigproperties - public void applyProperties(com.marklogic.mgmt.util.PropertySource propertySource)
propertySource - public void applyProperties(com.marklogic.mgmt.util.PropertySource propertySource,
com.marklogic.appdeployer.AppConfig appConfigToReuse,
com.marklogic.mgmt.ManageConfig manageConfigToReuse,
com.marklogic.mgmt.admin.AdminConfig adminConfigToReuse)
propertySource - appConfigToReuse - manageConfigToReuse - adminConfigToReuse - protected HubProject requireHubProject()
public void createProject(java.lang.String projectDirString)
HubConfigcreateProject in interface HubConfigprojectDirString - The directory in which to find properties for a project.public java.lang.String getHost()
HubConfigpublic java.lang.String getDbName(com.marklogic.hub.DatabaseKind kind)
HubConfigpublic void setDbName(com.marklogic.hub.DatabaseKind kind,
java.lang.String dbName)
HubConfigpublic java.lang.String getHttpName(com.marklogic.hub.DatabaseKind kind)
HubConfiggetHttpName in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setHttpName(com.marklogic.hub.DatabaseKind kind,
java.lang.String httpName)
HubConfigsetHttpName in interface HubConfighttpName - The name to set for the appserverpublic java.lang.Integer getForestsPerHost(com.marklogic.hub.DatabaseKind kind)
HubConfiggetForestsPerHost in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setForestsPerHost(com.marklogic.hub.DatabaseKind kind,
java.lang.Integer forestsPerHost)
HubConfigsetForestsPerHost in interface HubConfigforestsPerHost - The number of forests per hostpublic java.lang.Integer getPort(com.marklogic.hub.DatabaseKind kind)
HubConfigpublic void setPort(com.marklogic.hub.DatabaseKind kind,
java.lang.Integer port)
HubConfigpublic javax.net.ssl.SSLContext getSslContext(com.marklogic.hub.DatabaseKind kind)
HubConfiggetSslContext in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setSslContext(com.marklogic.hub.DatabaseKind kind,
javax.net.ssl.SSLContext sslContext)
HubConfigsetSslContext in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBsslContext - - The SSLContext set for the database connectionpublic com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier getSslHostnameVerifier(com.marklogic.hub.DatabaseKind kind)
HubConfiggetSslHostnameVerifier in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setSslHostnameVerifier(com.marklogic.hub.DatabaseKind kind,
com.marklogic.client.DatabaseClientFactory.SSLHostnameVerifier sslHostnameVerifier)
HubConfigsetSslHostnameVerifier in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBsslHostnameVerifier - - The SSL Hostname Verifier object for the database connectionpublic java.lang.String getAuthMethod(com.marklogic.hub.DatabaseKind kind)
HubConfiggetAuthMethod in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setAuthMethod(com.marklogic.hub.DatabaseKind kind,
java.lang.String authMethod)
HubConfigsetAuthMethod in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBauthMethod - - The SSL Auth Method for the database connectionpublic javax.net.ssl.X509TrustManager getTrustManager(com.marklogic.hub.DatabaseKind kind)
HubConfiggetTrustManager in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setTrustManager(com.marklogic.hub.DatabaseKind kind,
javax.net.ssl.X509TrustManager trustManager)
HubConfigsetTrustManager in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBtrustManager - - The Trust Manager for the database connection@Deprecated public java.lang.String getScheme(com.marklogic.hub.DatabaseKind kind)
HubConfig@Deprecated
public void setScheme(com.marklogic.hub.DatabaseKind kind,
java.lang.String scheme)
HubConfigpublic boolean getSimpleSsl(com.marklogic.hub.DatabaseKind kind)
HubConfiggetSimpleSsl in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setSimpleSsl(com.marklogic.hub.DatabaseKind kind,
java.lang.Boolean simpleSsl)
HubConfigsetSimpleSsl in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic java.lang.String getCertFile(com.marklogic.hub.DatabaseKind kind)
HubConfiggetCertFile in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setCertFile(com.marklogic.hub.DatabaseKind kind,
java.lang.String certFile)
HubConfigsetCertFile in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBcertFile - - The SSL Cert File as a string to be used for the database connectionpublic java.lang.String getCertPassword(com.marklogic.hub.DatabaseKind kind)
HubConfiggetCertPassword in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setCertPass(com.marklogic.hub.DatabaseKind kind,
java.lang.String certPassword)
HubConfigsetCertPass in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBcertPassword - - The SSL certificate password for the database connectionpublic java.lang.String getExternalName(com.marklogic.hub.DatabaseKind kind)
HubConfiggetExternalName in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic void setExternalName(com.marklogic.hub.DatabaseKind kind,
java.lang.String externalName)
HubConfigsetExternalName in interface HubConfigkind - - DatabaseKind enum, eg: STAGING or JOBpublic java.lang.String getFlowOperatorRoleName()
HubConfiggetFlowOperatorRoleName in interface HubConfigpublic void setFlowOperatorRoleName(java.lang.String flowOperatorRoleName)
HubConfigsetFlowOperatorRoleName in interface HubConfigflowOperatorRoleName - the name to usepublic java.lang.String getFlowOperatorUserName()
HubConfiggetFlowOperatorUserName in interface HubConfigpublic void setFlowOperatorUserName(java.lang.String flowOperatorUserName)
HubConfigsetFlowOperatorUserName in interface HubConfigflowOperatorUserName - - username to usepublic java.lang.String getFlowDeveloperRoleName()
HubConfiggetFlowDeveloperRoleName in interface HubConfigpublic void setFlowDeveloperRoleName(java.lang.String flowDeveloperRoleName)
HubConfigsetFlowDeveloperRoleName in interface HubConfigflowDeveloperRoleName - the name to use for developing flowspublic java.lang.String getFlowDeveloperUserName()
HubConfiggetFlowDeveloperUserName in interface HubConfigpublic void setFlowDeveloperUserName(java.lang.String flowDeveloperUserName)
HubConfigsetFlowDeveloperUserName in interface HubConfigflowDeveloperUserName - - username to usepublic java.lang.String getMlUsername()
public java.lang.String getMlPassword()
public void setHost(java.lang.String host)
setHost in class com.marklogic.hub.HubClientConfigpublic void setMlUsername(java.lang.String mlUsername)
public void setMlPassword(java.lang.String mlPassword)
public java.lang.Boolean getIsProvisionedEnvironment()
HubConfiggetIsProvisionedEnvironment in interface HubConfigpublic void setIsProvisionedEnvironment(boolean isProvisionedEnvironment)
setIsProvisionedEnvironment in interface HubConfigpublic java.lang.String getCustomForestPath()
HubConfiggetCustomForestPath in interface HubConfigpublic void setCustomForestPath(java.lang.String customForestPath)
public java.lang.String getEntityModelPermissions()
HubConfiggetEntityModelPermissions in interface HubConfigpublic java.lang.String getFlowPermissions()
HubConfiggetFlowPermissions in interface HubConfigpublic java.lang.String getMappingPermissions()
HubConfiggetMappingPermissions in interface HubConfigpublic java.lang.String getStepDefinitionPermissions()
HubConfiggetStepDefinitionPermissions in interface HubConfigpublic java.lang.String getJobPermissions()
public void setJobPermissions(java.lang.String jobPermissions)
@Deprecated public java.lang.String getProjectDir()
HubConfiggetProjectDir in interface HubConfig@Deprecated public void setProjectDir(java.lang.String projectDir)
HubConfigsetProjectDir in interface HubConfigprojectDir - - a string that represents the path to the project directorypublic void setEntityModelPermissions(java.lang.String entityModelPermissions)
public void setFlowPermissions(java.lang.String flowPermissions)
public void setMappingPermissions(java.lang.String mappingPermissions)
public void setStepDefinitionPermissions(java.lang.String stepDefinitionPermissions)
public HubProject getHubProject()
HubConfiggetHubProject in interface HubConfigpublic void setHubProject(HubProject hubProject)
public void initHubProject()
HubConfiginitHubProject in interface HubConfig@Deprecated public java.lang.String getHubModulesDeployTimestampFile()
HubConfiggetHubModulesDeployTimestampFile in interface HubConfig@Deprecated public java.lang.String getUserModulesDeployTimestampFile()
HubConfiggetUserModulesDeployTimestampFile in interface HubConfigpublic void refreshProject()
HubConfigHubConfig.createProject(String) you can use setter methods to change HubConfig properties
and then call this method.refreshProject in interface HubConfigpublic void loadConfigurationFromProperties(java.util.Properties userProperties,
boolean loadGradleProperties)
userProperties - loadGradleProperties - public com.marklogic.mgmt.ManageConfig getManageConfig()
getManageConfig in class com.marklogic.hub.HubClientConfigpublic com.marklogic.mgmt.ManageClient getManageClient()
getManageClient in interface HubConfigpublic void setManageClient(com.marklogic.mgmt.ManageClient manageClient)
public com.marklogic.mgmt.admin.AdminConfig getAdminConfig()
public void setAdminConfig(com.marklogic.mgmt.admin.AdminConfig adminConfig)
public com.marklogic.mgmt.admin.AdminManager getAdminManager()
getAdminManager in interface HubConfigpublic void setAdminManager(com.marklogic.mgmt.admin.AdminManager adminManager)
public com.marklogic.client.DatabaseClient newAppServicesClient()
HubConfignewAppServicesClient in interface HubConfigpublic com.marklogic.client.DatabaseClient newStagingClient()
HubConfignewStagingClient in interface HubConfigpublic com.marklogic.client.DatabaseClient newReverseFlowClient()
HubConfignewReverseFlowClient in interface HubConfigpublic com.marklogic.client.DatabaseClient newFinalClient()
HubConfignewFinalClient in interface HubConfig@Deprecated public com.marklogic.client.DatabaseClient newTraceDbClient()
HubConfignewTraceDbClient in interface HubConfigpublic java.nio.file.Path getModulesDir()
HubConfiggetModulesDir in interface HubConfigpublic java.nio.file.Path getHubProjectDir()
public java.nio.file.Path getHubPluginsDir()
HubConfiggetHubPluginsDir in interface HubConfigpublic java.nio.file.Path getHubEntitiesDir()
HubConfiggetHubEntitiesDir in interface HubConfigpublic java.nio.file.Path getHubMappingsDir()
HubConfiggetHubMappingsDir in interface HubConfigpublic java.nio.file.Path getStepDefinitionPath(StepDefinition.StepDefinitionType type)
getStepDefinitionPath in interface HubConfigpublic java.nio.file.Path getHubConfigDir()
HubConfiggetHubConfigDir in interface HubConfigpublic java.nio.file.Path getHubDatabaseDir()
HubConfiggetHubDatabaseDir in interface HubConfigpublic java.nio.file.Path getHubServersDir()
HubConfiggetHubServersDir in interface HubConfigpublic java.nio.file.Path getHubSecurityDir()
HubConfiggetHubSecurityDir in interface HubConfigpublic java.nio.file.Path getUserSecurityDir()
HubConfiggetUserSecurityDir in interface HubConfigpublic java.nio.file.Path getUserConfigDir()
HubConfiggetUserConfigDir in interface HubConfigpublic java.nio.file.Path getUserDatabaseDir()
HubConfiggetUserDatabaseDir in interface HubConfigpublic java.nio.file.Path getUserSchemasDir()
HubConfiggetUserSchemasDir in interface HubConfigpublic java.nio.file.Path getEntityDatabaseDir()
HubConfiggetEntityDatabaseDir in interface HubConfigpublic java.nio.file.Path getFlowsDir()
HubConfiggetFlowsDir in interface HubConfigpublic java.nio.file.Path getStepDefinitionsDir()
HubConfiggetStepDefinitionsDir in interface HubConfigpublic java.nio.file.Path getUserServersDir()
HubConfiggetUserServersDir in interface HubConfigpublic com.marklogic.appdeployer.AppConfig getAppConfig()
HubConfiggetAppConfig in interface HubConfigpublic void setAppConfig(com.marklogic.appdeployer.AppConfig config)
HubConfigsetAppConfig in interface HubConfigconfig - AppConfig to associate with the HubConfigpublic void setAppConfig(com.marklogic.appdeployer.AppConfig config,
boolean skipUpdate)
HubConfigsetAppConfig in interface HubConfigconfig - - AppConfig to associate with the HubConfigskipUpdate - false to force update of AppConfig, true to skip itpublic java.lang.String getJarVersion()
HubConfiggetJarVersion in interface HubConfigpublic java.lang.String getHubLogLevel()
HubConfiggetHubLogLevel in interface HubConfigprotected void addDhfPropertiesToCustomTokens(com.marklogic.appdeployer.AppConfig appConfig)
appConfig - protected void initializeConfigDirs(com.marklogic.appdeployer.AppConfig config)
config - an AppConfig objectprotected void initializeModulePaths(com.marklogic.appdeployer.AppConfig config)
config - an AppConfig objectpublic java.lang.String getInfo()
HubConfigpublic HubConfig withPropertiesFromEnvironment(java.lang.String environment)
withPropertiesFromEnvironment in interface HubConfigenvironment - a string name for environmentpublic java.lang.String toString()
toString in class java.lang.Objectpublic void applyDefaultPropertyValues()
applyDefaultPropertyValues in class com.marklogic.hub.HubClientConfigpublic void applyDefaultPermissionPropertyValues()
protected void initializePropertyConsumerMap()
initializePropertyConsumerMap in class com.marklogic.hub.HubClientConfigpublic void configureForDhs()
configureForDhs in class com.marklogic.hub.HubClientConfigpublic void enableSimpleSsl()
enableSimpleSsl in class com.marklogic.hub.HubClientConfigpublic void disableSimpleSsl()
disableSimpleSsl in class com.marklogic.hub.HubClientConfigpublic com.marklogic.hub.HubClient newHubClient()
newHubClient in interface HubConfig