@Entity public class SystemMessage extends AbstractLockableEntity implements IUUIDEntity, INameProviding, IDescriptionProviding
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_DATE_CREATED |
static String |
ATTR_DATE_EDITED |
static String |
ATTR_DATE_END |
static String |
ATTR_DATE_START |
static String |
ATTR_FLAG_ACTIVE |
static String |
ATTR_I18N_VALUES |
static String |
ATTR_ICON |
static String |
ATTR_ICON_COLOR |
static String |
ATTR_MESSAGE |
static String |
ATTR_USER_NAME_CREATOR |
static String |
ATTR_USER_NAME_EDITOR |
static String |
ATTR_USER_REF_CREATOR |
static String |
ATTR_USER_REF_EDITOR |
static String |
COL_UUID |
COL_LOCKINGVERSION, lockingVersion
COL_ID, id
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
ATTR_NAME, COL_NAME
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION
IMPORT_ID, INVALID_ID
Constructor and Description |
---|
SystemMessage() |
entityHasChanged, getLockingVersion, setLockingVersion, toString
asIntValue, isPersisted, setId
compareTo, equals, getDBTableName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public static final String ATTR_DATE_CREATED
public static final String ATTR_DATE_EDITED
public static final String ATTR_DATE_END
public static final String ATTR_DATE_START
public static final String ATTR_I18N_VALUES
public static final String ATTR_ICON
public static final String ATTR_ICON_COLOR
public static final String ATTR_FLAG_ACTIVE
public static final String ATTR_MESSAGE
public static final String ATTR_USER_NAME_CREATOR
public static final String ATTR_USER_NAME_EDITOR
public static final String ATTR_USER_REF_CREATOR
public static final String ATTR_USER_REF_EDITOR
public static final String COL_UUID
public void setId(Long id)
AbstractEntity
Integer.MAX_VALUE
or lower then Integer.MIN_VALUE
will be
altered to null!!!setId
in interface de.xima.cmn.dao.interfaces.IEntity<Long>
setId
in class AbstractEntity
id
- Long
the database-id to setpublic String getBeschreibung()
getBeschreibung
in interface IDescriptionProviding
public Date getDateCreated()
public Date getDateEdited()
public Date getDateEnd()
public Date getDateStart()
public String getDescription()
getDescription
in interface IDescriptionProviding
public String getIcon()
ico-fc-lan-connect
.public String getIconColor()
#333
or
rgb(20, 80, 42)
.public String getMessage()
public String getName()
getName
in interface INameProviding
public Benutzer getUserCreator()
public Benutzer getUserEditor()
public String getUserNameCreator()
public String getUserNameEditor()
public String getUserRefCreator()
public String getUserRefEditor()
public String getUUID()
getUUID
in interface IUUIDEntity
Mandant
, Projekt
, ...public UUID getUUIDObject()
getUUIDObject
in interface IUUIDEntity
public boolean isFlagActive()
@Deprecated public void setBeschreibung(String beschreibung)
setDescription(String)
;public void setDateCreated(Date dateCreated)
public void setDateEdited(Date dateEdited)
public void setDateEnd(Date dateEnd)
public void setDateStart(Date start)
public void setDescription(String description)
public void setFlagActive(boolean flagActive)
public void setIcon(String icon)
public void setIconColor(String iconColor)
public void setMessage(String message)
public void setName(String title)
public void setUserCreator(Benutzer userCreator)
public void setUserEditor(Benutzer userEditor)
public void setUserNameCreator(String userNameCreator)
public void setUserNameEditor(String userNameEditor)
public void setUserRefCreator(String userRefCreator)
public void setUserRefEditor(String userRefEditor)
public void setUUID(String uuid)
setUUID
in interface IUUIDEntity
public void setUUIDObject(UUID uuid)
public Map<String,SystemMessageI18n> getI18nValues()
public void setI18nValues(Map<String,SystemMessageI18n> i18nValues)
public boolean isAvailableFor(Locale locale)
locale
- The language to check.isHasI18nVersion(Locale)
public boolean isAvailableFor(ELanguage language)
language
- The language to check.isHasI18nVersion(ELanguage)
public boolean isAvailableFor(Date date)
date
- Date to check. If null
, take the current date.public boolean isHasI18nVersion(Locale locale)
locale
- Locale to check.true
iff a #SystemMessageI18n
exists for the given language.isAvailableFor(Locale)
public boolean isHasI18nVersion(ELanguage language)
language
- Language locale to check.true
iff a #SystemMessageI18n
exists for the given language.isAvailableFor(ELanguage)
public SystemMessageI18n getI18n(Locale locale)
locale
- The desired language locale.SystemMessageI18n
for the given language. If none is available, a new
#SystemMessageI18n
with the default values.public SystemMessageI18n getI18n(ELanguage language)
language
- The desired language.SystemMessageI18n
for the given language. If none is available, a new
#SystemMessageI18n
with the default values.public String getI18nName(Locale locale)
locale
- The desired language locale.getName()
of this message, for the given language. Resolves according to
#SystemMessageI18n.getI18nSource()
. If no translation could be determined, returns the empty string.public String getI18nMessage(Locale locale)
locale
- The desired language locale.getName()
of this message, for the given language. Resolves according to
#SystemMessageI18n.getI18nSource()
. If no translation could be determined, returns the empty string.public String getI18nName(ELanguage language)
language
- The desired language.getName()
of this message, for the given language. Resolves according to
#SystemMessageI18n.getI18nSource()
. If no translation could be determined, returns the empty string.public String getI18nMessage(ELanguage language)
language
- The desired language.getName()
of this message, for the given language. Resolves according to
#SystemMessageI18n.getI18nSource()
. If no translation could be determined, returns the empty string.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.