Examples of calculateRoles()


Examples of it.eng.spagobi.engines.drivers.handlers.IRolesHandler.calculateRoles()

  try {
      if (user != null) {

    IRolesHandler rolesHandlerClass = (IRolesHandler) Class.forName(rolesHandler).newInstance();
    List roles = rolesHandlerClass.calculateRoles(parameters);
    Integer id = EventsManager.getInstance().registerEvent(user,description, parameters, roles, presentationHandler);
    returnValue = id.toString();
    logger.debug("Service executed succesfully");
      } else {
    logger.warn("User is NULL");
View Full Code Here

Examples of org.geoserver.security.impl.RoleCalculator.calculateRoles()

        GeoServerRoleService service = useActiveService ?
              getSecurityManager().getActiveRoleService() :
              getSecurityManager().loadRoleService(getRoleServiceName());
             
        RoleCalculator calc = new RoleCalculator(service);
        return calc.calculateRoles(principal);
    }
   
    /**
     * Calculates roles using a {@link GeoServerUserGroupService}
     * if the principal is not found, an empty collection is returned
View Full Code Here

Examples of org.geoserver.security.impl.RoleCalculator.calculateRoles()

        if (details!=null) {           
            roles.addAll(details.getAuthorities());                       
        } else {       
            RoleCalculator calc = new RoleCalculator(getSecurityManager().getActiveRoleService());
            try {
                roles.addAll(calc.calculateRoles(new GeoServerUser(user)));
            } catch (IOException e) {
                throw new AuthenticationServiceException(e.getLocalizedMessage(),e);
            }                       
        }  
        roles.add(GeoServerRole.AUTHENTICATED_ROLE);
View Full Code Here

Examples of org.geoserver.security.impl.RoleCalculator.calculateRoles()

            user = getUserByUsername(username);           
            if (user==null)
                throw new UsernameNotFoundException(userNotFoundMessage(username));
            RoleCalculator calculator = new RoleCalculator(this,
                    getSecurityManager().getActiveRoleService());
            user.setAuthorities(calculator.calculateRoles(user));
        } catch (IOException e) {
            throw new UsernameNotFoundException(userNotFoundMessage(username),e);
        }       
        return user;
    }
View Full Code Here

Examples of org.geoserver.security.impl.RoleCalculator.calculateRoles()

                tmp.addAll(rolePalette.getSelectedRoles());
                calc.addInheritedRoles(tmp);

                for (GeoServerUserGroup group : userGroupPalette.getSelectedGroups()) {
                    if (group.isEnabled()) {
                        tmp.addAll(calc.calculateRoles(group));
                    }
                }
                result.addAll(calc.personalizeRoles(user, tmp));
            } catch (IOException e) {
                throw new RuntimeException(e);
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.