congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GroupAdminProperty.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
org.geoserver.security.impl.GroupAdminProperty

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

origin: geoserver/geoserver

List<String> calculateAdminGroups(UserDetails userDetails) throws IOException {
  if (userDetails instanceof GeoServerUser) {
    Properties props = ((GeoServerUser) userDetails).getProperties();
    if (GroupAdminProperty.has(props)) {
      return Arrays.asList(GroupAdminProperty.get(props));
    }
  }
  // fall back on including every group the user is part of
  List<String> groupNames = new ArrayList<String>();
  for (GeoServerUserGroupService ugService : loadUserGroupServices()) {
    GeoServerUser user = ugService.getUserByUsername(userDetails.getUsername());
    if (user != null) {
      for (GeoServerUserGroup group : ugService.getGroupsForUser(user)) {
        groupNames.add(group.getGroupname());
      }
    }
  }
  return groupNames;
}
origin: org.geoserver.web/web-sec-core

List<GeoServerUserGroup> adminGroups = new ArrayList();
if (isGroupAdmin) {
  for (String groupName : GroupAdminProperty.get(user.getProperties())) {
    try {
      adminGroups.add(ugService.getGroupByGroupname(groupName));
origin: org.geoserver.web/web-security

List<GeoServerUserGroup> adminGroups = new ArrayList();
if (isGroupAdmin) {
  for (String groupName : GroupAdminProperty.get(user.getProperties())) {
    try {
      adminGroups.add(ugService.getGroupByGroupname(groupName));
origin: org.geoserver.web/gs-web-sec-core

List<GeoServerUserGroup> adminGroups = new ArrayList();
if (isGroupAdmin) {
  for (String groupName : GroupAdminProperty.get(user.getProperties())) {
    try {
      adminGroups.add(ugService.getGroupByGroupname(groupName));
org.geoserver.security.implGroupAdminPropertyget

Popular methods of GroupAdminProperty

  • set
  • del
  • fromString
  • getKey
  • has
  • toString

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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