Tabnine Logo
Group.addRole
Code IndexAdd Tabnine to your IDE (free)

How to use
addRole
method
in
org.apache.catalina.Group

Best Java code snippets using org.apache.catalina.Group.addRole (Showing top 18 results out of 315)

origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: codefollower/Tomcat-Research

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: tomcat/catalina

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Add a new {@link Role} to those this group belongs to.
 *
 * @param rolename Role name of the new role
 */
public void addRole(String rolename) {
  Group group = (Group) this.resource;
  if (group == null) {
    return;
  }
  Role role = group.getUserDatabase().findRole(rolename);
  if (role == null) {
    throw new IllegalArgumentException
      ("Invalid role name '" + rolename + "'");
  }
  group.addRole(role);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

public Object createObject(Attributes attributes) {
  String groupname = attributes.getValue("groupname");
  if (groupname == null) {
    groupname = attributes.getValue("name");
  }
  String description = attributes.getValue("description");
  String roles = attributes.getValue("roles");
  Group group = database.createGroup(groupname, description);
  if (roles != null) {
    while (roles.length() > 0) {
      String rolename = null;
      int comma = roles.indexOf(',');
      if (comma >= 0) {
        rolename = roles.substring(0, comma).trim();
        roles = roles.substring(comma + 1);
      } else {
        rolename = roles.trim();
        roles = "";
      }
      if (rolename.length() > 0) {
        Role role = database.findRole(rolename);
        if (role == null) {
          role = database.createRole(rolename, null);
        }
        group.addRole(role);
      }
    }
  }
  return (group);
}
origin: org.apache.tomcat/tomcat-catalina

  role = database.createRole(rolename, null);
group.addRole(role);
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

  role = database.createRole(rolename, null);
group.addRole(role);
origin: codefollower/Tomcat-Research

  role = database.createRole(rolename, null);
group.addRole(role);
origin: org.apache.catalina/com.springsource.org.apache.catalina

  role = database.createRole(rolename, null);
group.addRole(role);
origin: tomcat/catalina

public Object createObject(Attributes attributes) {
  String groupname = attributes.getValue("groupname");
  if (groupname == null) {
    groupname = attributes.getValue("name");
  }
  String description = attributes.getValue("description");
  String roles = attributes.getValue("roles");
  Group group = database.createGroup(groupname, description);
  if (roles != null) {
    while (roles.length() > 0) {
      String rolename = null;
      int comma = roles.indexOf(',');
      if (comma >= 0) {
        rolename = roles.substring(0, comma).trim();
        roles = roles.substring(comma + 1);
      } else {
        rolename = roles.trim();
        roles = "";
      }
      if (rolename.length() > 0) {
        Role role = database.findRole(rolename);
        if (role == null) {
          role = database.createRole(rolename, null);
        }
        group.addRole(role);
      }
    }
  }
  return (group);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

public Object createObject(Attributes attributes) {
  String groupname = attributes.getValue("groupname");
  if (groupname == null) {
    groupname = attributes.getValue("name");
  }
  String description = attributes.getValue("description");
  String roles = attributes.getValue("roles");
  Group group = database.createGroup(groupname, description);
  if (roles != null) {
    while (roles.length() > 0) {
      String rolename = null;
      int comma = roles.indexOf(',');
      if (comma >= 0) {
        rolename = roles.substring(0, comma).trim();
        roles = roles.substring(comma + 1);
      } else {
        rolename = roles.trim();
        roles = "";
      }
      if (rolename.length() > 0) {
        Role role = database.findRole(rolename);
        if (role == null) {
          role = database.createRole(rolename, null);
        }
        group.addRole(role);
      }
    }
  }
  return (group);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

public Object createObject(Attributes attributes) {
  String groupname = attributes.getValue("groupname");
  if (groupname == null) {
    groupname = attributes.getValue("name");
  }
  String description = attributes.getValue("description");
  String roles = attributes.getValue("roles");
  Group group = database.createGroup(groupname, description);
  if (roles != null) {
    while (roles.length() > 0) {
      String rolename = null;
      int comma = roles.indexOf(',');
      if (comma >= 0) {
        rolename = roles.substring(0, comma).trim();
        roles = roles.substring(comma + 1);
      } else {
        rolename = roles.trim();
        roles = "";
      }
      if (rolename.length() > 0) {
        Role role = database.findRole(rolename);
        if (role == null) {
          role = database.createRole(rolename, null);
        }
        group.addRole(role);
      }
    }
  }
  return (group);
}
origin: org.apache.geronimo.ext.tomcat/catalina

  role = database.createRole(rolename, null);
group.addRole(role);
org.apache.catalinaGroupaddRole

Javadoc

Add a new Role to those assigned specifically to this group.

Popular methods of Group

  • getRoles
  • getGroupname
  • getUserDatabase
  • getUsers
  • isInRole
    Is this group specifically assigned the specified Role?
  • removeRole
    Remove a Role from those assigned to this group.

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 25 Plugins for Webstorm
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