congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RoleCalculator.personalizeRoles
Code IndexAdd Tabnine to your IDE (free)

How to use
personalizeRoles
method
in
org.geoserver.security.impl.RoleCalculator

Best Java code snippets using org.geoserver.security.impl.RoleCalculator.personalizeRoles (Showing top 4 results out of 315)

origin: geoserver/geoserver

SortedSet<GeoServerRole> set2 = personalizeRoles(user, set1);
origin: org.geoserver.web/web-security

  @Override
  protected List<GeoServerRole> load() {
    List<GeoServerRole> tmp = new ArrayList<GeoServerRole>();
    List<GeoServerRole> result = new ArrayList<GeoServerRole>();
    try {
      GeoServerUserGroupService ugService = getSecurityManager()
          .loadUserGroupService(ugServiceName);
      GeoServerRoleService gaService = getSecurityManager()
          .getActiveRoleService();
      RoleCalculator calc = new RoleCalculator(ugService, gaService);
      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);
    }
  
    Collections.sort(result);
    return result;
  }
}
origin: org.geoserver.web/gs-web-sec-core

  @Override
  protected List<GeoServerRole> load() {
    List<GeoServerRole> tmp = new ArrayList<GeoServerRole>();
    List<GeoServerRole> result = new ArrayList<GeoServerRole>();
    try {
      GeoServerUserGroupService ugService =
          getSecurityManager().loadUserGroupService(ugServiceName);
      GeoServerRoleService gaService = getSecurityManager().getActiveRoleService();
      RoleCalculator calc = new RoleCalculator(ugService, gaService);
      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);
    }
    Collections.sort(result);
    return result;
  }
}
origin: org.geoserver.web/web-sec-core

  @Override
  protected List<GeoServerRole> load() {
    List<GeoServerRole> tmp = new ArrayList<GeoServerRole>();
    List<GeoServerRole> result = new ArrayList<GeoServerRole>();
    try {
      GeoServerUserGroupService ugService = getSecurityManager()
          .loadUserGroupService(ugServiceName);
      GeoServerRoleService gaService = getSecurityManager()
          .getActiveRoleService();
      RoleCalculator calc = new RoleCalculator(ugService, gaService);
      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);
    }
  
    Collections.sort(result);
    return result;
  }
}
org.geoserver.security.implRoleCalculatorpersonalizeRoles

Javadoc

Takes the role set for a user and personalizes the roles (matching user properties and role parameters)

Popular methods of RoleCalculator

  • <init>
  • calculateRoles
  • addInheritedRoles
  • addMappedSystemRoles
  • addParentRole
    Collects the ascendents for a GeoServerRole object
  • assertRoleServiceNotNull
    Check if the role service is not null
  • getRoleService
  • getUserGroupService

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Join (org.hibernate.mapping)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now