public MSentryGroup(String groupName, long createTime, Set<MSentryRole> roles) { this.groupName = MSentryUtil.safeIntern(groupName); this.createTime = createTime; this.roles = roles; }
public MPathToPersist(long authzObjectId, String path) { this.authzObjectId = authzObjectId; this.path = MSentryUtil.safeIntern(path); }
public MPath(String path) { this.path = MSentryUtil.safeIntern(path); }
public MSentryUser(String userName, long createTime, Set<MSentryRole> roles) { this.userName = MSentryUtil.safeIntern(userName); this.createTime = createTime; this.roles = roles; this.privileges = new HashSet<>(); }
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); }
public MAuthzPathsMapping(long authzSnapshotID, long authzObjectId, String authzObjName, Collection<String> paths) { this.authzSnapshotID = authzSnapshotID; this.authzObjectId = authzObjectId; this.authzObjName = MSentryUtil.safeIntern(authzObjName); this.pathsPersisted = Collections.EMPTY_SET; this.pathsToPersist = new HashSet<>(paths.size()); for(String path : paths) { this.pathsToPersist.add(path); } this.createTimeMs = System.currentTimeMillis(); }
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<>(); }
public MSentryPrivilege(String privilegeScope, String serverName, String dbName, String tableName, String columnName, String URI, String action, Boolean grantOption) { this.privilegeScope = MSentryUtil.safeIntern(privilegeScope); this.serverName = MSentryUtil.safeIntern(serverName); this.dbName = SentryStore.toNULLCol(dbName).intern(); this.tableName = SentryStore.toNULLCol(tableName).intern(); this.columnName = SentryStore.toNULLCol(columnName).intern(); this.URI = SentryStore.toNULLCol(URI).intern(); this.action = SentryStore.toNULLCol(action).intern(); this.grantOption = grantOption; this.roles = new HashSet<>(); this.users = new HashSet<>(); }