@Override public boolean getAutomaticallyMergeLikeItems() { if (automaticallyMergeLikeItems != null) { return automaticallyMergeLikeItems; } return BLCSystemProperty.resolveBooleanSystemProperty("automatically.merge.like.items", true); }
@Override public Boolean shouldUseSecureCookieIfApplicable() { return BLCSystemProperty.resolveBooleanSystemProperty("cookies.use.secure", false); }
protected boolean isGeolocationEnabled() { return BLCSystemProperty.resolveBooleanSystemProperty("geolocation.api.enabled", false); } }
public boolean isValidateFullNameOnly() { return BLCSystemProperty.resolveBooleanSystemProperty("validator.address.fullNameOnly"); }
protected boolean getOnlyStartsWith() { return BLCSystemProperty.resolveBooleanSystemProperty("admin.search.string.onlyStartsWith"); }
protected boolean getTranslationEnabled() { return BLCSystemProperty.resolveBooleanSystemProperty("i18n.translation.enabled"); }
/** * Whether or not items across the entire order should be considered in item-level qualifiers for the given fulfillment * group. Default behavior is to use only the items within the fulfillment group for the item-level qualifiers. * * @param fg the fulfillment group that we are attempting to apply item-level qualifiers to * @return */ protected boolean getQualifyGroupAcrossAllOrderItems(PromotableFulfillmentGroup fg) { return BLCSystemProperty.resolveBooleanSystemProperty("promotion.fulfillmentgroup.qualifyAcrossAllOrderItems", false); }
protected boolean getRequireUniqueEmailAddress() { return BLCSystemProperty.resolveBooleanSystemProperty("admin.user.requireUniqueEmailAddress"); }
protected boolean getRequireLeadingSlash() { return BLCSystemProperty.resolveBooleanSystemProperty("uriPropertyValidator.requireLeadingSlash"); }
public boolean isIncludeDisplayAdvertising() { return BLCSystemProperty.resolveBooleanSystemProperty("googleAnalytics.enableDisplayAdvertising", false); }
protected boolean getGzipSiteMapFilesDefault() { return BLCSystemProperty.resolveBooleanSystemProperty("sitemap.gzip.files"); }
protected boolean getTranslationEnabled() { return BLCSystemProperty.resolveBooleanSystemProperty("i18n.translation.enabled"); }
protected boolean getClearCartOnLocaleSwitch() { return BLCSystemProperty.resolveBooleanSystemProperty("clearCartOnLocaleSwitch"); }
public boolean isCustomValidationEnabled() { return BLCSystemProperty.resolveBooleanSystemProperty("validator.custom.enabled"); }
protected boolean getAllowTrailingSlash() { return BLCSystemProperty.resolveBooleanSystemProperty("uriPropertyValidator.allowTrailingSlash"); }
public boolean getCreateSiteMapIfNotFound() { return BLCSystemProperty.resolveBooleanSystemProperty("sitemap.createIfNotFound"); }
protected Boolean getDatabaseOrderLockSessionAffinity() { return BLCSystemProperty.resolveBooleanSystemProperty("order.lock.database.session.affinity", true); }
public boolean getAutoGenerateSiteMapAfterTimeout() { return BLCSystemProperty.resolveBooleanSystemProperty("sitemap.createIfTimeoutExpired",false); }
/** * Returns true if the <b>listGrid.forceShowIdColumns</b> system property or a <b>showIds</b> request parameter is set * to true. Used in the admin to show ID columns when displaying list grids. */ public boolean getForceShowIdColumns() { HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); boolean forceShow = BLCSystemProperty.resolveBooleanSystemProperty("listGrid.forceShowIdColumns"); forceShow = forceShow || "true".equals(request.getParameter("showIds")); return forceShow; }
@Override public boolean isActive() { Long date = SystemTime.asMillis(true); boolean isNullActiveStartDateActive = BLCSystemProperty.resolveBooleanSystemProperty("searchRedirect.is.null.activeStartDate.active"); boolean isActive; if (isNullActiveStartDateActive) { isActive = (getActiveStartDate() == null || getActiveStartDate().getTime() <= date) && (getActiveEndDate() == null || getActiveEndDate().getTime() > date); } else { isActive = (getActiveStartDate() != null && getActiveStartDate().getTime() <= date) && (getActiveEndDate() == null || getActiveEndDate().getTime() > date); } if (LOG.isDebugEnabled() && !isActive) { LOG.debug("product, " + id + ", inactive due to date"); } return isActive; }