Package org.apache.openmeetings.data.basic

Examples of org.apache.openmeetings.data.basic.AuthLevelUtil


  @Override
  public Roles getRoles() {
    Roles r = null;
    if (isSignedIn()) {
      userLevel = Application.getBean(UserManager.class).getUserLevelByID(userId);
      AuthLevelUtil authLevel = Application.getBean(AuthLevelUtil.class);
      r = new Roles(Roles.USER);
      if (authLevel.checkUserLevel(userLevel)) {
        r.add(Roles.USER);
      }
      if (authLevel.checkAdminLevel(userLevel)) {
        r.add(Roles.ADMIN);
      }
    }
    return r;
  }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.data.basic.AuthLevelUtil

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.