Package org.apache.wicket

Examples of org.apache.wicket.RestartResponseException


{
  public PageExpiredPage(final PageParameters params)
  {
    super(params);
    if (getMySession().isMobileUserAgent() == true) {
      throw new RestartResponseException(MenuMobilePage.class);
    }
    setMessage(getString("message.wicket.pageExpired"));
  }
View Full Code Here


  public ChangePasswordPage(final PageParameters parameters)
  {
    super(parameters);
    if (Login.getInstance().isPasswordChangeSupported(getUser()) == false) {
      throw new RestartResponseException(new MessagePage("user.changePassword.notSupported"));
    }
    form = new ChangePasswordForm(this);
    body.add(form);
    form.init();
  }
View Full Code Here

          configurationDao.checkAndUpdateDatabaseEntries();
          final ConfigurationDO configurationDO = configurationDao.getEntry(ConfigurationParam.CALENDAR_DOMAIN);
          final ConfigurationEditPage configurationEditPage = new ConfigurationEditPage(new PageParameters().add(
              AbstractEditPage.PARAMETER_KEY_ID, configurationDO.getId()));
          configurationEditPage.setReturnToPage(new SystemUpdatePage(new PageParameters()));
          throw new RestartResponseException(configurationEditPage);
        }
      }

      /**
       * @see org.projectforge.continuousdb.UpdateEntry#createMissingIndices()
View Full Code Here

  public AbstractSecuredBasePage(final PageParameters parameters)
  {
    super(parameters);
    if (isAccess4restrictedUsersAllowed() == false && (getUser() == null || getUser().isRestrictedUser() == true)) {
      throw new RestartResponseException(ChangePasswordPage.class);
    }
  }
View Full Code Here

  private void checkAccess()
  {
    if (initDatabaseDao.isEmpty() == false) {
      log.error("Couldn't call set-up page, because the data-base isn't empty!");
      ((MySession) getSession()).logout();
      throw new RestartResponseException(WicketUtils.getDefaultPage());
    }
  }
View Full Code Here

    if( notLoggedIn ) {
      // the login page
      throw new RestartResponseAtInterceptPageException( page );
    }
    // the unauthorized page
    throw new RestartResponseException( page );
  }
View Full Code Here

        final String oidStr = (String) event.getEvent().getPayload();
        final RootOid oid = RootOidDefault.deString(oidStr, getOidMarshaller());
        final ObjectAdapter adapter = getAdapterManager().adapterFor(oid);
        final PageParameters params = new EntityModel(adapter).asPageParameters();
        throw new RestartResponseException(EntityPage.class, params);
    }
View Full Code Here

    }
   
    @OnEvent(types = Company.class)
    public void handleCompanyPersonEvent(final SaveEvent<Company> event)
    {
      throw new RestartResponseException(new Page()
      {
      });
    }
View Full Code Here

    if (notLoggedIn)
      // the login page
      throw new RestartResponseAtInterceptPageException(page);
    // the unauthorized page
    throw new RestartResponseException(page);
  }
View Full Code Here

      getUser().removeAttribute(UserFilter.USER_ATTR_STAY_LOGGED_IN);
      if (WicketUtils.contains(parameters, PARAM_HOME_KEY) == false) {
        final RecentMobilePageInfo pageInfo = (RecentMobilePageInfo) UserPreferencesHelper
            .getEntry(AbstractSecuredMobilePage.USER_PREF_RECENT_PAGE);
        if (pageInfo != null && pageInfo.getPageClass() != null) {
          throw new RestartResponseException((Class< ? extends Page>) pageInfo.getPageClass(), pageInfo.restorePageParameters());
        }
      }
    }
    setNoBackButton();
    final ListViewPanel listViewPanel = new ListViewPanel("menu");
View Full Code Here

TOP

Related Classes of org.apache.wicket.RestartResponseException

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.