Package com.avoka.fc.core.dao
Class DeploymentPropertyDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.DeploymentPropertyDao
Provides a DAO for the DeploymentProperty entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn set of allowed attachment file name extensionsgetConfigSubDirectory
(String subdirectory) Return the specified sub folder under the configured root Journey Manager directory (defined inDeploymentProperty.PROPERTY_Config_Directory
.Return the deployment property with the specified OIDgetDeploymentPropertyList
(String keyword) Return the list of deployment properties matching the specified search criteriaint
Return the email flood threshold valueint
Return the GroovyScript execution timeout in milliseconds.getProperty
(String name) Return the deployment property with the given name.getPropertyDateFormat
(String name) Return a DateFormat using the value of the deployment property with the given namegetPropertyValue
(String name) Return the current value of the deployment property with the given name.boolean
Returns the value of the deployment property as a boolean valueint
getPropertyValueInt
(String name) Return the value of the deployment property as an int valuelong
getPropertyValueLong
(String name) Return the value of the deployment property as a long valueboolean
hasProperty
(String name) Return whether a property exists for the given nameboolean
Return true if Data Retention is run independently of Transaction Processorboolean
Return whether Journey Manager is currently in debug modeboolean
Return true if Eventing feature is enabled.boolean
Return true if Exception Debug Logging is enabled by default.boolean
Return true if exporting of passwords in service connections is enabledboolean
Return whether Fluent API user permission check flag is active or notboolean
Return true if Groovy Service Logging is enabled by default.boolean
boolean
Deprecated.LC support has been removedboolean
Deprecated.LC support has been removedboolean
Return true if Server Real-Time Heath Monitoring is enabled.boolean
Return true if javax to jakarta transformation on import is enabled.boolean
Return true if virus scan is enabled for JM uploads.boolean
Return true if xss protection is enabled on none safe controls.void
Load the default values of the system deployment properties.void
Clear the deployment property cache.void
registerDeploymentProperty
(String name, String type, String value, String description) Register a new deployment property.Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
DeploymentPropertyDao
public DeploymentPropertyDao()
-
-
Method Details
-
refreshCache
public void refreshCache()Clear the deployment property cache. -
getDeploymentPropertyForPK
Return the deployment property with the specified OID- Parameters:
id
- the OID- Returns:
- the matching deployment property, or null if not found
-
getDeploymentPropertyList
Return the list of deployment properties matching the specified search criteria- Parameters:
keyword
- the search keyword- Returns:
- the list of matching deployment properties
-
hasProperty
Return whether a property exists for the given name- Parameters:
name
- the name of the property- Returns:
- true if a property exists for the given name
-
getProperty
Return the deployment property with the given name.- Parameters:
name
- the name of the deployment property- Returns:
- the deployment property
-
getPropertyValue
Return the current value of the deployment property with the given name.- Parameters:
name
- the non-null name of the property- Returns:
- the property value
- Throws:
ApplicationException
- if the specified property does not exist, or more than one value exists
-
getPropertyDateFormat
Return a DateFormat using the value of the deployment property with the given name- Parameters:
name
- the non-null name- Returns:
- a
DateFormat
instance using the deployment property value as its pattern
-
getPropertyValueInt
Return the value of the deployment property as an int value- Parameters:
name
- the name of the deployment property- Returns:
- the int value of the deployment property
- Throws:
ApplicationException
- if the specified property does not existNumberFormatException
- if the deployment property value could not be converted to an int value
-
getPropertyValueLong
Return the value of the deployment property as a long value- Parameters:
name
- the name of the deployment property- Returns:
- the long value of the deployment property
- Throws:
ApplicationException
- if the specified property does not existNumberFormatException
- if the deployment property value could not be converted to a long value
-
getPropertyValueBoolean
Returns the value of the deployment property as a boolean value- Parameters:
name
- the name of the deployment property- Returns:
- the boolean value of the deployment property (see
Boolean.parseBoolean(String)
) - Throws:
ApplicationException
- if the specified property does not exist
-
getConfigSubDirectory
Return the specified sub folder under the configured root Journey Manager directory (defined inDeploymentProperty.PROPERTY_Config_Directory
. This method will create the sub directory if it does not exist.- Parameters:
subdirectory
- the sub folder name- Returns:
- the full path of the sub folder
-
isDebugMode
public boolean isDebugMode()Return whether Journey Manager is currently in debug mode- Returns:
- true if the value of
DeploymentProperty.PROPERTY_Debug_Mode
is "1" or "true", ignoring capitalization
-
isEventingEnabled
public boolean isEventingEnabled()Return true if Eventing feature is enabled.- Returns:
- true if the value of
DeploymentProperty.PROPERTY_EVENTING_FEATURE_ENABLED
is true - Since:
- 22.10.0
-
isGroovyLoggingEnabled
public boolean isGroovyLoggingEnabled()Return true if Groovy Service Logging is enabled by default.- Returns:
- true if Groovy Service Logging is enabled by default
- Since:
- 4.2.0
-
getGroovyScriptTimeout
public int getGroovyScriptTimeout()Return the GroovyScript execution timeout in milliseconds.- Returns:
- the GroovyScript execution timeout in milliseconds
- Since:
- 4.2.0
-
isInsightsEnabled
public boolean isInsightsEnabled()- Returns:
- true if Insights analytics is enabled
- Since:
- 4.3.3
-
isLCFormServersDeployed
public boolean isLCFormServersDeployed()Deprecated.LC support has been removedReturn true if Adobe LiveCycle Form Servers are deployed.- Returns:
- false
- Since:
- 4.0.0
-
isLCFormServersLoadBalanced
public boolean isLCFormServersLoadBalanced()Deprecated.LC support has been removedReturn true if Adobe LiveCycle Form Servers are Load Balanced.- Returns:
- false
- Since:
- 4.0.0
-
isServerRealTimeHeathMonitoring
public boolean isServerRealTimeHeathMonitoring()Return true if Server Real-Time Heath Monitoring is enabled.- Returns:
- true if Server Real-Time Heath Monitoring is enabled
- Since:
- 4.0.0
-
isExceptionDebugLoggingEnabled
public boolean isExceptionDebugLoggingEnabled()Return true if Exception Debug Logging is enabled by default.- Returns:
- true if Exception Debug Logging is enabled by default
- Since:
- 19.5.3
-
isExportServiceConnectionPasswordsEnabled
public boolean isExportServiceConnectionPasswordsEnabled()Return true if exporting of passwords in service connections is enabled- Returns:
- true if the value of
DeploymentProperty.PROPERTY_EXPORT_SERVICE_CONNECTION_PASSWORDS_ENABLED
is true - Since:
- 22.04.0
-
isDataRetentionRunningIndependently
public boolean isDataRetentionRunningIndependently()Return true if Data Retention is run independently of Transaction Processor- Returns:
- true if the value of
DeploymentProperty.PROPERTY_Run_Data_Retention_Independently
is true - Since:
- 23.10.0
-
isXssControlProtectionEnabled
public boolean isXssControlProtectionEnabled()Return true if xss protection is enabled on none safe controls.- Returns:
- true if the value of
DeploymentProperty.PROPERTY_ENABLE_XSS_CONTROL_PROTECTION
is true - Since:
- 22.04.0
-
isTransformFromJavaxToJakartaOnImportEnabled
public boolean isTransformFromJavaxToJakartaOnImportEnabled()Return true if javax to jakarta transformation on import is enabled.- Returns:
- true if the value of
DeploymentProperty.PROPERTY_ENABLE_JAVAX_TO_JAKARTA_ON_IMPORT
is true - Since:
- 23.4.2
-
getAllowedAttachmentFileNameExt
Return set of allowed attachment file name extensions- Returns:
- set of allowed attachment file name extensions
- Since:
- 19.11.0
-
isFluentAPIUserPermissionCheckActive
public boolean isFluentAPIUserPermissionCheckActive()Return whether Fluent API user permission check flag is active or not- Returns:
- true if the value of
DeploymentProperty.PROPERTY_Fluent_API_User_Permission_Check
is true - Since:
- 21.11.0
-
getEmailFloodThreshold
public int getEmailFloodThreshold()Return the email flood threshold value- Returns:
- Email Flood Threshold value
- Since:
- 22.4.0
-
isVirusScanForUploadsEnabled
public boolean isVirusScanForUploadsEnabled()Return true if virus scan is enabled for JM uploads.- Returns:
- true if the value of
DeploymentProperty.PROPERTY_ENABLE_VIRUS_SCAN_FOR_UPLOADS
is true - Since:
- 23.04.2
-
loadDefaultProperties
public void loadDefaultProperties()Load the default values of the system deployment properties. Current property values are not overwritten. -
registerDeploymentProperty
Register a new deployment property. Note that if a deployment property with the given name already exists, no action is taken.- Parameters:
name
- the name of the deployment propertytype
- the data typevalue
- the new valuedescription
- the description
-