Class DeploymentPropertyDao


public class DeploymentPropertyDao extends AbstractDao
Provides a DAO for the DeploymentProperty entity.
See Also:
  • Constructor Details

    • DeploymentPropertyDao

      public DeploymentPropertyDao()
  • Method Details

    • refreshCache

      public void refreshCache()
      Clear the deployment property cache.
    • getDeploymentPropertyForPK

      public DeploymentProperty getDeploymentPropertyForPK(Object id)
      Return the deployment property with the specified OID
      Parameters:
      id - the OID
      Returns:
      the matching deployment property, or null if not found
    • getDeploymentPropertyList

      public List<DeploymentProperty> getDeploymentPropertyList(String keyword)
      Return the list of deployment properties matching the specified search criteria
      Parameters:
      keyword - the search keyword
      Returns:
      the list of matching deployment properties
    • hasProperty

      public boolean hasProperty(String name)
      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

      public DeploymentProperty getProperty(String name)
      Return the deployment property with the given name.
      Parameters:
      name - the name of the deployment property
      Returns:
      the deployment property
    • getPropertyValue

      public String getPropertyValue(String name) throws ApplicationException
      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

      public DateFormat getPropertyDateFormat(String name)
      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

      public int getPropertyValueInt(String name) throws ApplicationException
      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 exist
      NumberFormatException - if the deployment property value could not be converted to an int value
    • getPropertyValueLong

      public long getPropertyValueLong(String name) throws ApplicationException
      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 exist
      NumberFormatException - if the deployment property value could not be converted to a long value
    • getPropertyValueBoolean

      public boolean getPropertyValueBoolean(String name) throws ApplicationException
      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

      public String getConfigSubDirectory(String subdirectory)
      Return the specified sub folder under the configured root Journey Manager directory (defined in DeploymentProperty.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 removed
      Return true if Adobe LiveCycle Form Servers are deployed.
      Returns:
      false
      Since:
      4.0.0
    • isLCFormServersLoadBalanced

      public boolean isLCFormServersLoadBalanced()
      Deprecated.
      LC support has been removed
      Return 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

      public Set<String> 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

      public void registerDeploymentProperty(String name, String type, String value, String description)
      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 property
      type - the data type
      value - the new value
      description - the description