Class QuotaSetServiceImpl

    • Constructor Detail

      • QuotaSetServiceImpl

        public QuotaSetServiceImpl()
    • Method Detail

      • get

        public QuotaSet get​(String tenantId)
        Description copied from interface: QuotaSetService
        Shows quotas for a tenant.
        Specified by:
        get in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to show quotas
        Returns:
        the quota set
      • get

        public QuotaSet get​(String tenantId,
                            String userId)
        Description copied from interface: QuotaSetService
        Shows quotas for a user in a tenant.
        Specified by:
        get in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to show quotas
        userId - the UUID of the user
        Returns:
        the quota set
      • update

        public QuotaSet update​(String tenantId,
                               QuotaSetUpdateOptions options)
        Description copied from interface: QuotaSetService
        Updates quotas for a tenant.
        Specified by:
        update in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to update quotas
        options - the options to update
        Returns:
        the updated quota set
      • update

        public QuotaSet update​(String tenantId,
                               String userId,
                               QuotaSetUpdateOptions options)
        Description copied from interface: QuotaSetService
        Updates quotas for a user in a tenant.
        Specified by:
        update in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to update quotas
        userId - the UUID of the user
        options - the options to update
        Returns:
        the updated quota set
      • delete

        public ActionResponse delete​(String tenantId)
        Description copied from interface: QuotaSetService
        Deletes quotas for a tenant. The quota reverts to the default quota.
        Specified by:
        delete in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to delete quotas
        Returns:
        the action response
      • delete

        public ActionResponse delete​(String tenantId,
                                     String userId)
        Description copied from interface: QuotaSetService
        Deletes quotas for a user in a tenant. The quota reverts to the default quota.
        Specified by:
        delete in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to delete quotas
        userId - the UUID of the user
        Returns:
        the action response
      • getDefault

        public QuotaSet getDefault​(String tenantId)
        Description copied from interface: QuotaSetService
        Shows default quotas for a tenant.
        Specified by:
        getDefault in interface QuotaSetService
        Parameters:
        tenantId - the UUID for the tenant for which you want to show default quotas
        Returns:
        the default quota set