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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAsBoolean
(String propertyName) int
long
boolean
Returns true if the listGrid.forceShowIdColumns system property or a showIds request parameter is set to true.getName()
-
Constructor Details
-
PropertiesVariableExpression
public PropertiesVariableExpression()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceBroadleafVariableExpression
-
get
-
getAsInt
-
getAsBoolean
-
getAsLong
-
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.
-