Package com.logicaldoc.core.security
Class Tenant
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.Tenant
- All Implemented Interfaces:
- 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final longstatic final Stringstatic final intstatic final longstatic final StringFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddQuotaAlertRecipient(String recipient) getCity()getEmail()intgetName()getState()intgetType()booleanCheck if the tenant is enabled and not expiredvoidvoidsetCountry(String country) voidsetDisplayName(String displayName) voidvoidsetEnabled(int enabled) voidvoidsetMaxGuests(Integer maxGuests) voidsetMaxRepoDocs(Long maxRepoDocs) voidsetMaxRepoSize(Long maxRepoSize) voidsetMaxSessions(Integer maxSessions) voidsetMaxUsers(Integer maxUsers) voidvoidsetPostalCode(String postalCode) voidsetQuotaAlertRecipients(String quotaAlertRecipients) voidsetQuotaThreshold(Integer quotaThreshold) voidvoidvoidsetTelephone(String telephone) voidsetType(int type) toString()Methods inherited from class com.logicaldoc.core.PersistentObjectequals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Field Details- 
SYSTEM_IDpublic static final long SYSTEM_ID- See Also:
 
- 
SYSTEM_NAME- See Also:
 
- 
DEFAULT_IDpublic static final long DEFAULT_ID- See Also:
 
- 
DEFAULT_NAME- See Also:
 
- 
DEFAULT_TYPEpublic static final int DEFAULT_TYPE- See Also:
 
 
- 
- 
Constructor Details- 
Tenantpublic Tenant()
- 
Tenant
 
- 
- 
Method Details- 
getName
- 
setName
- 
getDisplayName
- 
setDisplayName
- 
getStreet
- 
setStreet
- 
getCity
- 
setCity
- 
getState
- 
setState
- 
getCountry
- 
setCountry
- 
getEmail
- 
setEmail
- 
getTelephone
- 
setTelephone
- 
getTypepublic int getType()
- 
setTypepublic void setType(int type) 
- 
getPostalCode
- 
setPostalCode
- 
toString- Overrides:
- toStringin class- PersistentObject
 
- 
getMaxUsers
- 
setMaxUsers
- 
getMaxSessions
- 
setMaxSessions
- 
getMaxRepoDocs
- 
setMaxRepoDocs
- 
getMaxRepoSize
- 
setMaxRepoSize
- 
getEnabledpublic int getEnabled()
- 
setEnabledpublic void setEnabled(int enabled) 
- 
isAvailablepublic boolean isAvailable()Check if the tenant is enabled and not expired- Returns:
- if it is available
 
- 
getExpire
- 
setExpire
- 
getQuotaThreshold
- 
setQuotaThreshold
- 
getQuotaAlertRecipients
- 
setQuotaAlertRecipients
- 
getQuotaAlertRecipientsAsList
- 
addQuotaAlertRecipient
- 
getMaxGuests
- 
setMaxGuests
 
-