Class TenantServiceImpl

    • Constructor Detail

      • TenantServiceImpl

        public TenantServiceImpl()
    • Method Detail

      • list

        public List<? extends Tenant> list()
        Description copied from interface: TenantService
        Lists tenants to which the specified token has access.
        Specified by:
        list in interface TenantService
        Returns:
        List of Tenants
      • get

        public Tenant get​(String tenantId)
        Description copied from interface: TenantService
        Gets detailed information about a specified tenant by ID
        Specified by:
        get in interface TenantService
        Parameters:
        tenantId - the tenant id
        Returns:
        the tenant
      • getByName

        public Tenant getByName​(String tenantName)
        Description copied from interface: TenantService
        Gets detailed information about a specified tenant by name
        Specified by:
        getByName in interface TenantService
        Parameters:
        tenantName - the tenant name
        Returns:
        the tenant
      • create

        public Tenant create​(Tenant tenant)
        Description copied from interface: TenantService
        Creates a new Tenant
        Specified by:
        create in interface TenantService
        Parameters:
        tenant - the tenant to create
        Returns:
        the newly created tenant and it's assigned ID
      • delete

        public ActionResponse delete​(String tenantId)
        Description copied from interface: TenantService
        Deletes the specified tenant by ID
        Specified by:
        delete in interface TenantService
        Parameters:
        tenantId - the tenant id
        Returns:
        the action response
      • update

        public Tenant update​(Tenant tenant)
        Description copied from interface: TenantService
        Updates the tenant (ID must be set within the inbound tenant)
        Specified by:
        update in interface TenantService
        Parameters:
        tenant - the tenant
        Returns:
        the tenant
      • listUsers

        public List<? extends TenantUser> listUsers​(String tenantId)
        Description copied from interface: TenantService
        Returns a list of users associated by the tenantId
        Specified by:
        listUsers in interface TenantService
        Parameters:
        tenantId - the tenant id to query users for
        Returns:
        List of TenantUser