Codota Logo
TRoleChanges.getDelGroups
Code IndexAdd Codota to your IDE (free)

How to use
getDelGroups
method
in
org.apache.sentry.hdfs.service.thrift.TRoleChanges

Best Java code snippets using org.apache.sentry.hdfs.service.thrift.TRoleChanges.getDelGroups (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: apache/incubator-sentry

public Object getFieldValue(_Fields field) {
 switch (field) {
 case ROLE:
  return getRole();
 case ADD_GROUPS:
  return getAddGroups();
 case DEL_GROUPS:
  return getDelGroups();
 }
 throw new IllegalStateException();
}
origin: apache/incubator-sentry

private void applyRoleUpdates(PermissionsUpdate update) {
 for (TRoleChanges rUpdate : update.getRoleUpdates()) {
  if (rUpdate.getRole().equals(PermissionsUpdate.ALL_ROLES)) {
   // Request to remove group from all roles
   String groupToRemove = rUpdate.getDelGroups().iterator().next();
   for (RoleInfo rInfo : perms.getAllRoles()) {
    rInfo.delGroup(groupToRemove);
   }
  }
  RoleInfo rInfo = perms.getRoleInfo(rUpdate.getRole());
  for (String group : rUpdate.getAddGroups()) {
   if (rInfo == null) {
    rInfo = new RoleInfo(rUpdate.getRole());
   }
   rInfo.addGroup(group);
  }
  if (rInfo != null) {
   perms.addRoleInfo(rInfo);
   for (String group : rUpdate.getDelGroups()) {
    if (group.equals(PermissionsUpdate.ALL_GROUPS)) {
     perms.delRoleInfo(rInfo.getRole());
     break;
    }
    // If there are no groups to remove, rUpdate.getDelGroups() will
    // return empty list and this code will not be reached
    rInfo.delGroup(group);
   }
  }
 }
}
org.apache.sentry.hdfs.service.thriftTRoleChangesgetDelGroups

Popular methods of TRoleChanges

  • addToAddGroups
  • <init>
    Performs a deep copy on other.
  • addToDelGroups
  • getAddGroups
  • getRole
  • equals
  • isSetAddGroups
    Returns true if field addGroups is set (has been assigned a value) and false otherwise
  • isSetDelGroups
    Returns true if field delGroups is set (has been assigned a value) and false otherwise
  • isSetRole
    Returns true if field role is set (has been assigned a value) and false otherwise
  • read
  • setAddGroups
  • setAddGroupsIsSet
  • setAddGroups,
  • setAddGroupsIsSet,
  • setDelGroups,
  • setDelGroupsIsSet,
  • setRole,
  • setRoleIsSet,
  • toString,
  • unsetAddGroups,
  • unsetDelGroups

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • runOnUiThread (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • JPanel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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