Package org.alfresco.utility
Class TasProperties
java.lang.Object
org.alfresco.utility.TasProperties
@Configuration
@PropertySource("classpath:default.properties") @PropertySource(value="classpath:${environment}.properties",ignoreResourceNotFound=true)
public class TasProperties
extends Object
Generic Properties class that will load and override properties based on
environment defined For "test" environment just define {code}
System.setProperty("environment", "test"); {code} or run your test passing
-Denvironment=test
- Author:
- Paul.Brodner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDbUrl()org.springframework.core.env.EnvironmentgetEnv()longlongintgetPort()intintintbooleanstatic org.springframework.context.support.PropertySourcesPlaceholderConfigurervoidsetAdminPassword(String adminPassword) voidsetAdminUserName(String adminUserName) voidsetAuthContextFactory(String authContextFactory) voidsetBrowserLanguage(String browserLanguage) voidsetBrowserLanguageCountry(String browserLanguageCountry) voidsetBrowserName(String browserName) voidsetBrowserVersion(String browserVersion) voidsetDbPassword(String dbPassword) voidvoidsetDbUsername(String dbUsername) voidsetEnvPlatformName(String envPlatformName) voidsetExplicitWait(long explicitWait) voidsetGridEnabled(boolean gridEnabled) voidsetGridUrl(String gridUrl) voidsetImplicitWait(long implicitWait) voidsetJmxPassword(String jmxPassword) voidsetJmxPort(String jmxPort) voidsetJmxUser(String jmxUser) voidsetLdap2SecurityCredentials(String ldap2SecurityCredentials) voidsetLdap2SecurityPrincipal(String ldap2SecurityPrincipal) voidsetLdap2URL(String ldap2URL) voidsetLdapSearchBase(String ldapSearchBase) voidsetLdapSearchBase2(String ldapSearchBase2) voidsetLdapSecurityCredentials(String ldapSecurityCredentials) voidsetLdapSecurityPrincipal(String ldapSecurityPrincipal) voidsetLdapURL(String ldapURL) voidsetNtlmHost(String ntlmHost) voidsetNtlmSecurityCredentials(String ntlmSecurityCredentials) voidsetNtlmSecurityPrincipal(String ntlmSecurityPrincipal) voidsetOLdapSecurityCredentials(String oldapSecurityCredentials) voidsetOLdapSecurityPrincipal(String oldapSecurityPrincipal) voidsetOLdapURL(String oldapURL) voidsetOracleSecurityCredentials(String oracleSecurityCredentials) voidsetOracleSecurityPrincipal(String oracleSecurityPrincipal) voidsetOracleURL(String oracleURL) voidsetPort(int port) voidvoidsetScreenshotsDir(String screenshotsDir) voidsetSecurityAuth(String securityAuth) voidvoidsetShareUrl(URL shareUrl) voidsetSolrPort(int solrPort) voidsetSolrScheme(String solrScheme) voidsetSolrSecret(String solrSecret) voidsetSolrSecretName(String solrSecretName) voidsetSolrServer(String solrServer) voidsetSolrWaitTimeInSeconds(int solrWaitTimeInSeconds) voidsetSyncPort(int syncPort) voidsetSyncScheme(String syncScheme) voidsetSyncServer(String syncServer) boolean# in containers we cannot access directly JMX, so we will use {@link http://jolokia.org} agent # disabling this we will use direct JMX calls to server
-
Constructor Details
-
TasProperties
public TasProperties()
-
-
Method Details
-
showTenantsOnServerHealth
-
useJolokiaJmxAgent
public boolean useJolokiaJmxAgent()# in containers we cannot access directly JMX, so we will use {@link http://jolokia.org} agent # disabling this we will use direct JMX calls to server -
propertySourcesPlaceholderConfigurer
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() -
getEnv
public org.springframework.core.env.Environment getEnv() -
getAdminUser
-
setAdminUserName
-
getAdminPassword
-
setAdminPassword
-
getScheme
-
setScheme
-
getServer
-
setServer
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getJmxUser
-
setJmxUser
-
getJmxPassword
-
setJmxPassword
-
getJmxPort
-
setJmxPort
-
getJmxUrl
-
getFullServerUrl
- Returns:
- host:
:// :
-
getTestServerUrl
- Returns:
- host:
://
-
getDbUrl
-
setDbUrl
-
getDbUsername
-
setDbUsername
-
getDbPassword
-
setDbPassword
-
getBrowserName
-
setBrowserName
-
getBrowserVersion
-
setBrowserVersion
-
getImplicitWait
public long getImplicitWait() -
setImplicitWait
public void setImplicitWait(long implicitWait) -
getExplicitWait
public long getExplicitWait() -
setExplicitWait
public void setExplicitWait(long explicitWait) -
getGridUrl
- Throws:
MalformedURLException
-
setGridUrl
-
isGridEnabled
public boolean isGridEnabled() -
setGridEnabled
public void setGridEnabled(boolean gridEnabled) -
getScreenshotsDir
-
setScreenshotsDir
-
getLdapSearchBase
-
setLdapSearchBase
-
getLdapSearchBase2
-
setLdapSearchBase2
-
getEnvPlatformName
-
setEnvPlatformName
-
getAuthContextFactory
-
setAuthContextFactory
-
getSecurityAuth
-
getSyncServerUrl
- Returns:
- host:
://
-
setSecurityAuth
-
getOracleURL
-
setOracleURL
-
getOracleSecurityPrincipal
-
setOracleSecurityPrincipal
-
getOracleSecurityCredentials
-
setOracleSecurityCredentials
-
getLdapURL
-
getLdap2URL
-
setLdapURL
-
setLdap2URL
-
getLdapSecurityPrincipal
-
getLdap2SecurityPrincipal
-
setLdapSecurityPrincipal
-
setLdap2SecurityPrincipal
-
getLdapSecurityCredentials
-
getLdap2SecurityCredentials
-
setLdapSecurityCredentials
-
setLdap2SecurityCredentials
-
getOLdapURL
-
setOLdapURL
-
getOLdapSecurityPrincipal
-
setOLdapSecurityPrincipal
-
getOLdapSecurityCredentials
-
setOLdapSecurityCredentials
-
getNtlmHost
-
setNtlmHost
-
getNtlmSecurityPrincipal
-
setNtlmSecurityPrincipal
-
getNtlmSecurityCredentials
-
setNtlmSecurityCredentials
-
getSyncScheme
-
setSyncScheme
-
getSyncServer
-
setSyncServer
-
getSyncPort
public int getSyncPort() -
setSyncPort
public void setSyncPort(int syncPort) -
getBrowserLanguage
-
setBrowserLanguage
-
getBrowserLanguageCountry
-
setBrowserLanguageCountry
-
getSolrWaitTimeInSeconds
public int getSolrWaitTimeInSeconds() -
setSolrWaitTimeInSeconds
public void setSolrWaitTimeInSeconds(int solrWaitTimeInSeconds) -
getSolrScheme
-
setSolrScheme
-
getSolrServer
-
setSolrServer
-
getSolrPort
public int getSolrPort() -
setSolrPort
public void setSolrPort(int solrPort) -
getSolrSecretName
-
setSolrSecretName
-
getSolrSecret
-
setSolrSecret
-
getSolrServerUrl
- Returns:
- host:
://
-
getDisplayXport
- Returns:
- displayXport
-