public interface PersonClient
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String email,
java.lang.String displayName,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String avatar,
java.lang.String orgId,
java.lang.String roles,
java.lang.String licenses,
CompletionHandler<Person> handler)
Create people in the authenticated user's organization.
|
void |
delete(java.lang.String personId,
CompletionHandler<java.lang.Void> handler)
Delete the details of person by person id.
|
void |
get(java.lang.String personId,
CompletionHandler<Person> handler)
Retrieves the details for a person by person id.
|
void |
getMe(CompletionHandler<Person> handler)
Retrieves the details for the authenticated user.
|
void |
list(java.lang.String email,
java.lang.String displayName,
int max,
CompletionHandler<java.util.List<Person>> handler)
Lists people in the authenticated user's organization.
|
void |
list(java.lang.String email,
java.lang.String displayName,
java.lang.String id,
java.lang.String orgId,
int max,
CompletionHandler<java.util.List<Person>> handler)
Lists people in the authenticated user's organization.
|
void |
update(java.lang.String personId,
java.lang.String email,
java.lang.String displayName,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String avatar,
java.lang.String orgId,
java.lang.String roles,
java.lang.String licenses,
CompletionHandler<Person> handler)
Update people in the authenticated user's organization.
|
void list(@NonNull
java.lang.String email,
@Nullable
java.lang.String displayName,
int max,
@NonNull
CompletionHandler<java.util.List<Person>> handler)
email - List people with this email address. For non-admin requests, either this or displayName are required..displayName - List people whose name starts with this string. For non-admin requests, either this or email are required.max - The maximum number of people in the response.handler - A closure to be executed once the request has finished.void list(@Nullable
java.lang.String email,
@Nullable
java.lang.String displayName,
@Nullable
java.lang.String id,
@Nullable
java.lang.String orgId,
int max,
@NonNull
CompletionHandler<java.util.List<Person>> handler)
email - List people with this email address. For non-admin requests, either this or displayName are required..displayName - List people whose name starts with this string. For non-admin requests, either this or email are required.id - List people by ID. Accepts up to 85 person IDs separated by commas.orgId - List people in this organization. Only admin users of another organization (such as partners) may use this parameter.max - The maximum number of people in the response.handler - A closure to be executed once the request has finished.void get(@NonNull
java.lang.String personId,
@NonNull
CompletionHandler<Person> handler)
personId - The identifier of the person.handler - A closure to be executed once the request has finished.void getMe(@NonNull
CompletionHandler<Person> handler)
handler - A closure to be executed once the request has finished.void create(@NonNull
java.lang.String email,
@Nullable
java.lang.String displayName,
@Nullable
java.lang.String firstName,
@Nullable
java.lang.String lastName,
@Nullable
java.lang.String avatar,
@Nullable
java.lang.String orgId,
@Nullable
java.lang.String roles,
@Nullable
java.lang.String licenses,
@NonNull
CompletionHandler<Person> handler)
email - Email address of the person.displayName - Full name of the person.firstName - firstName name of the person.lastName - lastName firstName name of the person.avatar - URL to the person's avatar in PNG format.orgId - ID of the organization to which this person belongs.roles - Roles of the person.licenses - Licenses allocated to the person.handler - A closure to be executed once the request has finished.void update(@NonNull
java.lang.String personId,
@Nullable
java.lang.String email,
@Nullable
java.lang.String displayName,
@Nullable
java.lang.String firstName,
@Nullable
java.lang.String lastName,
@Nullable
java.lang.String avatar,
@Nullable
java.lang.String orgId,
@Nullable
java.lang.String roles,
@Nullable
java.lang.String licenses,
@NonNull
CompletionHandler<Person> handler)
personId - The identifier of the person.email - Email address of the person.displayName - Full name of the person.firstName - firstName name of the person.lastName - lastName firstName name of the person.avatar - URL to the person's avatar in PNG format.orgId - ID of the organization to which this person belongs.roles - Roles of the person.licenses - Licenses allocated to the person.handler - A closure to be executed once the request has finished.void delete(@NonNull
java.lang.String personId,
@NonNull
CompletionHandler<java.lang.Void> handler)
personId - The identifier of the person.handler - A closure to be executed once the request has finished.