Class PropertiesVariableExpression

java.lang.Object
org.broadleafcommerce.common.web.expression.PropertiesVariableExpression
All Implemented Interfaces:
BroadleafVariableExpression

@Component("blPropertiesVariableExpression") @ConditionalOnTemplating public class PropertiesVariableExpression extends Object implements BroadleafVariableExpression

This Thymeleaf variable expression class provides access to runtime configuration properties that are configured in development.properties, development-shared.properties, etc, for the current environment.

This also includes properties that have been saved/overwritten in the database via SystemProperty.

Author:
Andre Azzolini (apazzolini)
  • Constructor Details

    • PropertiesVariableExpression

      public PropertiesVariableExpression()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface BroadleafVariableExpression
    • get

      public String get(String propertyName)
    • getAsInt

      public int getAsInt(String propertyName)
    • getAsBoolean

      public boolean getAsBoolean(String propertyName)
    • getAsLong

      public long getAsLong(String propertyName)
    • getForceShowIdColumns

      public boolean getForceShowIdColumns()
      Returns true if the listGrid.forceShowIdColumns system property or a showIds request parameter is set to true. Used in the admin to show ID columns when displaying list grids.