remove CorpUsersClient file (#1925)

Co-authored-by: Jyoti Wadhwani <jywadhwa@jywadhwa-mn2.linkedin.biz>
This commit is contained in:
Jyoti Wadhwani 2020-10-07 03:28:03 -07:00 committed by GitHub
parent f303071dd7
commit b2e7bab33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}
}