Package uk.ac.osswatch.simal.wicket

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


    }
  }

  private void populatePage() {
    if (project == null) {
      UserReportableException error = new UserReportableException(
          "Null project supplied.", ProjectDetailPage.class);
        setResponsePage(new ErrorReportPage(error));
        return;
    }
    add(new DeleteLink("deleteProjectActionLink", project));

    try {
      RESTCommand cmd = RESTCommand.createGetProject(project.getSimalID(),
          RESTCommand.TYPE_SIMAL, RESTCommand.FORMAT_XML);
      add(new ExternalLink("doapLink", cmd.getURL()));
      String rdfLink = "<link href=\"" + cmd.getURL()
          + "\" rel=\"meta\" title=\"DOAP\" type=\"application/rdf+xml\" />";
      add(new StringHeaderContributor(rdfLink));
     
      cmd = RESTCommand.createGetProject(project.getSimalID(),
      RESTCommand.TYPE_SIMAL, RESTCommand.FORMAT_JSON);
      add(new ExternalLink("jsonLink", cmd.getURL()));
      String jsonLink = "<link href=\"" + cmd.getURL()
          + "\" rel=\"meta\" title=\"JSON\" type=\"application/json\" />";
      add(new StringHeaderContributor(rdfLink));
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get new person ID from the repository",
          ExhibitProjectBrowserPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    } catch (SimalAPIException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get a RESTful URI for the project RDF/XML document",
          ProjectDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
View Full Code Here


          break;
        }
      }
      getUpdatePanel().addToDisplayList(person);
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to generate a person from the given form data",
          ProjectDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

  public PersonListPage() {
    try {
    add(new PersonListPanel("personList", "Person List", 15));
  } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
                "Unable to list people in the repository",
                PersonListPage.class, e);
            setResponsePage(new ErrorReportPage(error));
  }
  }
View Full Code Here

        project.removeHelper(person);
        project.removeMaintainer(person);
        project.removeTester(person);
        project.removeTranslator(person);
      } catch (SimalRepositoryException e) {
        throw new UserReportableException("Unable to removePerson",
            PersonSummaryPanel.class, e);
      }
    } else {
      throw new UserReportableException(
          "Unable to removePerson when parent page is type "
              + page.getClass().getName(), PersonSummaryPanel.class);
    }
  }
View Full Code Here

        populateMailingListDetails();
        populateStaffDetails();
        populateBugDatabaseDetails();
        populateReleaseDetails();
    } catch (SimalRepositoryException e) {
          UserReportableException error = new UserReportableException(
                  "Unable to get repository statistics", ProjectsSummaryReportPage.class, e);
          setResponsePage(new ErrorReportPage(error));
    }
    }
View Full Code Here

        Set<IProject> projects = SimalRepositoryFactory.getProjectService()
            .getProjectsWithoutRelease();
        ProjectBrowserPage page = new ProjectBrowserPage(projects);
        setResponsePage(page);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get projects without releases",
            ProjectsSummaryReportPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    }
View Full Code Here

        Set<IProject> projects = SimalRepositoryFactory.getProjectService()
            .getProjectsWithRelease();
        ProjectBrowserPage page = new ProjectBrowserPage(projects);
        setResponsePage(page);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get projects without releases",
            ProjectsSummaryReportPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    }
View Full Code Here

        Set<IProject> projects = SimalRepositoryFactory.getProjectService()
            .getProjectsWithoutBugDatabase();
        ProjectBrowserPage page = new ProjectBrowserPage(projects);
        setResponsePage(page);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get projects without bug database",
            ProjectsSummaryReportPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    }
View Full Code Here

        Set<IProject> projects = SimalRepositoryFactory.getProjectService()
            .getProjectsWithBugDatabase();
        ProjectBrowserPage page = new ProjectBrowserPage(projects);
        setResponsePage(page);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get projects with bug database",
            ProjectsSummaryReportPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    }
View Full Code Here

        Set<IProject> projects = SimalRepositoryFactory.getProjectService()
            .getProjectsWithoutMaintainer();
        ProjectBrowserPage page = new ProjectBrowserPage(projects);
        setResponsePage(page);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get projects without maintainer",
            ProjectsSummaryReportPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
    }
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.wicket.UserReportableException

Copyright © 2018 www.massapicom. 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.