Package com.esri.gpt.framework.security.identity

Examples of com.esri.gpt.framework.security.identity.IdentityAdapter.addUserToGroup()


        boolean isAllowedToManage = true;
        isAllowedToManage = checkIfAllowedToManage(context, groupIdentifier);
        if(checkGroupConfigured){
          if(isAllowedToManage){
            if(groupIdentifier.endsWith(groupDIT)){
              idAdapter.addUserToGroup(user, groupIdentifier);          
            }else{       
              idAdapter.addUserToRole(user, groupIdentifier);     
            }
          }else{
              response.sendError(HttpServletResponse.SC_BAD_REQUEST, "{ \"error\":\""+ groupIdentifier +" is not allowed to be managed in geoportal. \"}");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.