public TSentryActiveRoleSet deepCopy() { return new TSentryActiveRoleSet(this); }
/** * Performs a deep copy on <i>other</i>. */ public TListSentryPrivilegesForProviderRequest(TListSentryPrivilegesForProviderRequest other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetComponent()) { this.component = other.component; } if (other.isSetServiceName()) { this.serviceName = other.serviceName; } if (other.isSetGroups()) { Set<String> __this__groups = new HashSet<String>(other.groups); this.groups = __this__groups; } if (other.isSetRoleSet()) { this.roleSet = new TSentryActiveRoleSet(other.roleSet); } if (other.isSetAuthorizables()) { List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>(other.authorizables.size()); for (TAuthorizable other_element : other.authorizables) { __this__authorizables.add(new TAuthorizable(other_element)); } this.authorizables = __this__authorizables; } }
case 7: // ROLE_SET if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.roleSet = new TSentryActiveRoleSet(); struct.roleSet.read(iprot); struct.setRoleSetIsSet(true);
/** * Performs a deep copy on <i>other</i>. */ public TListSentryPrivilegesByAuthRequest(TListSentryPrivilegesByAuthRequest other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetRequestorUserName()) { this.requestorUserName = other.requestorUserName; } if (other.isSetComponent()) { this.component = other.component; } if (other.isSetServiceName()) { this.serviceName = other.serviceName; } if (other.isSetAuthorizablesSet()) { Set<String> __this__authorizablesSet = new HashSet<String>(other.authorizablesSet); this.authorizablesSet = __this__authorizablesSet; } if (other.isSetGroups()) { Set<String> __this__groups = new HashSet<String>(other.groups); this.groups = __this__groups; } if (other.isSetRoleSet()) { this.roleSet = new TSentryActiveRoleSet(other.roleSet); } }
case 5: // ROLE_SET if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.roleSet = new TSentryActiveRoleSet(); struct.roleSet.read(iprot); struct.setRoleSetIsSet(true);
struct.roleSet = new TSentryActiveRoleSet(); struct.roleSet.read(iprot); struct.setRoleSetIsSet(true);
struct.roleSet = new TSentryActiveRoleSet(); struct.roleSet.read(iprot); struct.setRoleSetIsSet(true);
String serviceName, ActiveRoleSet roleSet, Set<String> groups, List<? extends Authorizable> authorizables) throws SentryUserException { TSentryActiveRoleSet thriftRoleSet = new TSentryActiveRoleSet(roleSet.isAll(), roleSet.getRoles()); TListSentryPrivilegesForProviderRequest request = new TListSentryPrivilegesForProviderRequest(); request.setProtocol_version(sentry_common_serviceConstants.TSENTRY_SERVICE_V2);
request.setRoleSet(new TSentryActiveRoleSet(roleSet.isAll(), roleSet.getRoles()));
request3.setRoleSet(new TSentryActiveRoleSet(true, null)); TListSentryPrivilegesForProviderResponse response3 = processor.list_sentry_privileges_for_provider(request3); assertEquals(Status.OK, fromTSentryStatus(response3.getStatus())); request4.setRoleSet(new TSentryActiveRoleSet(true, null)); request4.setRequestorUserName(ADMIN_USER); Set<String> authorizablesSet = Sets.newHashSet("Collection=c1->Field=f1");