Package org.apache.wicket.authroles.authorization.strategies.role

Examples of org.apache.wicket.authroles.authorization.strategies.role.Roles


   * @return the authorization roles for the method. {@link AuthorizeInvocation}
   */
  private Roles loadRoles()
  {
    AuthorizeInvocation authorizeInvocation = method.getAnnotation(AuthorizeInvocation.class);
    Roles roles = new Roles();

    if (authorizeInvocation != null)
    {
      roles = new Roles(authorizeInvocation.value());
    }
    return roles;
  }
View Full Code Here


  private WicketTester tester;

  @Before
  public void setUp()
  {
    tester = new WicketTester(new WicketApplication(new Roles())
    {
      @Override
      public void init()
      {
        super.init();
View Full Code Here

    } catch (RestartResponseAtInterceptPageException e) {
      throw e;
    } catch (Exception e) {
      //no-op, will continue to sign-in page
    }
    Roles r = null;
    if (externalType != null) {
      invalidate();
    }
    if (isSignedIn()) {
      r = new Roles(Roles.USER);
      if (checkAdminLevel(userLevel)) {
        r.add(Roles.ADMIN);
      }
    }
    return r;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.authroles.authorization.strategies.role.Roles

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.