Package de.xima.fc.entities
Class EndUserState
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.EndUserState
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,ILocalizationProviding<EndUserState,EndUserStateLocalization>
,ILockingVersionProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity public class EndUserState extends AbstractLockableEntity implements ILocalizationProviding<EndUserState,EndUserStateLocalization>
Entity model for end user states.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_COLOR_BACKGROUND
Database column name for thegetColorBackground()
field.static String
ATTR_COLOR_TEXT
Database column name for thegetColorText()
field.static String
ATTR_ICON_STYLE_CLASS
Database column name for thegetIconStyleClass()
field.static String
ATTR_LOCALIZATIONS
Database column name for thegetLocalizations()
field.static String
ATTR_RECORD_ACCESSIBLE
Database column name for theisRecordAccessible()
field.static String
ATTR_TYPE
Database column name for thegetType()
field.static String
ATTR_WORKFLOW_STATE
Database column name for thegetWorkflowState()
field.static String
COL_COLOR_BACKGROUND
Database column name for thegetColorBackground()
field.static String
COL_COLOR_TEXT
Database column name for thegetColorText()
field.static String
COL_ICON_STYLE_CLASS
Database column name for thegetIconStyleClass()
field.static String
COL_RECORD_ACCESSIBLE
Database column name for theisRecordAccessible()
field.static String
COL_TYPE
Database column name for thegetType()
field.static String
COL_WORKFLOW_STATE_ID
Database column name for thegetWorkflowState()
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.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description EndUserState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndUserState
cloneBasics()
RgbaQuadruplet
getColorBackground()
Gets the color for the background when displaying the name of this state (e.g.RgbaQuadruplet
getColorText()
Gets the color for the text when displaying the name of this state (e.g.String
getDescription(Locale locale)
String
getDisplayName(Locale locale)
String
getIconStyleClass()
Long
getId()
List<EndUserStateLocalization>
getLocalizations()
Gets the localized database objects.Locale
getLocalizationsDefaultLocale()
Gets the default locale for this providing object.EEndUserStateType
getType()
WorkflowState
getWorkflowState()
boolean
isRecordAccessible()
EndUserStateLocalization
newLocalization()
Creates a new localization object.void
setColorBackground(RgbaQuadruplet colorBackground)
Sets the color for the background when displaying the name of this state (e.g.void
setColorText(RgbaQuadruplet colorText)
Sets the color for the text when displaying the name of this state (e.g.void
setIconStyleClass(String iconStyleClass)
void
setLocalizations(List<EndUserStateLocalization> localizations)
void
setRecordAccessible(boolean recordAccessible)
void
setType(EEndUserStateType type)
void
setWorkflowState(WorkflowState workflowState)
-
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, 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
-
-
-
-
Field Detail
-
ATTR_WORKFLOW_STATE
public static final String ATTR_WORKFLOW_STATE
Database column name for thegetWorkflowState()
field.- See Also:
- Constant Field Values
-
ATTR_TYPE
public static final String ATTR_TYPE
Database column name for thegetType()
field.- See Also:
- Constant Field Values
-
ATTR_RECORD_ACCESSIBLE
public static final String ATTR_RECORD_ACCESSIBLE
Database column name for theisRecordAccessible()
field.- See Also:
- Constant Field Values
-
ATTR_ICON_STYLE_CLASS
public static final String ATTR_ICON_STYLE_CLASS
Database column name for thegetIconStyleClass()
field.- See Also:
- Constant Field Values
-
ATTR_COLOR_TEXT
public static final String ATTR_COLOR_TEXT
Database column name for thegetColorText()
field.- See Also:
- Constant Field Values
-
ATTR_COLOR_BACKGROUND
public static final String ATTR_COLOR_BACKGROUND
Database column name for thegetColorBackground()
field.- See Also:
- Constant Field Values
-
ATTR_LOCALIZATIONS
public static final String ATTR_LOCALIZATIONS
Database column name for thegetLocalizations()
field.- See Also:
- Constant Field Values
-
COL_WORKFLOW_STATE_ID
public static final String COL_WORKFLOW_STATE_ID
Database column name for thegetWorkflowState()
field.- See Also:
- Constant Field Values
-
COL_TYPE
public static final String COL_TYPE
Database column name for thegetType()
field.- See Also:
- Constant Field Values
-
COL_RECORD_ACCESSIBLE
public static final String COL_RECORD_ACCESSIBLE
Database column name for theisRecordAccessible()
field.- See Also:
- Constant Field Values
-
COL_ICON_STYLE_CLASS
public static final String COL_ICON_STYLE_CLASS
Database column name for thegetIconStyleClass()
field.- See Also:
- Constant Field Values
-
COL_COLOR_TEXT
public static final String COL_COLOR_TEXT
Database column name for thegetColorText()
field.- See Also:
- Constant Field Values
-
COL_COLOR_BACKGROUND
public static final String COL_COLOR_BACKGROUND
Database column name for thegetColorBackground()
field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getColorBackground
public RgbaQuadruplet getColorBackground()
Gets the color for the background when displaying the name of this state (e.g. as a tag).- Returns:
- The color for the background.
-
setColorBackground
public void setColorBackground(RgbaQuadruplet colorBackground)
Sets the color for the background when displaying the name of this state (e.g. as a tag).- Parameters:
colorBackground
- The color for the background.
-
getColorText
public RgbaQuadruplet getColorText()
Gets the color for the text when displaying the name of this state (e.g. as a tag).- Returns:
- The color for the text.
-
setColorText
public void setColorText(RgbaQuadruplet colorText)
Sets the color for the text when displaying the name of this state (e.g. as a tag).- Parameters:
colorText
- The color for the text.
-
getIconStyleClass
public String getIconStyleClass()
-
setIconStyleClass
public void setIconStyleClass(String iconStyleClass)
-
getLocalizations
public List<EndUserStateLocalization> getLocalizations()
Description copied from interface:ILocalizationProviding
Gets the localized database objects.- Specified by:
getLocalizations
in interfaceILocalizationProviding<EndUserState,EndUserStateLocalization>
- Returns:
- the localized database objects
-
setLocalizations
public void setLocalizations(List<EndUserStateLocalization> localizations)
-
getLocalizationsDefaultLocale
public Locale getLocalizationsDefaultLocale()
Description copied from interface:ILocalizationProviding
Gets the default locale for this providing object.- Specified by:
getLocalizationsDefaultLocale
in interfaceILocalizationProviding<EndUserState,EndUserStateLocalization>
- Returns:
- the default locale for this providing object
-
getType
public EEndUserStateType getType()
-
setType
public void setType(EEndUserStateType type)
-
getWorkflowState
public WorkflowState getWorkflowState()
-
setWorkflowState
public void setWorkflowState(WorkflowState workflowState)
-
isRecordAccessible
public boolean isRecordAccessible()
-
setRecordAccessible
public void setRecordAccessible(boolean recordAccessible)
-
cloneBasics
public EndUserState cloneBasics()
-
newLocalization
public EndUserStateLocalization newLocalization()
Description copied from interface:ILocalizationProviding
Creates a new localization object.- Specified by:
newLocalization
in interfaceILocalizationProviding<EndUserState,EndUserStateLocalization>
- Returns:
- a new localization object
-
-