Codota Logo
GroupAdminProperty.del
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.geoserver.security.impl.GroupAdminProperty.del (Showing top 3 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: org.geoserver.web/web-security

  @Override
  public void onSubmit() {
    try {
      //update the user property listing the group names the user is admin for
      if (adminGroupChoice.isEnabled()) {
        Collection<GeoServerUserGroup> groups = adminGroupChoice.getModelObject();
        String[] groupNames = new String[groups.size()];
        int i = 0;
        for (GeoServerUserGroup group : groups) {
          groupNames[i++] = group.getGroupname();
        }
        GroupAdminProperty.set(user.getProperties(), groupNames);
      }
      else {
        GroupAdminProperty.del(user.getProperties());
      }
      onFormSubmit(user);
      setReturnPageDirtyAndReturn(true);
    }
    catch(Exception e) {
      handleSubmitError(e);
    }
  }
}.setEnabled(hasUserGroupStore || hasRoleStore(getSecurityManager().getActiveRoleService().getName())));
origin: org.geoserver.web/web-sec-core

  @Override
  public void onSubmit() {
    try {
      //update the user property listing the group names the user is admin for
      if (adminGroupChoice.isEnabled()) {
        Collection<GeoServerUserGroup> groups = adminGroupChoice.getModelObject();
        String[] groupNames = new String[groups.size()];
        int i = 0;
        for (GeoServerUserGroup group : groups) {
          groupNames[i++] = group.getGroupname();
        }
        GroupAdminProperty.set(user.getProperties(), groupNames);
      }
      else {
        GroupAdminProperty.del(user.getProperties());
      }
      onFormSubmit(user);
      setReturnPageDirtyAndReturn(true);
    }
    catch(Exception e) {
      handleSubmitError(e);
    }
  }
}.setEnabled(hasUserGroupStore || hasRoleStore(getSecurityManager().getActiveRoleService().getName())));
origin: org.geoserver.web/gs-web-sec-core

  @Override
  public void onSubmit() {
    try {
      // update the user property listing the group names the user is admin
      // for
      if (adminGroupChoice.isEnabled()) {
        Collection<GeoServerUserGroup> groups =
            adminGroupChoice.getModelObject();
        String[] groupNames = new String[groups.size()];
        int i = 0;
        for (GeoServerUserGroup group : groups) {
          groupNames[i++] = group.getGroupname();
        }
        GroupAdminProperty.set(user.getProperties(), groupNames);
      } else {
        GroupAdminProperty.del(user.getProperties());
      }
      onFormSubmit(user);
      setReturnPageDirtyAndReturn(true);
    } catch (Exception e) {
      handleSubmitError(e);
    }
  }
}.setEnabled(
org.geoserver.security.implGroupAdminPropertydel

Popular methods of GroupAdminProperty

  • get
  • set
  • fromString
  • getKey
  • has
  • toString

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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