Tabnine Logo
TRoleChanges.addToAddGroups
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/incubator-sentry

@Override
public void onAlterSentryRoleAddGroups(
  TAlterSentryRoleAddGroupsRequest request) throws SentryPluginException {
 PermissionsUpdate update = new PermissionsUpdate(permSeqNum.incrementAndGet(), false);
 TRoleChanges rUpdate = update.addRoleUpdate(request.getRoleName());
 for (TSentryGroup group : request.getGroups()) {
  rUpdate.addToAddGroups(group.getGroupName());
 }
 permsUpdater.handleUpdateNotification(update);
 LOGGER.debug("Authz Perm preUpdate [" + update.getSeqNum() + ", " + request.getRoleName() + "]..");
}
origin: apache/incubator-sentry

@Override
public PermissionsUpdate createFullImageUpdate(long currSeqNum) {
 PermissionsUpdate retVal = new PermissionsUpdate(currSeqNum, true);
 for (PrivilegeInfo pInfo : perms.getAllPrivileges()) {
  TPrivilegeChanges pUpdate = retVal.addPrivilegeUpdate(pInfo.getAuthzObj());
  for (Map.Entry<String, FsAction> ent : pInfo.getAllPermissions().entrySet()) {
   pUpdate.putToAddPrivileges(ent.getKey(), ent.getValue().SYMBOL);
  }
 }
 for (RoleInfo rInfo : perms.getAllRoles()) {
  TRoleChanges rUpdate = retVal.addRoleUpdate(rInfo.getRole());
  for (String group : rInfo.getAllGroups()) {
   rUpdate.addToAddGroups(group);
  }
 }
 return retVal;
}
origin: apache/sentry

TRoleChanges addrUpdate = addUpdate.addRoleUpdate(roleName);
for (TSentryGroup g : groups) {
 addrUpdate.addToAddGroups(g.getGroupName());
org.apache.sentry.hdfs.service.thriftTRoleChangesaddToAddGroups

Popular methods of TRoleChanges

  • <init>
    Performs a deep copy on other.
  • addToDelGroups
  • getAddGroups
  • getDelGroups
  • 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

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • String (java.lang)
  • Permission (java.security)
    Legacy security code; do not use.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Best IntelliJ plugins
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