public static double getDouble( UnicodeProperties properties, PortletRequest portletRequest, String param, double defaultValue, Locale locale) { String propertiesValue = properties.getProperty(param, null); double getterUtilValue = GetterUtil.getDouble( propertiesValue, defaultValue); return ParamUtil.getDouble( portletRequest, param, getterUtilValue, locale); }
public static boolean getBoolean( UnicodeProperties properties, PortletRequest portletRequest, String param, boolean defaultValue) { String propertiesValue = properties.getProperty(param, null); boolean getterUtilValue = GetterUtil.getBoolean( propertiesValue, defaultValue); return ParamUtil.get(portletRequest, param, getterUtilValue); }
public static double getDouble( UnicodeProperties properties, HttpServletRequest request, String param, double defaultValue, Locale locale) { String propertiesValue = properties.getProperty(param, null); double getterUtilValue = GetterUtil.getDouble( propertiesValue, defaultValue); return ParamUtil.getDouble(request, param, getterUtilValue, locale); }
public static int getInteger( UnicodeProperties properties, HttpServletRequest request, String param, int defaultValue) { String propertiesValue = properties.getProperty(param, null); int getterUtilValue = GetterUtil.getInteger( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
public static long getLong( UnicodeProperties properties, PortletRequest portletRequest, String param, long defaultValue) { String propertiesValue = properties.getProperty(param, null); long getterUtilValue = GetterUtil.getLong( propertiesValue, defaultValue); return ParamUtil.get(portletRequest, param, getterUtilValue); }
public static boolean getBoolean( UnicodeProperties properties, HttpServletRequest request, String param, boolean defaultValue) { String propertiesValue = properties.getProperty(param, null); boolean getterUtilValue = GetterUtil.getBoolean( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
public static double getDouble( UnicodeProperties properties, PortletRequest portletRequest, String param, double defaultValue) { String propertiesValue = properties.getProperty(param, null); double getterUtilValue = GetterUtil.getDouble( propertiesValue, defaultValue); return ParamUtil.get(portletRequest, param, getterUtilValue); }
public static int getInteger( UnicodeProperties properties, PortletRequest portletRequest, String param, int defaultValue) { String propertiesValue = properties.getProperty(param, null); int getterUtilValue = GetterUtil.getInteger( propertiesValue, defaultValue); return ParamUtil.get(portletRequest, param, getterUtilValue); }
public static String getString( UnicodeProperties properties, PortletRequest portletRequest, String param, String defaultValue) { String propertiesValue = properties.getProperty(param, null); String getterUtilValue = GetterUtil.getString( propertiesValue, defaultValue); return ParamUtil.get(portletRequest, param, getterUtilValue); }
protected Date getLayoutSetLastPublishDate(long groupId) throws Exception { try (PreparedStatement ps = connection.prepareStatement( "select settings_ from LayoutSet where groupId = ?")) { ps.setLong(1, groupId); try (ResultSet rs = ps.executeQuery()) { while (rs.next()) { UnicodeProperties settingsProperties = new UnicodeProperties(true); settingsProperties.load(rs.getString("settings_")); String lastPublishDateString = settingsProperties.getProperty("last-publish-date"); if (Validator.isNotNull(lastPublishDateString)) { return new Date( GetterUtil.getLong(lastPublishDateString)); } } return null; } } }
public static long getLong( UnicodeProperties properties, HttpServletRequest request, String param, long defaultValue) { String propertiesValue = properties.getProperty(param, null); long getterUtilValue = GetterUtil.getLong( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
public static String getString( UnicodeProperties properties, HttpServletRequest request, String param, String defaultValue) { String propertiesValue = properties.getProperty(param, null); String getterUtilValue = GetterUtil.getString( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
public static double getDouble( UnicodeProperties properties, HttpServletRequest request, String param, double defaultValue) { String propertiesValue = properties.getProperty(param, null); double getterUtilValue = GetterUtil.getDouble( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
oldUnicodeProperties.getProperty(propertyKey)); unicodeProperties.getProperty(propertyKey));
unicodeProperties.getProperty(propertyKey));
public static RatingsType getRatingsType( long companyId, long groupId, String className) throws PortalException { RatingsType defaultRatingsType = getDefaultRatingsType(className); if (defaultRatingsType != null) { String propertyKey = RatingsDataTransformerUtil.getPropertyKey( className); PortletPreferences companyPortletPreferences = PrefsPropsUtil.getPreferences(companyId); String value = companyPortletPreferences.getValue( propertyKey, defaultRatingsType.getValue()); Group group = GroupLocalServiceUtil.getGroup(groupId); UnicodeProperties groupTypeSettings = group.getTypeSettingsProperties(); value = groupTypeSettings.getProperty(propertyKey, value); return RatingsType.parse(value); } return null; }
protected void addSearchExpandoKeywords( BooleanQuery searchQuery, SearchContext searchContext, String keywords, String className) throws Exception { ExpandoBridge expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge( searchContext.getCompanyId(), className); Set<String> attributeNames = SetUtil.fromEnumeration( expandoBridge.getAttributeNames()); for (String attributeName : attributeNames) { UnicodeProperties properties = expandoBridge.getAttributeProperties( attributeName); int indexType = GetterUtil.getInteger( properties.getProperty(ExpandoColumnConstants.INDEX_TYPE)); if (indexType != ExpandoColumnConstants.INDEX_TYPE_NONE) { String fieldName = getExpandoFieldName( searchContext, expandoBridge, attributeName); if (searchContext.isAndSearch()) { searchQuery.addRequiredTerm(fieldName, keywords); } else { searchQuery.addTerm(fieldName, keywords); } } } }
public static int getInteger( UnicodeProperties properties, HttpServletRequest request, String param, int defaultValue) { String propertiesValue = properties.getProperty(param, null); int getterUtilValue = GetterUtil.getInteger( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
public static String getString( UnicodeProperties properties, HttpServletRequest request, String param, String defaultValue) { String propertiesValue = properties.getProperty(param, null); String getterUtilValue = GetterUtil.getString( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }
public static double getDouble( UnicodeProperties properties, HttpServletRequest request, String param, double defaultValue) { String propertiesValue = properties.getProperty(param, null); double getterUtilValue = GetterUtil.getDouble( propertiesValue, defaultValue); return ParamUtil.get(request, param, getterUtilValue); }