コード例 #1
0
ファイル: Navigation.java プロジェクト: MPDL-Collections/INGe
  /**
   * Callback method that is called whenever a page containing this page fragment is navigated to,
   * either directly via a URL, or indirectly via page navigation.
   */
  public void init() {

    // Perform initializations inherited from our superclass
    super.init();
    // initially sets the navigation rules for redirecting after changing the language
    navRules = new ArrayList<NavigationRule>();
    this.navRules.add(new NavigationRule("/faces/HomePage.jsp", Home.LOAD_HOME));
    this.navRules.add(
        new NavigationRule(
            "/faces/DepositorWSPage.jsp", MyItemsRetrieverRequestBean.LOAD_DEPOSITORWS));
    this.navRules.add(new NavigationRule("/faces/EditItemPage.jsp", EditItem.LOAD_EDITITEM));
    this.navRules.add(
        new NavigationRule("/faces/viewItemFullPage.jsp", ViewItemFull.LOAD_VIEWITEM));
    this.navRules.add(
        new NavigationRule(
            "/faces/SearchResultListPage.jsp", SearchRetrieverRequestBean.LOAD_SEARCHRESULTLIST));
    this.navRules.add(
        new NavigationRule(
            "/faces/AffiliationTreePage.jsp", AffiliationBean.LOAD_AFFILIATION_TREE));
    this.navRules.add(
        new NavigationRule(
            "/faces/ViewItemRevisionsPage.jsp", ViewItemRevisionsPage.LOAD_VIEWREVISIONS));
    this.navRules.add(
        new NavigationRule(
            "/faces/ViewItemReleaseHistoryPage.jsp", ReleaseHistory.LOAD_RELEASE_HISTORY));
    this.navRules.add(
        new NavigationRule("/faces/AdvancedSearchPage.jsp", AdvancedSearchEdit.LOAD_SEARCHPAGE));
    this.navRules.add(
        new NavigationRule("/faces/EasySubmissionPage.jsp", EasySubmission.LOAD_EASYSUBMISSION));
  }
コード例 #2
0
  /**
   * Callback method that is called whenever a page containing this page fragment is navigated to,
   * either directly via a URL, or indirectly via page navigation.
   */
  @Override
  public void init() {
    // Perform initializations inherited from our superclass
    super.init();
    checkForLogin();
    // redirect to the referring GUI Tool page if the application has been started as GUI Tool

  }