propertyName = propertyName.substring(0, t); if (!TablePropertyDefinitionUtils.isPropertyExist(propertyName)) { throw new InvalidFileNamePatternException( "Wrong file name pattern! Unknown property: " + propertyName);
propertyName = propertyName.substring(0, t); if (!TablePropertyDefinitionUtils.isPropertyExist(propertyName)) { throw new InvalidFileNamePatternException( "Wrong file name pattern! Unknown property: " + propertyName);
private void initSearchQuery() { String query = FacesUtils.getRequestParameter(SEARCH_PARAMS[0]); String tableTypes = FacesUtils.getRequestParameter(SEARCH_PARAMS[1]); String tableHeader = FacesUtils.getRequestParameter(SEARCH_PARAMS[2]); if (StringUtils.isNotBlank(query)) { // Replace all non-breaking spaces by breaking spaces String spaceToRemove = Character.toString((char) 160); query = query.replaceAll(spaceToRemove, " "); this.query = query; } if (StringUtils.isNotBlank(tableTypes)) { this.tableTypes = tableTypes.split("-"); } this.tableHeader = tableHeader; // Init properties query Map<String, String> requestParams = FacesUtils.getRequestParameterMap(); for (Map.Entry<String, String> entry: requestParams.entrySet()) { String paramName = entry.getKey(); if (!ArrayUtils.contains(SEARCH_PARAMS, paramName) && TablePropertyDefinitionUtils.isPropertyExist(paramName)) { TableProperty property = getPropertyByName(paramName); String propertyValue = entry.getValue(); property.setStringValue(propertyValue); } } }
private void initSearchQuery() { String query = FacesUtils.getRequestParameter(SEARCH_PARAMS[0]); String tableTypes = FacesUtils.getRequestParameter(SEARCH_PARAMS[1]); String tableHeader = FacesUtils.getRequestParameter(SEARCH_PARAMS[2]); if (StringUtils.isNotBlank(query)) { // Replace all non-breaking spaces by breaking spaces String spaceToRemove = Character.toString((char) 160); query = query.replaceAll(spaceToRemove, " "); this.query = query; } if (StringUtils.isNotBlank(tableTypes)) { this.tableTypes = tableTypes.split("-"); } this.tableHeader = tableHeader; // Init properties query Map<String, String> requestParams = FacesUtils.getRequestParameterMap(); for (Map.Entry<String, String> entry: requestParams.entrySet()) { String paramName = entry.getKey(); if (!ArrayUtils.contains(SEARCH_PARAMS, paramName) && TablePropertyDefinitionUtils.isPropertyExist(paramName)) { TableProperty property = getPropertyByName(paramName); String propertyValue = entry.getValue(); property.setStringValue(propertyValue); } } }