Package de.xima.fc.entities
Class UserPortal
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.UserPortal
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>,de.xima.cmn.dao.interfaces.ILockableEntity<Long>,ILocalizedScopedFilesProviding<UserPortal,UserPortalFile,UserPortalFileData>,ILocalizationProviding<UserPortal,UserPortalLocalization>,IDescriptionProviding,ILockingVersionProviding,INameProviding,ITransferable,ITransferableEntity,ITransferableLockableEntity,IUUIDEntity,Serializable,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class UserPortal extends AbstractLockableEntity implements INameProviding, IDescriptionProviding, IUUIDEntity, ILocalizationProviding<UserPortal,UserPortalLocalization>, ILocalizedScopedFilesProviding<UserPortal,UserPortalFile,UserPortalFileData>
Entity model for user portals.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ACTIVEstatic StringATTR_ACTIVE_ON_MASTER_SERVERstatic StringATTR_ALIASstatic StringATTR_AUTHENTICATOR_CONFIGSstatic StringATTR_CLIENT_PORTAL_CONFIGSstatic StringATTR_DEFAULT_LOCALEstatic StringATTR_FRONTEND_SERVERSstatic StringATTR_LOGIN_CONFIGstatic StringATTR_TAGSstatic StringATTR_USER_PROFILESstatic StringCOL_ALIASstatic StringCOL_DEFAULT_LOCALEstatic StringCOL_FLAG_ACTIVEstatic StringCOL_FLAG_ACTIVE_ON_MS-
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.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.i18n.ILocalizationProviding
ATTR_LOCALIZATIONS
-
Fields inherited from interface de.xima.fc.entities.interfaces.file.i18n.ILocalizedScopedFilesProviding
ATTR_FILES
-
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, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description UserPortal()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClientPortalConfigaddClientConfig(Mandant client)voidaddFrontendServer(FrontendServer entity)voidaddFrontendServer(MandantFrontendServer entity)StringgetAlias()StringgetBeschreibung()Deprecated.UsegetDescription()instead.ClientPortalConfiggetClientPortalConfig(long clientId)Returns the client portal configuration for the given client.ClientPortalConfiggetClientPortalConfig(Mandant client)Returns the client portal configuration for the given client.Set<ClientPortalConfig>getClientPortalConfigs()LocalegetDefaultLocale()StringgetDescription()LocalegetFallbackLocale()Gets the default locale to use as a fallback when a localization is missing for a locale.List<UserPortalFile>getFiles()Gets the file entities.Set<FrontendServer>getFrontendServers()LonggetId()List<UserPortalLocalization>getLocalizations()Gets the localisation entitiesUserPortalLoginConfiggetLoginConfig()StringgetName()ProjectPortalConfiggetProjectPortalConfig(Projekt project)Returns the project portal configuration for the given project.UserPortalPropertiesgetProperties()Set<UserPortalTag>getTags()Gets the tags of this portal.Set<UserProfile>getUserProfiles()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.booleanisActive()booleanisActiveOnMasterServer()voidprePersist()voidsetActive(boolean active)voidsetActiveOnMasterServer(boolean activeOnMasterServer)voidsetAlias(String alias)voidsetClientPortalConfigs(Set<ClientPortalConfig> clientPortalConfigs)voidsetDefaultLocale(Locale defaultLocale)voidsetDescription(String description)voidsetFiles(List<UserPortalFile> files)Sets the file entities.voidsetFrontendServers(Set<FrontendServer> frontendServers)voidsetId(Long id)!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!voidsetLocalizations(List<UserPortalLocalization> localizations)Sets the i18n namevoidsetLoginConfig(UserPortalLoginConfig loginConfig)voidsetName(String name)voidsetProperties(UserPortalProperties properties)voidsetTags(Set<UserPortalTag> tags)Sets the tags of this portal.voidsetUserProfiles(Set<UserProfile> userProfiles)voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid)-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, 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.i18n.ILocalizationProviding
getI18nNames, getLocalization, getLocalization, getLocalizationObject, getLocalizationObject, getLocalizationsByI18nName, getLocalizationsByI18nName, getLocalizationsByI18nName, getLocalizationsByI18nName, getLocalizationsByLocale, getLocalizationsByLocale, getLocalizationsForLocale, getLocalizationsForLocale
-
Methods inherited from interface de.xima.fc.entities.interfaces.file.i18n.ILocalizedScopedFilesProviding
addFile, getFile, getFile, getFileKeys, getFileMapByKey, getFileMapByKey, getFileMapByLocale, getFileMapByLocale, getFiles, getFiles, removeFile
-
-
-
-
Field Detail
-
ATTR_ALIAS
public static final String ATTR_ALIAS
- See Also:
- Constant Field Values
-
ATTR_ACTIVE
public static final String ATTR_ACTIVE
- See Also:
- Constant Field Values
-
ATTR_ACTIVE_ON_MASTER_SERVER
public static final String ATTR_ACTIVE_ON_MASTER_SERVER
- See Also:
- Constant Field Values
-
ATTR_DEFAULT_LOCALE
public static final String ATTR_DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
ATTR_LOGIN_CONFIG
public static final String ATTR_LOGIN_CONFIG
- See Also:
- Constant Field Values
-
ATTR_FRONTEND_SERVERS
public static final String ATTR_FRONTEND_SERVERS
- See Also:
- Constant Field Values
-
ATTR_CLIENT_PORTAL_CONFIGS
public static final String ATTR_CLIENT_PORTAL_CONFIGS
- See Also:
- Constant Field Values
-
ATTR_AUTHENTICATOR_CONFIGS
public static final String ATTR_AUTHENTICATOR_CONFIGS
- See Also:
- Constant Field Values
-
ATTR_TAGS
public static final String ATTR_TAGS
- See Also:
- Constant Field Values
-
ATTR_USER_PROFILES
public static final String ATTR_USER_PROFILES
- See Also:
- Constant Field Values
-
COL_FLAG_ACTIVE
public static final String COL_FLAG_ACTIVE
- See Also:
- Constant Field Values
-
COL_FLAG_ACTIVE_ON_MS
public static final String COL_FLAG_ACTIVE_ON_MS
- See Also:
- Constant Field Values
-
COL_DEFAULT_LOCALE
public static final String COL_DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
COL_ALIAS
public static final String COL_ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(Long id)
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getProperties
public UserPortalProperties getProperties()
-
setProperties
public void setProperties(UserPortalProperties properties)
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
isActiveOnMasterServer
public boolean isActiveOnMasterServer()
-
setActiveOnMasterServer
public void setActiveOnMasterServer(boolean activeOnMasterServer)
-
getDefaultLocale
public Locale getDefaultLocale()
-
setDefaultLocale
public void setDefaultLocale(Locale defaultLocale)
-
getLoginConfig
public UserPortalLoginConfig getLoginConfig()
-
setLoginConfig
public void setLoginConfig(UserPortalLoginConfig loginConfig)
-
getName
public String getName()
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
setName
public void setName(String name)
-
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)
-
getFiles
public List<UserPortalFile> getFiles()
Description copied from interface:ILocalizedScopedFilesProvidingGets the file entities.- Specified by:
getFilesin interfaceILocalizedScopedFilesProviding<UserPortal,UserPortalFile,UserPortalFileData>- Returns:
- the file entities
-
setFiles
public void setFiles(List<UserPortalFile> files)
Description copied from interface:ILocalizedScopedFilesProvidingSets the file entities.- Specified by:
setFilesin interfaceILocalizedScopedFilesProviding<UserPortal,UserPortalFile,UserPortalFileData>- Parameters:
files- the file entities to set.
-
getLocalizations
public List<UserPortalLocalization> getLocalizations()
Description copied from interface:ILocalizationProvidingGets the localisation entities- Specified by:
getLocalizationsin interfaceILocalizationProviding<UserPortal,UserPortalLocalization>- Returns:
- the localisation entities
-
setLocalizations
public void setLocalizations(List<UserPortalLocalization> localizations)
Description copied from interface:ILocalizationProvidingSets the i18n name- Specified by:
setLocalizationsin interfaceILocalizationProviding<UserPortal,UserPortalLocalization>- Parameters:
localizations- the entities for localisation to set
-
getFallbackLocale
public Locale getFallbackLocale()
Description copied from interface:ILocalizationProvidingGets the default locale to use as a fallback when a localization is missing for a locale. May return null if the object does not provide a fallback locale.- Specified by:
getFallbackLocalein interfaceILocalizationProviding<UserPortal,UserPortalLocalization>- Specified by:
getFallbackLocalein interfaceILocalizedScopedFilesProviding<UserPortal,UserPortalFile,UserPortalFileData>- Returns:
- the default locale to use as a fallback when a localization is missing for a locale
-
getFrontendServers
public Set<FrontendServer> getFrontendServers()
-
setFrontendServers
public void setFrontendServers(Set<FrontendServer> frontendServers)
-
getClientPortalConfigs
public Set<ClientPortalConfig> getClientPortalConfigs()
-
setClientPortalConfigs
public void setClientPortalConfigs(Set<ClientPortalConfig> clientPortalConfigs)
-
getTags
public Set<UserPortalTag> getTags()
Gets the tags of this portal. Each tag belongs to exactly one portal, but a portal may have many tags. A portal's tags should be considered a tag pool. Eachformmay have multiple tags assigned to it, taken from this tag pool.- Returns:
- The tags of this portal.
-
setTags
public void setTags(Set<UserPortalTag> tags)
Sets the tags of this portal. Each tag belongs to exactly one portal, but a portal may have many tags. A portal's tags should be considered a tag pool. Eachformmay have multiple tags assigned to it, taken from this tag pool.- Parameters:
tags- The tags of this portal.
-
getUserProfiles
public Set<UserProfile> getUserProfiles()
-
setUserProfiles
public void setUserProfiles(Set<UserProfile> userProfiles)
-
getBeschreibung
public String getBeschreibung()
Deprecated.UsegetDescription()instead.- Specified by:
getBeschreibungin interfaceIDescriptionProviding- See Also:
getDescription()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
setDescription
public void setDescription(String description)
-
getClientPortalConfig
public ClientPortalConfig getClientPortalConfig(Mandant client)
Returns the client portal configuration for the given client.- Parameters:
client- Client for which to get the configuration.- Returns:
- Configuration for the given client if it exists.
-
getClientPortalConfig
public ClientPortalConfig getClientPortalConfig(long clientId)
Returns the client portal configuration for the given client.- Parameters:
clientId- ID of the client for which to get the configuration.- Returns:
- Configuration for the given client if it exists.
-
getProjectPortalConfig
public ProjectPortalConfig getProjectPortalConfig(Projekt project)
Returns the project portal configuration for the given project.- Parameters:
project- The project to get the config for.- Returns:
- The project portal config for the given project if it exists.
-
addFrontendServer
public void addFrontendServer(MandantFrontendServer entity)
-
addFrontendServer
public void addFrontendServer(FrontendServer entity)
-
addClientConfig
public ClientPortalConfig addClientConfig(Mandant client)
-
prePersist
public void prePersist()
-
-