Codota Logo
GroupAdminProperty.get
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now