Class ProjectPortalTag
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.ProjectPortalTag
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILocalizationProviding<ProjectPortalTag, ProjectPortalTagLocalization>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class ProjectPortalTag
extends AbstractLockableEntity
implements IUUIDEntity, ILocalizationProviding<ProjectPortalTag, ProjectPortalTagLocalization>
Entity model for end user tags. user portals tags are manged portal-wide and may be assigned to forms.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetColorBackground()field.static final StringJPA attribute name for thegetColorText()field.static final StringJPA attribute name for thedefaultLocalefield.static final StringJPA attribute name for thelocalizationsfield.static final StringJPA attribute name for theprojectConfigsfield.static final StringDatabase column name for thegetColorBackground()field.static final StringDatabase column name for thegetColorText()field.static final StringDatabase column name for thegetDefaultLocale()field.Fields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the background color of this tag, used when the tag is displayed in the UI.Gets the text color of this tag, used when the tag is displayed in the UI.getDescription(Locale locale) Gets the description of this tag in the given locale.getDisplayName(Locale locale) Gets the display name of this tag in the given locale.getId()The unique database ID of this tag.Gets all localization associated with this tag.Gets the default locale for this providing object.@NotEmpty Set<ProjectPortalConfig> Gets the portalConfigs this tag is associated with.getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Creates a new localization object.voidsetColorBackground(RgbaQuadruplet colorBackground) Sets the background color of this tag, used when the tag is displayed in the UI.voidsetColorText(RgbaQuadruplet colorText) Sets the text color of this tag, used when the tag is displayed in the UI.voidsetDefaultLocale(Locale defaultLocale) voidsetLocalizations(List<ProjectPortalTagLocalization> localizations) Gets all localization associated with this tag.voidsetProjectConfigs(@NotEmpty Set<ProjectPortalConfig> projectConfigs) Sets the projects this tag is associated with.voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setIdMethods inherited from interface ILocalizationProviding
getKeys, getLocales, getLocalization, getLocalizationData, setLocalization
-
Field Details
-
ATTR_PROJECT_CONFIGS
JPA attribute name for theprojectConfigsfield.- See Also:
-
ATTR_LOCALIZATIONS
JPA attribute name for thelocalizationsfield.- See Also:
-
ATTR_DEFAULT_LOCALE
JPA attribute name for thedefaultLocalefield.- See Also:
-
ATTR_COLOR_BACKGROUND
JPA attribute name for thegetColorBackground()field.- See Also:
-
ATTR_COLOR_TEXT
JPA attribute name for thegetColorText()field.- See Also:
-
COL_COLOR_BACKGROUND
Database column name for thegetColorBackground()field.- See Also:
-
COL_COLOR_TEXT
Database column name for thegetColorText()field.- See Also:
-
COL_DEFAULT_LOCALE
Database column name for thegetDefaultLocale()field.- See Also:
-
-
Constructor Details
-
ProjectPortalTag
public ProjectPortalTag()
-
-
Method Details
-
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
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
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
-
getColorBackground
Gets the background color of this tag, used when the tag is displayed in the UI.- Returns:
- The color of this tag.
-
setColorBackground
Sets the background color of this tag, used when the tag is displayed in the UI.- Parameters:
colorBackground- The color of this tag.
-
getColorText
Gets the text color of this tag, used when the tag is displayed in the UI.- Returns:
- The text color of this tag.
-
setColorText
Sets the text color of this tag, used when the tag is displayed in the UI.- Parameters:
colorText- The text color of this tag.
-
getDefaultLocale
-
setDefaultLocale
-
getId
-
getLocalizations
Gets all localization associated with this tag. A tag may contain a localized message for each message key and locale. There are some pre-defined message keys that are used by the system, such as the display name of the tag, but custom message keys may be used as well.- Specified by:
getLocalizationsin interfaceILocalizationProviding<ProjectPortalTag, ProjectPortalTagLocalization>- Returns:
- All localization associated with this tag.
-
setLocalizations
Gets all localization associated with this tag. A tag may contain a localized message for each message key and locale. There are some pre-defined message keys that are used by the system, such as the display name of the tag, but custom message keys may be used as well.- Parameters:
localizations- All localization associated with this tag.
-
getLocalizationsDefaultLocale
Description copied from interface:ILocalizationProvidingGets the default locale for this providing object.- Specified by:
getLocalizationsDefaultLocalein interfaceILocalizationProviding<ProjectPortalTag, ProjectPortalTagLocalization>- Returns:
- the default locale for this providing object
-
getProjectConfigs
Gets the portalConfigs this tag is associated with.- Returns:
- The portalConfigs this tag is associated with.
-
setProjectConfigs
Sets the projects this tag is associated with.- Parameters:
projectConfigs- The projects this tag is associated with.
-
getDescription
Gets the description of this tag in the given locale. Falls back to the default locale when no localization is available for the given locale.- Parameters:
locale- The locale to get the description for.- Returns:
- The description of this tag in the given locale.
-
getDisplayName
Gets the display name of this tag in the given locale. Falls back to the default locale when no localization is available for the given locale.- Parameters:
locale- The locale to get the display name for.- Returns:
- The display name of this tag in the given locale.
-
newLocalization
Description copied from interface:ILocalizationProvidingCreates a new localization object.- Specified by:
newLocalizationin interfaceILocalizationProviding<ProjectPortalTag, ProjectPortalTagLocalization>- Returns:
- a new localization object
-