Examples of RPSearchDTO


Examples of org.dspace.app.webui.cris.dto.RPSearchDTO

  public boolean supports(Class arg0) {
    return clazz.isAssignableFrom(arg0);
  }

  public void validate(Object arg0, Errors arg1) {
    RPSearchDTO dto = (RPSearchDTO) arg0;

    if (dto.getSearchMode() != null) {
      if (dto.getAdvancedSyntax()) {
        ValidationUtils.rejectIfEmptyOrWhitespace(arg1, "queryString",
            "error.validation.hku.search.query.empty");
      }
    } else if (dto.getStaffNoSearchMode() != null) {
      ValidationUtils.rejectIfEmptyOrWhitespace(arg1, "staffQuery",
          "error.validation.hku.search.query.empty");
    } else if (dto.getRpSearchMode() != null) {
      String query = dto.getRpQuery();
      ValidationUtils.rejectIfEmptyOrWhitespace(arg1, "rpQuery",
          "error.validation.hku.search.query.empty");
      if (query != null) {
        if (!(((query.toLowerCase().startsWith("rp")
            && StringUtils.isNumeric(query.substring(2)) && query
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.