mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 10:28:22 +00:00
remove CorpUsersClient file (#1925)
Co-authored-by: Jyoti Wadhwani <jywadhwa@jywadhwa-mn2.linkedin.biz>
This commit is contained in:
parent
f303071dd7
commit
b2e7bab33b
@ -1,24 +0,0 @@
|
||||
package com.linkedin.common.client;
|
||||
|
||||
import com.linkedin.common.urn.CorpuserUrn;
|
||||
import com.linkedin.identity.CorpUserKey;
|
||||
import com.linkedin.restli.client.Client;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class CorpUsersClient extends BaseClient {
|
||||
|
||||
protected CorpUsersClient(@Nonnull Client restliClient) {
|
||||
super(restliClient);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
protected CorpUserKey toCorpUserKey(@Nonnull CorpuserUrn urn) {
|
||||
return new CorpUserKey().setName(urn.getUsernameEntity());
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
protected CorpuserUrn toCorpUserUrn(@Nonnull CorpUserKey key) {
|
||||
return new CorpuserUrn(key.getName());
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user