Class TenantsClient


  • public class TenantsClient
    extends java.lang.Object
    • Constructor Detail

      • TenantsClient

        public TenantsClient​(ClientOptions clientOptions)
    • Method Detail

      • addMultple

        public void addMultple​(java.lang.String userId,
                               AddUserToMultipleTenantsParams request)
        This endpoint is used to add a user to multiple tenants in one call. A custom profile can also be supplied for each tenant. This profile will be merged with the user's main profile when sending to the user with that tenant.
      • addMultple

        public void addMultple​(java.lang.String userId,
                               AddUserToMultipleTenantsParams request,
                               RequestOptions requestOptions)
        This endpoint is used to add a user to multiple tenants in one call. A custom profile can also be supplied for each tenant. This profile will be merged with the user's main profile when sending to the user with that tenant.
      • add

        public void add​(java.lang.String userId,
                        java.lang.String tenantId)
        This endpoint is used to add a single tenant.

        A custom profile can also be supplied with the tenant. This profile will be merged with the user's main profile when sending to the user with that tenant.

      • add

        public void add​(java.lang.String userId,
                        java.lang.String tenantId,
                        AddUserToSingleTenantsParams request)
        This endpoint is used to add a single tenant.

        A custom profile can also be supplied with the tenant. This profile will be merged with the user's main profile when sending to the user with that tenant.

      • add

        public void add​(java.lang.String userId,
                        java.lang.String tenantId,
                        AddUserToSingleTenantsParams request,
                        RequestOptions requestOptions)
        This endpoint is used to add a single tenant.

        A custom profile can also be supplied with the tenant. This profile will be merged with the user's main profile when sending to the user with that tenant.

      • removeAll

        public void removeAll​(java.lang.String userId)
        Removes a user from any tenants they may have been associated with.
      • removeAll

        public void removeAll​(java.lang.String userId,
                              RequestOptions requestOptions)
        Removes a user from any tenants they may have been associated with.
      • remove

        public void remove​(java.lang.String userId,
                           java.lang.String tenantId)
        Removes a user from the supplied tenant.
      • remove

        public void remove​(java.lang.String userId,
                           java.lang.String tenantId,
                           RequestOptions requestOptions)
        Removes a user from the supplied tenant.
      • list

        public ListTenantsForUserResponse list​(java.lang.String userId)
        Returns a paginated list of user tenant associations.