Package com.logicaldoc.core.security
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_ID
static String
DEFAULT_NAME
static int
DEFAULT_TYPE
static long
SYSTEM_ID
static String
SYSTEM_NAME
-
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
-
Method Summary
-
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
-
-
-
Field Detail
-
SYSTEM_ID
public static final long SYSTEM_ID
- See Also:
- Constant Field Values
-
SYSTEM_NAME
public static final String SYSTEM_NAME
- See Also:
- Constant Field Values
-
DEFAULT_ID
public static final long DEFAULT_ID
- See Also:
- Constant Field Values
-
DEFAULT_NAME
public static final String DEFAULT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_TYPE
public static final int DEFAULT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Tenant
public Tenant()
-
Tenant
public Tenant(Tenant source)
-
-
Method Detail
-
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 classPersistentObject
-
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)
-
addQuotaAlertRecipient
public void addQuotaAlertRecipient(String recipient)
-
getMaxGuests
public Integer getMaxGuests()
-
setMaxGuests
public void setMaxGuests(Integer maxGuests)
-
-