Package de.xima.fc.entities
Class Mandant
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.Mandant
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ICustomAttributeProviding,ICustomAttributesEntity,IDescriptionProviding,IFileMapProviding<ClientFile,ClientFileData>,ILockingVersionProviding,INameProviding,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class Mandant extends AbstractLockableEntity implements INameProviding, IDescriptionProviding, IUUIDEntity, ICustomAttributesEntity, IFileMapProviding<ClientFile,ClientFileData>
Diese Entität bildet einen Mandanten ab. Mandanten werden dazu genutzt verschiedene, abgegrenzte Bereiche im System anzulegen. Mandanten können dazu genutzt werden Organisationen aus dem realen Leben abzubilden- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ALIASJPA attribute name for thegetAlias()field.static StringATTR_ALLOW_CUSTOM_MAIL_SERVERJPA attribute name for theisAllowCustomMailServer()field.static StringATTR_ALLOW_SYSTEM_MAIL_SERVERJPA attribute name for theisAllowSystemMailServer()field.static StringATTR_APPOINTMENT_USAGEDeprecated.static StringATTR_BASEURLJPA attribute name for thegetBaseUrl()field.static StringATTR_BENUTZERVERWALTUNGSTYPJPA attribute name for thegetBenutzerverwaltungstyp()field.static StringATTR_CREATED_ATJPA attribute name for thegetCreatedAt()field.static StringATTR_CUSTOM_ATTRIBUTESJPA attribute name for thegetCustomAttributes()field.static StringATTR_DEFAULT_FORM_THEMEJPA attribute name for thegetDefaultFormThemeString()field.static StringATTR_DEMODeprecated.static StringATTR_FREIGABETYPJPA attribute name for thegetFreigabeTyp()field.static StringATTR_LANGUAGEJPA attribute name for thegetLanguage()field.static StringATTR_LAST_USER_LOGINJPA attribute name for thegetLastUserLogin()field.static StringATTR_LDAP_DATADeprecated.static StringATTR_MAIL_DATADeprecated.static StringATTR_MAXFORMSDeprecated.static StringATTR_MAXINVITESDeprecated.static StringATTR_PROJEKTEJPA attribute name for thegetProjekte()field.static StringATTR_SADMIN_ACCESSJPA attribute name for theisSadminAccess()field.static StringATTR_SADMIN_ACCESS_INBOXJPA attribute name for theisSadminInboxAccess()field.static StringCOL_CREATED_ATDatabase column name for thegetCreatedAt()field.static StringCOL_DEFAULT_FORM_THEMEDatabase column name for thegetDefaultFormThemeString()field.static StringCOL_UUIDDatabase column name for thegetUUID()field.-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.ICustomAttributesEntity
COL_CUSTOM_ATTRIBUTE_NAME, COL_CUSTOM_ATTRIBUTE_VALUE
-
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description Mandant()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClientFilegetActiveImage()StringgetAlias()StringgetBaseUrl()StringgetBasisVerzeichnis()Deprecated.EBenutzerverwaltungsTypgetBenutzerverwaltungstyp()Deprecated.StringgetBeschreibung()longgetCreatedAt()InstantgetCreatedAtInstant()Map<String,String>getCustomAttributes()Gets the map of custom attributes that may be used to store additional information.FormThemeReferencegetDefaultFormTheme()Gets the default form theme for this client.StringgetDefaultFormThemeString()Map<String,ClientFile>getFileMap()EFreigabeTypgetFreigabeTyp()LonggetId()ELanguagegetLanguage()DategetLastUserLogin()MandantLdapDatagetLdapData()Deprecated.useMandantLdapDataand the corresponding DAO or APILocalegetLocale()MandantMailDatagetMailData()Deprecated.useMandantMailDataand the corresponding DAO or APIIntegergetMaxFormRecords()Deprecated.IntegergetMaxFormulare()Deprecated.IntegergetMaxInvites()Deprecated.StringgetName()List<Projekt>getProjekte()StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanisAllowCustomMailServer()booleanisAllowSystemMailServer()booleanisAppointmentUsage()Deprecated.booleanisDemo()Deprecated.booleanisManuelleFreigebe()booleanisNtlmUsage()Deprecated.booleanisSadminAccess()booleanisSadminInboxAccess()ClientFilenewFileEntiy()Creates a new instance of file entity which is connected to the base entity (this).voidremoveActiveProfileImage()voidsetActiveImageData(byte[] data, String fileName, Object userRef)voidsetActiveImageData(File file, Object userRef)voidsetAlias(String alias)voidsetAllowCustomMailServer(boolean allowCustomMailServer)voidsetAllowSystemMailServer(boolean allowSystemMailServer)voidsetAppointmentUsage(boolean appointmentUsage)Deprecated.voidsetBaseUrl(String baseUrl)voidsetBasisVerzeichnis(String basisVerzeichnis)Deprecated.voidsetBenutzerverwaltungstyp(EBenutzerverwaltungsTyp benutzerverwaltungstyp)Deprecated.voidsetBeschreibung(String beschreibung)voidsetCreatedAt(long createdAt)voidsetCreatedAtInstant(Instant createdAt)voidsetCustomAttributes(Map<String,String> customAttributes)Sets the map of custom attributes that may be used to store additional information.voidsetDefaultFormTheme(FormThemeReference defaultFormTheme)Sets the default form theme for this client.voidsetDefaultFormThemeString(String defaultFormThemeString)voidsetDemo(boolean demo)Deprecated.voidsetFileMap(Map<String,ClientFile> fileMap)DON'T USE!voidsetFreigabeTyp(EFreigabeTyp freigabeTyp)voidsetLanguage(ELanguage language)voidsetLastUserLogin(Date lastUserLogin)voidsetLdapData(MandantLdapData ldapData)Deprecated.useMandantLdapDataand the corresponding DAO or APIvoidsetMailData(MandantMailData mailData)Deprecated.useMandantMailDataand the corresponding DAO or APIvoidsetManuelleFreigebe(boolean manuell)voidsetMaxFormRecords(Integer maxFormRecords)Deprecated.voidsetMaxFormulare(Integer maxFormulare)Deprecated.voidsetMaxInvites(Integer maxInvites)Deprecated.voidsetName(String name)voidsetProjekte(List<Projekt> projekte)voidsetSadminAccess(boolean sadminAccess)voidsetSadminInboxAccess(boolean sadminInboxAccess)voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid)StringtoString()-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface de.xima.fc.entities.interfaces.ICustomAttributeProviding
getCustomAttribute, getCustomAttributeAs, getCustomAttributeAs, getCustomAttributeBoolean, getCustomAttributeDouble, getCustomAttributeDouble, getCustomAttributeEnum, getCustomAttributeEnum, getCustomAttributeInt, getCustomAttributeInt, getCustomAttributeJsonArray, getCustomAttributeJsonObject, getCustomAttributeLong, getCustomAttributeLong, getCustomAttributeString, getCustomAttributeString, getCustomAttributeUuid
-
Methods inherited from interface de.xima.fc.entities.interfaces.ICustomAttributesEntity
removeCustomAttribute, setCustomAttribute, setCustomAttributeBoolean, setCustomAttributeDouble, setCustomAttributeEnum, setCustomAttributeInt, setCustomAttributeJSONArray, setCustomAttributeJSONObject, setCustomAttributeLong, setCustomAttributeString, setCustomAttributeUuid
-
Methods inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
getDescription
-
Methods inherited from interface de.xima.fc.entities.interfaces.IFileMapProviding
putFile, removeFile, setFileData, setFileData
-
-
-
-
Field Detail
-
ATTR_BASEURL
public static final String ATTR_BASEURL
JPA attribute name for thegetBaseUrl()field.- See Also:
- Constant Field Values
-
ATTR_FREIGABETYP
public static final String ATTR_FREIGABETYP
JPA attribute name for thegetFreigabeTyp()field.- See Also:
- Constant Field Values
-
ATTR_PROJEKTE
public static final String ATTR_PROJEKTE
JPA attribute name for thegetProjekte()field.- See Also:
- Constant Field Values
-
ATTR_DEFAULT_FORM_THEME
public static final String ATTR_DEFAULT_FORM_THEME
JPA attribute name for thegetDefaultFormThemeString()field.- See Also:
- Constant Field Values
-
ATTR_SADMIN_ACCESS
public static final String ATTR_SADMIN_ACCESS
JPA attribute name for theisSadminAccess()field.- See Also:
- Constant Field Values
-
ATTR_SADMIN_ACCESS_INBOX
public static final String ATTR_SADMIN_ACCESS_INBOX
JPA attribute name for theisSadminInboxAccess()field.- See Also:
- Constant Field Values
-
ATTR_ALLOW_SYSTEM_MAIL_SERVER
public static final String ATTR_ALLOW_SYSTEM_MAIL_SERVER
JPA attribute name for theisAllowSystemMailServer()field.- See Also:
- Constant Field Values
-
ATTR_ALLOW_CUSTOM_MAIL_SERVER
public static final String ATTR_ALLOW_CUSTOM_MAIL_SERVER
JPA attribute name for theisAllowCustomMailServer()field.- See Also:
- Constant Field Values
-
ATTR_ALIAS
public static final String ATTR_ALIAS
JPA attribute name for thegetAlias()field.- See Also:
- Constant Field Values
-
ATTR_LAST_USER_LOGIN
public static final String ATTR_LAST_USER_LOGIN
JPA attribute name for thegetLastUserLogin()field.- See Also:
- Constant Field Values
-
ATTR_BENUTZERVERWALTUNGSTYP
public static final String ATTR_BENUTZERVERWALTUNGSTYP
JPA attribute name for thegetBenutzerverwaltungstyp()field.- See Also:
- Constant Field Values
-
ATTR_CUSTOM_ATTRIBUTES
public static final String ATTR_CUSTOM_ATTRIBUTES
JPA attribute name for thegetCustomAttributes()field.- See Also:
- Constant Field Values
-
ATTR_LANGUAGE
public static final String ATTR_LANGUAGE
JPA attribute name for thegetLanguage()field.- See Also:
- Constant Field Values
-
ATTR_CREATED_AT
public static final String ATTR_CREATED_AT
JPA attribute name for thegetCreatedAt()field.- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
Database column name for thegetUUID()field.- See Also:
- Constant Field Values
-
COL_CREATED_AT
public static final String COL_CREATED_AT
Database column name for thegetCreatedAt()field.- See Also:
- Constant Field Values
-
COL_DEFAULT_FORM_THEME
public static final String COL_DEFAULT_FORM_THEME
Database column name for thegetDefaultFormThemeString()field.- See Also:
- Constant Field Values
-
ATTR_LDAP_DATA
@Deprecated public static final String ATTR_LDAP_DATA
Deprecated.- See Also:
- Constant Field Values
-
ATTR_MAIL_DATA
@Deprecated public static final String ATTR_MAIL_DATA
Deprecated.- See Also:
- Constant Field Values
-
ATTR_MAXFORMS
@Deprecated public static final String ATTR_MAXFORMS
Deprecated.- See Also:
- Constant Field Values
-
ATTR_MAXINVITES
@Deprecated public static final String ATTR_MAXINVITES
Deprecated.- See Also:
- Constant Field Values
-
ATTR_DEMO
@Deprecated public static final String ATTR_DEMO
Deprecated.- See Also:
- Constant Field Values
-
ATTR_APPOINTMENT_USAGE
@Deprecated public static final String ATTR_APPOINTMENT_USAGE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUUID
public String getUUID()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getBasisVerzeichnis
@Deprecated public String getBasisVerzeichnis()
Deprecated.
-
setBasisVerzeichnis
@Deprecated public void setBasisVerzeichnis(String basisVerzeichnis)
Deprecated.
-
getName
public String getName()
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
setName
public void setName(String name)
-
getBeschreibung
public String getBeschreibung()
- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
setBeschreibung
public void setBeschreibung(String beschreibung)
-
getAlias
public String getAlias()
- Returns:
- the alias
-
setAlias
public void setAlias(String alias)
- Parameters:
alias- the alias to set
-
getBaseUrl
public String getBaseUrl()
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
getFreigabeTyp
public EFreigabeTyp getFreigabeTyp()
-
setFreigabeTyp
public void setFreigabeTyp(EFreigabeTyp freigabeTyp)
-
isSadminAccess
public boolean isSadminAccess()
-
setSadminAccess
public void setSadminAccess(boolean sadminAccess)
-
isSadminInboxAccess
public boolean isSadminInboxAccess()
-
setSadminInboxAccess
public void setSadminInboxAccess(boolean sadminInboxAccess)
-
isAllowSystemMailServer
public boolean isAllowSystemMailServer()
-
setAllowSystemMailServer
public void setAllowSystemMailServer(boolean allowSystemMailServer)
-
isAllowCustomMailServer
public boolean isAllowCustomMailServer()
-
setAllowCustomMailServer
public void setAllowCustomMailServer(boolean allowCustomMailServer)
-
getLocale
public Locale getLocale()
-
getLanguage
public ELanguage getLanguage()
-
setLanguage
public void setLanguage(ELanguage language)
-
isManuelleFreigebe
public boolean isManuelleFreigebe()
-
setManuelleFreigebe
public void setManuelleFreigebe(boolean manuell)
-
getLastUserLogin
public Date getLastUserLogin()
- Returns:
- the lastUserLogin
-
setLastUserLogin
public void setLastUserLogin(Date lastUserLogin)
- Parameters:
lastUserLogin- the lastUserLogin to set
-
getCustomAttributes
public Map<String,String> getCustomAttributes()
Description copied from interface:ICustomAttributeProvidingGets the map of custom attributes that may be used to store additional information. The stored data depends on the type of the object.- Specified by:
getCustomAttributesin interfaceICustomAttributeProviding- Returns:
- The custom attributes.
-
setCustomAttributes
public void setCustomAttributes(Map<String,String> customAttributes)
Description copied from interface:ICustomAttributesEntitySets the map of custom attributes that may be used to store additional information. The stored data depends on the type of the object.- Specified by:
setCustomAttributesin interfaceICustomAttributesEntity- Parameters:
customAttributes- The new custom attributes to set.
-
getActiveImage
public ClientFile getActiveImage()
-
setActiveImageData
public void setActiveImageData(File file, Object userRef) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
removeActiveProfileImage
public void removeActiveProfileImage()
-
getDefaultFormTheme
public FormThemeReference getDefaultFormTheme()
Gets the default form theme for this client. This theme is used when no more specific theme is set for a form, or when no form context is available.May return null, in which case the default form theme that was configured for the entire system should be used.
- Returns:
- The default form theme for this client.
-
setDefaultFormTheme
public void setDefaultFormTheme(FormThemeReference defaultFormTheme)
Sets the default form theme for this client. This theme is used when no more specific theme is set for a form, or when no form context is available.- Parameters:
defaultFormTheme- The default form theme for this client.
-
getDefaultFormThemeString
public String getDefaultFormThemeString()
UsegetDefaultFormTheme().Gets the default form theme for this client, in its serialized string representation. This theme is used when no more specific theme is set for a form, or when no form context is available.
- Returns:
- The default form theme for this client.
-
setDefaultFormThemeString
public void setDefaultFormThemeString(String defaultFormThemeString)
UsesetDefaultFormTheme(FormThemeReference).Gets the default form theme for this client, in its serialized string representation. This theme is used when no more specific theme is set for a form, or when no form context is available.
- Parameters:
defaultFormThemeString- The default form theme for this client.
-
getFileMap
public Map<String,ClientFile> getFileMap()
- Specified by:
getFileMapin interfaceIFileMapProviding<ClientFile,ClientFileData>
-
setFileMap
public void setFileMap(Map<String,ClientFile> fileMap)
Description copied from interface:IFileMapProvidingDON'T USE! Hibernate is managing this collection, so if it is overridden, Hibernate can't keep track of it anymore. UseIFileMapProviding.putFile(String, IKeyDependentFileEntity),IFileMapProviding.removeFile(String)orIFileMapProviding.getFileMap()instead to modify the map.- Specified by:
setFileMapin interfaceIFileMapProviding<ClientFile,ClientFileData>
-
newFileEntiy
public ClientFile newFileEntiy()
Description copied from interface:IFileMapProvidingCreates a new instance of file entity which is connected to the base entity (this). However this entity is not yet persisted nor is it connected to file key- Specified by:
newFileEntiyin interfaceIFileMapProviding<ClientFile,ClientFileData>- Returns:
- a new file entity connected to this entity
-
getCreatedAt
public long getCreatedAt()
-
setCreatedAt
public void setCreatedAt(long createdAt)
-
getCreatedAtInstant
public Instant getCreatedAtInstant()
-
setCreatedAtInstant
public void setCreatedAtInstant(Instant createdAt)
-
getMailData
@Deprecated public MandantMailData getMailData()
Deprecated.useMandantMailDataand the corresponding DAO or API
-
setMailData
@Deprecated public void setMailData(MandantMailData mailData)
Deprecated.useMandantMailDataand the corresponding DAO or API
-
getLdapData
@Deprecated public MandantLdapData getLdapData()
Deprecated.useMandantLdapDataand the corresponding DAO or API
-
toString
public String toString()
- Overrides:
toStringin classAbstractLockableEntity
-
setLdapData
@Deprecated public void setLdapData(MandantLdapData ldapData)
Deprecated.useMandantLdapDataand the corresponding DAO or API
-
isNtlmUsage
@Deprecated public boolean isNtlmUsage()
Deprecated.Gibt an, ob der Mandant laut Lizenz NTLM-Authentifizierung nutzen darf
-
isDemo
@Deprecated public boolean isDemo()
Deprecated.
-
setDemo
@Deprecated public void setDemo(boolean demo)
Deprecated.
-
isAppointmentUsage
@Deprecated public boolean isAppointmentUsage()
Deprecated.
-
setAppointmentUsage
@Deprecated public void setAppointmentUsage(boolean appointmentUsage)
Deprecated.
-
getMaxFormulare
@Deprecated public Integer getMaxFormulare()
Deprecated.
-
setMaxFormulare
@Deprecated public void setMaxFormulare(Integer maxFormulare)
Deprecated.
-
getMaxInvites
@Deprecated public Integer getMaxInvites()
Deprecated.
-
setMaxInvites
@Deprecated public void setMaxInvites(Integer maxInvites)
Deprecated.
-
getMaxFormRecords
@Deprecated public Integer getMaxFormRecords()
Deprecated.
-
setMaxFormRecords
@Deprecated public void setMaxFormRecords(Integer maxFormRecords)
Deprecated.
-
getBenutzerverwaltungstyp
@Deprecated public EBenutzerverwaltungsTyp getBenutzerverwaltungstyp()
Deprecated.
-
setBenutzerverwaltungstyp
@Deprecated public void setBenutzerverwaltungstyp(EBenutzerverwaltungsTyp benutzerverwaltungstyp)
Deprecated.
-
-