Class TenantCounter

java.lang.Object
com.logicaldoc.enterprise.TenantCounter

public class TenantCounter extends Object
Counter class optimized for database tenants counting. No internal static counter is maintained and a direct database query is always performed.
Since:
6.9
Author:
Marco Meschieri - LogicalDOC
  • Method Details

    • validateTenantCount

      public static void validateTenantCount() throws com.logicaldoc.core.PersistenceException
      Throws:
      com.logicaldoc.core.PersistenceException
    • getMaxTenants

      public static int getMaxTenants()
    • getCount

      public static int getCount() throws com.logicaldoc.core.PersistenceException
      Throws:
      com.logicaldoc.core.PersistenceException