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 Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final Stringstatic final intstatic final longstatic final StringFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQuotaAlertRecipient(String recipient) booleangetCity()getEmail()intgetName()getState()intgetType()inthashCode()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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
SYSTEM_ID
public static final long SYSTEM_ID- See Also:
-
SYSTEM_NAME
- See Also:
-
DEFAULT_ID
public static final long DEFAULT_ID- See Also:
-
DEFAULT_NAME
- See Also:
-
DEFAULT_TYPE
public static final int DEFAULT_TYPE- See Also:
-
-
Constructor Details
-
Tenant
public Tenant() -
Tenant
-
-
Method Details
-
getName
-
setName
-
getDisplayName
-
setDisplayName
-
getStreet
-
setStreet
-
getCity
-
setCity
-
getState
-
setState
-
getCountry
-
setCountry
-
getEmail
-
setEmail
-
getTelephone
-
setTelephone
-
getType
public int getType() -
setType
public void setType(int type) -
getPostalCode
-
setPostalCode
-
toString
- Overrides:
toStringin classPersistentObject
-
getMaxUsers
-
setMaxUsers
-
getMaxSessions
-
setMaxSessions
-
getMaxRepoDocs
-
setMaxRepoDocs
-
getMaxRepoSize
-
setMaxRepoSize
-
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
-
setExpire
-
getQuotaThreshold
-
setQuotaThreshold
-
getQuotaAlertRecipients
-
setQuotaAlertRecipients
-
getQuotaAlertRecipientsAsList
-
addQuotaAlertRecipient
-
getMaxGuests
-
setMaxGuests
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-