Examples of ErrorReportPage


Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

    try {
      populatePage(category);
    } catch (SimalException e) {
      UserReportableException error = new UserReportableException(
          "Unable to create category detail page", CategoryDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

        populatePage(category);
      } catch (SimalException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get category from the repository",
            CategoryDetailPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    } else {
      UserReportableException error = new UserReportableException(
          "Unable to get simalID parameter from URL", CategoryDetailPage.class);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

      add(new CategoryListPanel("categoryList", "Categories"));
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get categories from the repository",
          CategoryBrowserPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

    if (parameters.containsKey("filter")) {
        populatePage(parameters.getString("filter"));
    } else {
        UserReportableException error = new UserReportableException(
              "Invalid parameters", PersonListPage.class);
      setResponsePage(new ErrorReportPage(error));
      }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

        add(new BookmarkablePageLink<PersonBrowserPage>("filterWithWLink", PersonBrowserPage.class, new PageParameters("filter=^w(.*)")));
        add(new BookmarkablePageLink<PersonBrowserPage>("filterWithXYZLink", PersonBrowserPage.class, new PageParameters("filter=^[xyz](.*)")));
      } catch (SimalRepositoryException e) {
          UserReportableException error = new UserReportableException(
                "Unable to retrieve people to list", PersonListPage.class);
        setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

      add(new PersonListPanel("colleaguesList", "Colleagues", person
          .getColleagues(), 15));
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get people from the repository", ColleaguesPanel.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

        String[] emails = (String[]) parameters.get("email");
        String email = emails[0];
        if (email == null || email.length() == 0) {
            UserReportableException error = new UserReportableException(
                  "Must provide an email in the request URL", PersonDetailPage.class);
          setResponsePage(new ErrorReportPage(error));
        }
        person = SimalRepositoryFactory.getPersonService().findBySha1Sum(RDFUtils.getSHA1(email));
      } else {
        UserReportableException error = new UserReportableException(
            "URL does not have sufficient parameters for finding a unique person", PersonDetailPage.class);
        setResponsePage(new ErrorReportPage(error));
      }
     
      if (person == null) {
          setResponsePage(new PersonListPage());
      } else {
          populatePage(person);
      }
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
        "Unable to get person from the repository", PersonDetailPage.class,
        e);
      setResponsePage(new ErrorReportPage(error));
    } catch (NoSuchAlgorithmException e) {
        UserReportableException error = new UserReportableException(
                "Unable to calculate SHA1 has for email", PersonDetailPage.class,
                e);
        setResponsePage(new ErrorReportPage(error));
  }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

    try {
      populatePage(person);
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to populate person detail page", PersonDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

      add(new StringHeaderContributor(rdfLink));
    } catch (SimalAPIException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get a RESTful URI for the person RDF/XML document",
          PersonDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.ErrorReportPage

        populatePage();
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get project from the repository",
            ProjectDetailPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    } else {
      UserReportableException error = new UserReportableException(
          "Unable to get simalID parameter from URL", ProjectDetailPage.class);
      setResponsePage(new ErrorReportPage(error));
    }
  }
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.