Package com.esri.gpt.framework.security.principal

Examples of com.esri.gpt.framework.security.principal.RoleSet


/**
* Gets the status indicating whether this publisher is an administrator.
* @return true if this publisher is an administrator
*/
private boolean getIsAdministrator(User user) {
  RoleSet roles = user.getAuthenticationStatus().getAuthenticatedRoles();
  return roles.hasRole("gptAdministrator");
}
View Full Code Here


  throws NotAuthorizedException {
  if ((rolesForAction != null) && (rolesForAction.size() > 0)) {
    if (!getWasAuthenticated()) {
      throw new NotAuthorizedException("Not authorized.");
    }
    RoleSet rolesForUser = getAuthenticatedRoles();
    rolesForUser.assertRole(rolesForAction);
  }
}
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.security.principal.RoleSet

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.