Package org.apache.wicket.authorization

Examples of org.apache.wicket.authorization.UnauthorizedInstantiationException


    @Override
    public void onUnauthorizedInstantiation(final Component component) {
        SyncopeSession.get().invalidate();

        if (component instanceof Page) {
            throw new UnauthorizedInstantiationException(component.getClass());
        }

        throw new RestartResponseAtInterceptPageException(Login.class);
    }
View Full Code Here


    @Override
    public void onUnauthorizedInstantiation(final Component component) {
        SyncopeSession.get().invalidate();

        if (component instanceof Page) {
            throw new UnauthorizedInstantiationException(component.getClass());
        }

        throw new RestartResponseAtInterceptPageException(Login.class);
    }
View Full Code Here

            throw new RestartResponseAtInterceptPageException(signInPageClass);
          }
          else
          {
            // The component was not a page, so throw exception
            throw new UnauthorizedInstantiationException(component.getClass());
          }
        }
      });
  }
View Full Code Here

          if (log.isErrorEnabled())
          {
            log.error("user is trying to access class: " + pageParam +
              " which is not in the scope of org.apache.wicket.examples");
          }
          throw new UnauthorizedInstantiationException(getClass());
        }
        page = (Class<? extends Page>)Class.forName(getPageParam());
      }
      catch (ClassNotFoundException e)
      {
View Full Code Here

    add (new BookmarkablePageLink<Void>("register", ISIApplication.get().getRegisterPageClass()).setVisible(ISIApplication.get().isSelfRegisterOn()));
   
    AuthApplication<User> app = null;
    try { app = ((AuthApplication<User>)Application.get()); } catch (ClassCastException e) { }
    if (app == null || !app.getSignInPageClass().isInstance(this))
      throw new UnauthorizedInstantiationException(Login.class);
    if (params != null) {
      String username = params.getString("username");
      String token = params.getString("token");

      if (username != null && token != null) {
View Full Code Here

      }
    }
    else
    {
      // The component was not a page, so throw an exception
      throw new UnauthorizedInstantiationException(component.getClass());
    }
  }
View Full Code Here

   * @param page
   *            The partially constructed page (only the component id is guaranteed to be valid).
   */
  protected void onUnauthorizedPage(final Component page)
  {
    throw new UnauthorizedInstantiationException(page.getClass());
  }
View Full Code Here

      }
    }
    else
    {
      // The component was not a page, so throw an exception
      throw new UnauthorizedInstantiationException(component.getClass());
    }
  }
View Full Code Here

   *            The page
   */
  protected void onUnauthorizedPage(final Page page)
  {
    // The component was not a page, so throw an exception
    throw new UnauthorizedInstantiationException(page.getClass());
  }
View Full Code Here

          if (log.isErrorEnabled())
          {
            log.error("user is trying to access class: " + pageParam +
              " which is not in the scope of org.apache.wicket.examples");
          }
          throw new UnauthorizedInstantiationException(getClass());
        }
        page = (Class<? extends Page>)Class.forName(getPageParam());
      }
      catch (ClassNotFoundException e)
      {
View Full Code Here

TOP

Related Classes of org.apache.wicket.authorization.UnauthorizedInstantiationException

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.