public class
UsersServiceImpl
extends BaseApiService<Directory>
implements Service
implements Service
Nested Class Summary
class | UsersServiceImpl.Builder | Builder for creating an instance of UsersServiceImpl |
Public Method Summary
static UsersServiceImpl |
fromConfiguration(CredentialFactory credentialFactory)
Creates an instance of
UsersServiceImpl from connector configuration. |
ListenableFuture<User> |
getUserMapping(String userId)
Gets
User from Google Admin SDK API. |
Iterable<User> | |
ListenableFuture<User> |
updateUserMapping(String userId, String schemaName, String attributeName, Optional<String> value)
Updates
User 's custom schema attributes using Google Admin SDK API. |
Inherited Method Summary
Public Methods
public static UsersServiceImpl fromConfiguration (CredentialFactory credentialFactory)
Creates an instance of UsersServiceImpl
from connector configuration.
Parameters
credentialFactory |
---|
Throws
GeneralSecurityException | |
---|---|
IOException |
public ListenableFuture<User> getUserMapping (String userId)
public Iterable<User> listUsers (String schemaName)
public ListenableFuture<User> updateUserMapping (String userId, String schemaName, String attributeName, Optional<String> value)
Updates User
's custom schema attributes using Google Admin SDK API.
Parameters
userId | |
---|---|
schemaName | |
attributeName | |
value |
Throws
IOException |
---|