Class Tenant

java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.Tenant
All Implemented Interfaces:
Serializable

public class Tenant extends PersistentObject implements Serializable
This class represents a Tenant, that is a branch of the organization or an organizational unit or whatever other class of organization.
Version:
6.9
Author:
Marco Meschieri
See Also:
  • Field Details

  • Constructor Details

    • Tenant

      public Tenant()
    • Tenant

      public Tenant(Tenant source)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String displayName)
    • getStreet

      public String getStreet()
    • setStreet

      public void setStreet(String street)
    • getCity

      public String getCity()
    • setCity

      public void setCity(String city)
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • getCountry

      public String getCountry()
    • setCountry

      public void setCountry(String country)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getTelephone

      public String getTelephone()
    • setTelephone

      public void setTelephone(String telephone)
    • getType

      public int getType()
    • setType

      public void setType(int type)
    • getPostalCode

      public String getPostalCode()
    • setPostalCode

      public void setPostalCode(String postalCode)
    • toString

      public String toString()
      Overrides:
      toString in class PersistentObject
    • getMaxUsers

      public Integer getMaxUsers()
    • setMaxUsers

      public void setMaxUsers(Integer maxUsers)
    • getMaxSessions

      public Integer getMaxSessions()
    • setMaxSessions

      public void setMaxSessions(Integer maxSessions)
    • getMaxRepoDocs

      public Long getMaxRepoDocs()
    • setMaxRepoDocs

      public void setMaxRepoDocs(Long maxRepoDocs)
    • getMaxRepoSize

      public Long getMaxRepoSize()
    • setMaxRepoSize

      public void setMaxRepoSize(Long maxRepoSize)
    • getEnabled

      public int getEnabled()
    • setEnabled

      public void setEnabled(int enabled)
    • isAvailable

      public boolean isAvailable()
      Check if the tenant is enabled and not expired
      Returns:
      if it is available
    • getExpire

      public Date getExpire()
    • setExpire

      public void setExpire(Date expire)
    • getQuotaThreshold

      public Integer getQuotaThreshold()
    • setQuotaThreshold

      public void setQuotaThreshold(Integer quotaThreshold)
    • getQuotaAlertRecipients

      public String getQuotaAlertRecipients()
    • setQuotaAlertRecipients

      public void setQuotaAlertRecipients(String quotaAlertRecipients)
    • getQuotaAlertRecipientsAsList

      public List<String> getQuotaAlertRecipientsAsList()
    • addQuotaAlertRecipient

      public void addQuotaAlertRecipient(String recipient)
    • getMaxGuests

      public Integer getMaxGuests()
    • setMaxGuests

      public void setMaxGuests(Integer maxGuests)