Modifier and Type | Class and Description |
---|---|
static class |
EnvironmentConfiguration.ActivityAnonymizationPolicy
The user activity anonymization policy.
|
static class |
EnvironmentConfiguration.EnvironmentConfigurationCommand
This is a environment configuration command that updates the configuration information cached.
|
Constructor and Description |
---|
EnvironmentConfiguration() |
Modifier and Type | Method and Description |
---|---|
EnvironmentProperty |
addProperty(String name)
Adds a property with the given name in the configuration.
|
void |
clearProperties()
Removes all environment properties.
|
static void |
clearPropertiesCache()
Clears the environment properties cache.
|
protected Object |
clone() |
EnvironmentConfiguration.ActivityAnonymizationPolicy |
getActivityAnonymizationPolicy()
Returns the activityAnonymizationPolicy.
|
String |
getBigDataRepositoryClassName()
Returns the class name of big data repository implementation to use.
|
BigDataRepositoryType |
getBigDataRepositoryType()
Returns the configured big data repository type.
|
Long |
getCacheUserSegmentationExpirationAmount()
Returns the cache user segmentation member expiration amount.
|
long |
getCacheUserSegmentationExpirationMillis()
Returns the cache user segmentation expiration in milliseconds.
|
TimeUnit |
getCacheUserSegmentationExpirationUnit()
Returns the cache user segmentation member expiration unit.
|
static EnvironmentConfiguration |
getCurrentConfiguration()
Returns the current configuration.
|
int |
getElasticsearchBulkConcurrentRequests()
Returns the maximum number of bulk requests to be sent concurrently.
|
String |
getElasticsearchClusterName()
Returns the cluster name to use when initializing the Elasticsearch client
|
Integer |
getElasticsearchFlushInterval()
Returns the interval in milliseconds for flush elastic search data.
|
String |
getElasticsearchIndexNamePrefix()
Returns the Elasticsearch index names prefix.
|
String |
getElasticsearchNativeProtocolConnectionAddresses()
Returns the connection addresses to use when initializing the Elasticsearch native protocol client.
|
String |
getElasticsearchRestConnectionAddresses()
Returns the connection addresses to use when initializing the Elasticsearch Rest client.
|
EnvironmentStandardBigDataDocumentPopularityProviderConfiguration |
getEnvironmentStandardBigDataDocumentPopularityProviderConfiguration()
Returns the standard big data document popularity provider configuration.
|
String |
getFileSystemImplementation()
Returns the portal's file system implementation class name.
|
String |
getGeoLocationIPAddressUpdateLicenseKey()
Returns the geoLocationIPAddressUpdateLicenseKey.
|
String |
getId()
Returns the id.
|
String |
getIdentification()
Returns the identification.
|
Integer |
getMaxLoginFailures()
Returns the maximum number of login failures before a given user is blocked.
|
Integer |
getMaxLoginFailuresOrDefault()
Returns the maximum number of login failures before a given user is blocked or the default value.
|
EnvironmentMonitorConfiguration |
getMonitorConfiguration()
Returns the monitor configuration.
|
Map<String,List<String>> |
getProperties()
Returns an immutable map of the environment properties.
|
String |
getPropertyValue(String propertyName)
Returns the value of the property that has the given name.
|
List<String> |
getPropertyValues(String propertyName)
Returns an immutable set of values of the property that has the given name.
|
Collection<String> |
getTags()
Returns the collection of tags this environment has.
|
EnvironmentType |
getType()
Returns the environment type.
|
Integer |
getUserSegmentationMaxMembers()
Returns the maximum number of members are calculated for each user segmentation.
|
boolean |
isDataPrivacySystemEnabled()
Returns the dataPrivacySystemEnabled.
|
boolean |
isGeolocationServiceEnabled()
Returns whether the Geolocation service is enabled.
|
boolean |
isJavaMelodyEnabled()
Returns whether the JavaMelody monitoring should be enabled next time portal starts.
|
boolean |
isUserGroupsSessionCacheEnabled()
Returns whether the user's group session cache is enabled.
|
void |
removeProperty(String name)
Removes the property that has the given name.
|
void |
setActivityAnonymizationPolicy(EnvironmentConfiguration.ActivityAnonymizationPolicy activityAnonymizationPolicy)
Sets the activityAnonymizationPolicy.
|
void |
setBigDataRepositoryClassName(String bigDataRepositoryClassName)
Sets the class name of big data repository implementation to use.
|
void |
setBigDataRepositoryType(BigDataRepositoryType bigDataRepositoryType)
Sets the configured big data repository type.
|
void |
setCacheUserSegmentationExpirationAmount(Long cacheUserSegmentationExpirationAmount)
Sets the cache user segmentation member expiration amount.
|
void |
setCacheUserSegmentationExpirationUnit(TimeUnit cacheUserSegmentationExpirationUnit)
Sets the cache user segmentation member expiration unit.
|
void |
setDataPrivacySystemEnabled(boolean dataPrivacySystemEnabled)
Sets the dataPrivacySystemEnabled.
|
void |
setElasticsearchBulkConcurrentRequests(int elasticsearchBulkConcurrentRequests)
Sets the maximum number of bulk requests to be sent concurrently.
|
void |
setElasticsearchClusterName(String elasticsearchClusterName)
Sets the cluster name to use when initializing the Elasticsearch client
|
void |
setElasticsearchFlushInterval(Integer elasticsearchFlushInterval)
Sets the interval in milliseconds for flush elastic search data.
|
void |
setElasticsearchIndexNamePrefix(String elasticsearchIndexNamePrefix)
Sets the Elasticsearch index names prefix.
|
void |
setElasticsearchNativeProtocolConnectionAddresses(String addresses)
Sets the connection addresses to use when initializing the Elasticsearch native protocol client.
|
void |
setElasticsearchRestConnectionAddresses(String addresses)
Sets the connection addresses to use when initializing the Elasticsearch Rest client.
|
void |
setEnvironmentStandardBigDataDocumentPopularityProviderConfiguration(EnvironmentStandardBigDataDocumentPopularityProviderConfiguration bigDataPopularityProviderConfig)
Set the standard big data document popularity provider configuration.
|
void |
setFileSystemImplementation(String fileSystemImplementation)
Sets the portal's file system implementation class name.
|
void |
setGeoLocationIPAddressUpdateLicenseKey(String geoLocationIPAddressUpdateLicenseKey)
Sets the geoLocationIPAddressUpdateLicenseKey.
|
void |
setGeolocationServiceEnabled(boolean geolocationServiceEnabled)
Sets whether the Geolocation service is enabled.
|
void |
setIdentification(String identification)
Sets the identification.
|
void |
setJavaMelodyEnabled(boolean javaMelodyEnabled)
Sets whether JavaMelody monitoring should be enabled next time portal starts.
|
void |
setMaxLoginFailures(Integer maxLoginFailures)
Set the maximum number of login failures before a given user is blocked.
|
void |
setTags(Collection<String> tags)
Sets the collection of tags this environment has.
|
void |
setType(EnvironmentType type)
Sets the environment type.
|
void |
setUserGroupsSessionCacheEnabled(boolean userGroupsSessionCacheEnabled)
Sets whether the user's group session cache is enabled.
|
void |
setUserSegmentationMaxMembers(Integer segmentationMaxMembers)
Sets the maximum number of members are calculated for each segmentation.
|
static void |
updateCurrentConfiguration(EnvironmentConfiguration config)
Update the current configuration.
|
public String getId()
public EnvironmentType getType()
public void setType(EnvironmentType type)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Collection<String> getTags()
public void setTags(Collection<String> tags)
public String getFileSystemImplementation()
public void setFileSystemImplementation(String fileSystemImplementation)
fileSystemImplementation
- the portal's file system implementation class namepublic boolean isJavaMelodyEnabled()
public void setJavaMelodyEnabled(boolean javaMelodyEnabled)
javaMelodyEnabled
- whether JavaMelody monitoring should be enabled next time portal starts.public boolean isGeolocationServiceEnabled()
public void setGeolocationServiceEnabled(boolean geolocationServiceEnabled)
geolocationServiceEnabled
- whether the Geolocation service is enabled.public BigDataRepositoryType getBigDataRepositoryType()
public void setBigDataRepositoryType(BigDataRepositoryType bigDataRepositoryType)
bigDataRepositoryType
- the big data repository type.public String getBigDataRepositoryClassName()
getBigDataRepositoryType()
is BigDataRepositoryType.CUSTOM
.public void setBigDataRepositoryClassName(String bigDataRepositoryClassName)
getBigDataRepositoryType()
is BigDataRepositoryType.CUSTOM
.bigDataRepositoryClassName
- the big data repository class name.public String getElasticsearchClusterName()
null
if not set.public void setElasticsearchClusterName(String elasticsearchClusterName)
elasticsearchClusterName
- the cluster name.public String getElasticsearchNativeProtocolConnectionAddresses()
public void setElasticsearchNativeProtocolConnectionAddresses(String addresses)
addresses
- the connection addresses. Example: "host1:9300,host2:9300,192.168.1.13:9300"public String getElasticsearchRestConnectionAddresses()
public void setElasticsearchRestConnectionAddresses(String addresses)
addresses
- the connection addresses. Example: "host1:9200,host2:9200,192.168.1.13:9200"public String getElasticsearchIndexNamePrefix()
public void setElasticsearchIndexNamePrefix(String elasticsearchIndexNamePrefix)
elasticsearchIndexNamePrefix
- the Elasticsearch index names prefix.public int getElasticsearchBulkConcurrentRequests()
public void setElasticsearchBulkConcurrentRequests(int elasticsearchBulkConcurrentRequests)
elasticsearchBulkConcurrentRequests
- the maximum number of concurrent bulk requests.public EnvironmentStandardBigDataDocumentPopularityProviderConfiguration getEnvironmentStandardBigDataDocumentPopularityProviderConfiguration()
public void setEnvironmentStandardBigDataDocumentPopularityProviderConfiguration(EnvironmentStandardBigDataDocumentPopularityProviderConfiguration bigDataPopularityProviderConfig)
the
- standard big data document popularity provider configuration.public boolean isUserGroupsSessionCacheEnabled()
public void setUserGroupsSessionCacheEnabled(boolean userGroupsSessionCacheEnabled)
userGroupsSessionCacheEnabled
- true if the user's group session cache is enabled.public static EnvironmentConfiguration getCurrentConfiguration()
public static void updateCurrentConfiguration(EnvironmentConfiguration config) throws PortalException
PortalException
public String getIdentification()
public void setIdentification(String identification)
^[a-zA-Z0-9_]+$
.identification
- the identification value to set.public EnvironmentMonitorConfiguration getMonitorConfiguration()
public TimeUnit getCacheUserSegmentationExpirationUnit()
public void setCacheUserSegmentationExpirationUnit(TimeUnit cacheUserSegmentationExpirationUnit)
cacheUserSegmentationExpirationUnit
- the cache user segmentation member expiration unit.public Long getCacheUserSegmentationExpirationAmount()
public void setCacheUserSegmentationExpirationAmount(Long cacheUserSegmentationExpirationAmount)
cacheUserSegmentationExpirationAmount
- the cache user segmentation member expiration amount.public long getCacheUserSegmentationExpirationMillis()
public Integer getUserSegmentationMaxMembers()
public void setUserSegmentationMaxMembers(Integer segmentationMaxMembers)
segmentationMaxMembers
- the maximum number of members calculated for each segmentation.public EnvironmentProperty addProperty(String name) throws PortalException
name
- the property name.IllegalArgumentException
- if the given name is null or empty.PortalObjectAlreadyExistsException
- if there's already a property with the given name.PortalException
public void removeProperty(String name)
name
- the property name.public void clearProperties()
public List<String> getPropertyValues(String propertyName) throws PortalException
propertyName
- the desired property name.IllegalArgumentException
- if property name is null or empty.PortalObjectNotFoundException
- if there's no such property.PortalException
public String getPropertyValue(String propertyName) throws PortalException
propertyName
- the desired property name.IllegalArgumentException
- if property name is null or empty.PortalObjectNotFoundException
- if there's no such property.PortalException
public Map<String,List<String>> getProperties() throws PortalException
PortalException
public static void clearPropertiesCache()
public Integer getMaxLoginFailures()
public Integer getMaxLoginFailuresOrDefault()
public void setMaxLoginFailures(Integer maxLoginFailures)
maxLoginFailures
- public Integer getElasticsearchFlushInterval()
public void setElasticsearchFlushInterval(Integer elasticsearchFlushInterval)
elasticsearchFlushInterval
- The interval in milliseconds for flush elastic search data value to set.public String getGeoLocationIPAddressUpdateLicenseKey()
public void setGeoLocationIPAddressUpdateLicenseKey(String geoLocationIPAddressUpdateLicenseKey)
geoLocationIPAddressUpdateLicenseKey
- the geoLocationIPAddressUpdateLicenseKey value to set.public EnvironmentConfiguration.ActivityAnonymizationPolicy getActivityAnonymizationPolicy()
public void setActivityAnonymizationPolicy(EnvironmentConfiguration.ActivityAnonymizationPolicy activityAnonymizationPolicy)
activityAnonymizationPolicy
- the dataPrivacyAnonymizedActivities value to set.public boolean isDataPrivacySystemEnabled()
public void setDataPrivacySystemEnabled(boolean dataPrivacySystemEnabled)
dataPrivacySystemEnabled
- the dataPrivacySystemEnabled value to set.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.