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
Modifier and TypeFieldDescriptionstatic final long
static final String
static final int
static final long
static final String
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addQuotaAlertRecipient
(String recipient) boolean
getCity()
getEmail()
int
getName()
getState()
int
getType()
int
hashCode()
boolean
Check if the tenant is enabled and not expiredvoid
void
setCountry
(String country) void
setDisplayName
(String displayName) void
void
setEnabled
(int enabled) void
void
setMaxGuests
(Integer maxGuests) void
setMaxRepoDocs
(Long maxRepoDocs) void
setMaxRepoSize
(Long maxRepoSize) void
setMaxSessions
(Integer maxSessions) void
setMaxUsers
(Integer maxUsers) void
void
setPostalCode
(String postalCode) void
setQuotaAlertRecipients
(String quotaAlertRecipients) void
setQuotaThreshold
(Integer quotaThreshold) void
void
void
setTelephone
(String telephone) void
setType
(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:
toString
in 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:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-