Interface BlockQuotaSetService

    • Method Detail

      • getDefaults

        BlockQuotaSet getDefaults​(String tenantId)
        Gets default quotas for a tenant
        Parameters:
        tenantId - the tenant identifier
        Returns:
        the default quotas
      • get

        BlockQuotaSet get​(String tenantId)
        Gets quotas for a tenant
        Parameters:
        tenantId - the tenant identifier
        Returns:
        the quotas for a tenant
      • updateForTenant

        BlockQuotaSet updateForTenant​(String tenantId,
                                      BlockQuotaSet quota)
        Updates quotas for a tenant
        Parameters:
        tenantId - the tenant identifier
        quota - the quota-set to update
        Returns:
        the updated quotas
      • delete

        ActionResponse delete​(String tenantId)
        Deletes quotas for a tenant so the quotas revert to default values
        Parameters:
        tenantId - the tenant identifier
        Returns:
        the action response
      • usageForTenant

        BlockQuotaSetUsage usageForTenant​(String tenantId)
        Gets details for quotas for a specified tenant
        Parameters:
        tenantId - the tenant identifier
        Returns:
        the quota usage details
      • usageForUser

        BlockQuotaSetUsage usageForUser​(String tenantId,
                                        String userId)
        Gets details for quotas for a specified tenant and user.
        Parameters:
        tenantId - the tenant identifier
        userId - the user identifier
        Returns:
        the quota usage details