congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
org.apache.sentry.provider.db.service.model
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.sentry.provider.db.service.model

Best Java code snippets using org.apache.sentry.provider.db.service.model (Showing top 20 results out of 315)

origin: apache/sentry

public MSentryGroup(String groupName, long createTime, Set<MSentryRole> roles) {
 this.groupName = MSentryUtil.safeIntern(groupName);
 this.createTime = createTime;
 this.roles = roles;
}
origin: apache/incubator-sentry

public MSentryGroup(String groupName, long createTime, Set<MSentryRole> roles) {
 this.setGroupName(groupName);
 this.createTime = createTime;
 this.roles = roles;
}
origin: apache/sentry

public static boolean isNULL(String s) {
 return !notNULL(s);
}
origin: apache/sentry

public MSentryGMPrivilege(String componentName, String serviceName,
  List<? extends Authorizable> authorizables,
  String action, Boolean grantOption) {
 this.componentName = MSentryUtil.safeIntern(componentName);
 this.serviceName = MSentryUtil.safeIntern(serviceName);
 this.action = MSentryUtil.safeIntern(action);
 this.grantOption = grantOption;
 this.roles = new HashSet<>();
 this.createTime = System.currentTimeMillis();
 setAuthorizables(authorizables);
}
origin: apache/sentry

public void appendGMPrivilege(MSentryGMPrivilege gmPrivilege) {
 if (gmPrivileges.add(gmPrivilege)) {
  gmPrivilege.appendRole(this);
 }
}
origin: apache/sentry

private boolean isPrivilegeStale(MSentryGMPrivilege privilege) {
 if (privilege.getRoles().isEmpty()) {
  return true;
 }
 return false;
}
origin: apache/sentry

public void removeGroup(MSentryGroup group) {
 if (groups.remove(group)) {
  group.removeRole(this);
 }
}
origin: apache/sentry

public void appendPrivilege(MSentryPrivilege privilege) {
 if (privileges.add(privilege)) {
  privilege.appendPrincipal(this);
 }
}
origin: apache/sentry

public void appendGroup(MSentryGroup group) {
 if (groups.add(group)) {
  group.appendRole(this);
 }
}
origin: apache/sentry

public void removeRole(MSentryRole role) {
 if (roles.remove(role)) {
  role.removeGroup(this);
 }
}
origin: apache/incubator-sentry

public void appendRole(MSentryRole role) {
 if (roles.add(role)) {
  role.appendGMPrivilege(this);
 }
}
origin: apache/incubator-sentry

public void appendRole(MSentryRole role) {
 if (roles.add(role)) {
  role.appendGroup(this);
 }
}
origin: apache/incubator-sentry

public void appendPrivilege(MSentryPrivilege privilege) {
 if (privileges.add(privilege)) {
  privilege.appendRole(this);
 }
}
origin: apache/sentry

public void removeRole(MSentryRole role) {
 if (roles.remove(role)) {
  role.removeUser(this);
 }
}
origin: apache/sentry

public void removeUser(MSentryUser user) {
 if (users.remove(user)) {
  user.removeRole(this);
 }
}
origin: apache/incubator-sentry

public void appendGMPrivilege(MSentryGMPrivilege gmPrivilege) {
 if (gmPrivileges.add(gmPrivilege)) {
  gmPrivilege.appendRole(this);
 }
}
origin: apache/incubator-sentry

public static boolean isNULL(String s) {
 return !notNULL(s);
}
origin: apache/sentry

public MPathToPersist(long authzObjectId, String path) {
 this.authzObjectId = authzObjectId;
 this.path = MSentryUtil.safeIntern(path);
}
origin: apache/sentry

public MPath(String path) {
 this.path = MSentryUtil.safeIntern(path);
}
origin: apache/sentry

public MSentryRole(String roleName, long createTime) {
 this.roleName = MSentryUtil.safeIntern(roleName);
 this.createTime = createTime;
 privileges = new HashSet<>();
 gmPrivileges = new HashSet<>();
 groups = new HashSet<>();
 users = new HashSet<>();
}
org.apache.sentry.provider.db.service.model

Most used classes

  • MSentryGMPrivilege
    Database backed Sentry Generic Privilege for new authorization Model Any changes to this object requ
  • MSentryPrivilege
    Database backed Sentry Privilege. Any changes to this object require re-running the maven build so D
  • MSentryRole
    Database backed Sentry Role. Any changes to this object require re-running the maven build so DN an
  • MPath
    Used to store the path for the Authorizable object New class is created for path in order to have 1
  • MSentryGroup
    Database backed Sentry Group. Any changes to this object require re-running the maven build so DN an
  • MSentryPermChange,
  • MSentryUser,
  • MSentryUtil,
  • MSentryVersion,
  • MAuthzPathsMapping$MPathToPersist,
  • MAuthzPathsMapping,
  • MAuthzPathsSnapshotId,
  • MSentryChange,
  • MSentryHmsNotification
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