/** * The URL query string of of the previous page. * * Note: the query string does not start with a "?" or "&" those need to be * added as appropriate by the caller. */ private String getPreviousPageURL(BrowseParams params, BrowseInfo info) throws SQLException, UIException { // Don't create a previous page link if this is the first page if (info.isFirst()) { return null; } Map<String, String> parameters = new HashMap<String, String>(); parameters.putAll(params.getCommonParametersEncoded()); parameters.putAll(params.getControlParameters()); if (info.hasPrevPage()) { parameters.put(BrowseParams.OFFSET, encodeForURL(String.valueOf(info.getPrevOffset()))); } return super.generateURL(BROWSE_URL_BASE, parameters); }
/** * The URL query string of of the previous page. * * Note: the query string does not start with a "?" or "&" those need to be * added as appropriate by the caller. */ private String getPreviousPageURL(BrowseParams params, BrowseInfo info) throws SQLException, UIException { // Don't create a previous page link if this is the first page if (info.isFirst()) { return null; } Map<String, String> parameters = new HashMap<String, String>(); parameters.putAll(params.getCommonParameters()); parameters.putAll(params.getControlParameters()); if (info.hasPrevPage()) { parameters.put(BrowseParams.OFFSET, encodeForURL(String.valueOf(info.getPrevOffset()))); } return super.generateURL(WITHDRAWN_URL_BASE, parameters); }