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_SCOPEstatic StringATTR_DEFAULT_LOCALEstatic StringATTR_FRONTEND_SERVERSstatic StringATTR_LOGIN_CONFIGstatic StringATTR_PROJECT_PORTAL_CONFIGSstatic StringATTR_SHOW_ALL_FORM_RECORDSstatic StringATTR_TAGSstatic StringATTR_USER_PROFILESstatic StringCOL_ALIASstatic StringCOL_CLIENT_SCOPE_IDstatic StringCOL_DEFAULT_LOCALEstatic StringCOL_FLAG_ACTIVEstatic StringCOL_FLAG_ACTIVE_ON_MSstatic StringCOL_FLAG_DISABLE_PUBLIC_FORMSstatic StringCOL_FLAG_SHOW_ALL_FORM_RECORDS-
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.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 voidaddFrontendServer(FrontendServer entity)voidaddFrontendServer(MandantFrontendServer entity)@NotNull ProjectPortalConfigaddProjectPortalConfig(Projekt project)Adds a new project portal config to this client portal config.StringgetAlias()StringgetBeschreibung()Deprecated.UsegetDescription()instead.MandantgetClientScope()Returns the client scope of this user portal.LocalegetDefaultLocale()StringgetDescription()LocalegetFileDefaultLocale()Gets the default locale for this providing entity.List<UserPortalFile>getFiles()Gets the file entities.Set<FrontendServer>getFrontendServers()LonggetId()List<UserPortalLocalization>getLocalizations()Gets the localized database objects.LocalegetLocalizationsDefaultLocale()Gets the default locale for this providing object.UserPortalLoginConfiggetLoginConfig()StringgetName()ProjectPortalConfiggetProjectPortalConfig(Projekt project)Returns the project portal configuration for the given project.Set<ProjectPortalConfig>getProjectPortalConfigs()UserPortalPropertiesgetProperties()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()booleanisDisablePublicForms()booleanisShowAllFormRecords()UserPortalLocalizationnewLocalization()Creates a new localization object.voidprePersist()voidsetActive(boolean active)voidsetActiveOnMasterServer(boolean activeOnMasterServer)voidsetAlias(String alias)voidsetClientScope(Mandant clientScope)voidsetDefaultLocale(Locale defaultLocale)voidsetDescription(String description)voidsetDisablePublicForms(boolean disablePublicForms)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)voidsetLoginConfig(UserPortalLoginConfig loginConfig)voidsetName(String name)voidsetProjectPortalConfigs(Set<ProjectPortalConfig> projectPortalConfigs)voidsetProperties(UserPortalProperties properties)voidsetShowAllFormRecords(boolean showAllFormRecords)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
getKeys, getLocales, getLocalization, getLocalizationData, setLocalization
-
Methods inherited from interface de.xima.fc.entities.interfaces.file.i18n.ILocalizedScopedFilesProviding
addFile, getFile, getFileData, getFileKeys, getFileLocales, 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_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_PROJECT_PORTAL_CONFIGS
public static final String ATTR_PROJECT_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
-
ATTR_DEFAULT_LOCALE
public static final String ATTR_DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
ATTR_CLIENT_SCOPE
public static final String ATTR_CLIENT_SCOPE
- See Also:
- Constant Field Values
-
ATTR_SHOW_ALL_FORM_RECORDS
public static final String ATTR_SHOW_ALL_FORM_RECORDS
- 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_FLAG_SHOW_ALL_FORM_RECORDS
public static final String COL_FLAG_SHOW_ALL_FORM_RECORDS
- See Also:
- Constant Field Values
-
COL_FLAG_DISABLE_PUBLIC_FORMS
public static final String COL_FLAG_DISABLE_PUBLIC_FORMS
- See Also:
- Constant Field Values
-
COL_ALIAS
public static final String COL_ALIAS
- See Also:
- Constant Field Values
-
COL_DEFAULT_LOCALE
public static final String COL_DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
COL_CLIENT_SCOPE_ID
public static final String COL_CLIENT_SCOPE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
getBeschreibung
@Deprecated 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)
-
getProjectPortalConfigs
public Set<ProjectPortalConfig> getProjectPortalConfigs()
-
setProjectPortalConfigs
public void setProjectPortalConfigs(Set<ProjectPortalConfig> projectPortalConfigs)
-
getClientScope
@Nullable public Mandant getClientScope()
Returns the client scope of this user portal. The client scope is the client for which this user portal is created. If there is a client scope set, the user portal is only available for this client. If there is no client scope set, the user portal is a system scoped user portal.- Returns:
- The client scope of this user portal.
-
setClientScope
public void setClientScope(@Nullable Mandant clientScope)
-
getDefaultLocale
public Locale getDefaultLocale()
-
setDefaultLocale
public void setDefaultLocale(Locale defaultLocale)
-
getFileDefaultLocale
public Locale getFileDefaultLocale()
Description copied from interface:ILocalizedScopedFilesProvidingGets the default locale for this providing entity.- Specified by:
getFileDefaultLocalein interfaceILocalizedScopedFilesProviding<UserPortal,UserPortalFile,UserPortalFileData>- Returns:
- the default locale for this providing entity.
-
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.
-
getFrontendServers
public Set<FrontendServer> getFrontendServers()
-
setFrontendServers
public void setFrontendServers(Set<FrontendServer> frontendServers)
-
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
-
getLocalizations
public List<UserPortalLocalization> getLocalizations()
Description copied from interface:ILocalizationProvidingGets the localized database objects.- Specified by:
getLocalizationsin interfaceILocalizationProviding<UserPortal,UserPortalLocalization>- Returns:
- the localized database objects
-
setLocalizations
public void setLocalizations(List<UserPortalLocalization> localizations)
-
getLocalizationsDefaultLocale
public Locale getLocalizationsDefaultLocale()
Description copied from interface:ILocalizationProvidingGets the default locale for this providing object.- Specified by:
getLocalizationsDefaultLocalein interfaceILocalizationProviding<UserPortal,UserPortalLocalization>- Returns:
- the default locale for this providing object
-
newLocalization
public UserPortalLocalization newLocalization()
Description copied from interface:ILocalizationProvidingCreates a new localization object.- Specified by:
newLocalizationin interfaceILocalizationProviding<UserPortal,UserPortalLocalization>- Returns:
- a new localization object
-
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)
-
getProperties
public UserPortalProperties getProperties()
-
setProperties
public void setProperties(UserPortalProperties properties)
-
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)
-
getUserProfiles
public Set<UserProfile> getUserProfiles()
-
setUserProfiles
public void setUserProfiles(Set<UserProfile> userProfiles)
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
isActiveOnMasterServer
public boolean isActiveOnMasterServer()
-
setActiveOnMasterServer
public void setActiveOnMasterServer(boolean activeOnMasterServer)
-
isShowAllFormRecords
public boolean isShowAllFormRecords()
-
setShowAllFormRecords
public void setShowAllFormRecords(boolean showAllFormRecords)
-
isDisablePublicForms
public boolean isDisablePublicForms()
-
setDisablePublicForms
public void setDisablePublicForms(boolean disablePublicForms)
-
addFrontendServer
public void addFrontendServer(FrontendServer entity)
-
addFrontendServer
public void addFrontendServer(MandantFrontendServer entity)
-
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.
-
addProjectPortalConfig
@NotNull public @NotNull ProjectPortalConfig addProjectPortalConfig(Projekt project)
Adds a new project portal config to this client portal config.- Parameters:
project- The project to add.- Returns:
- The newly created project portal config.
- Throws:
IllegalArgumentException- If the project is invalid.
-
prePersist
public void prePersist()
-
-