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 StringATTR_COLOR_BACKGROUNDDatabase column name for thegetColorBackground()field.static StringATTR_COLOR_TEXTDatabase column name for thegetColorText()field.static StringATTR_ICON_STYLE_CLASSDatabase column name for thegetIconStyleClass()field.static StringATTR_LOCALIZATIONSDatabase column name for thegetLocalizations()field.static StringATTR_RECORD_ACCESSIBLEDatabase column name for theisRecordAccessible()field.static StringATTR_TYPEDatabase column name for thegetType()field.static StringATTR_WORKFLOW_STATEDatabase column name for thegetWorkflowState()field.static StringCOL_COLOR_BACKGROUNDDatabase column name for thegetColorBackground()field.static StringCOL_COLOR_TEXTDatabase column name for thegetColorText()field.static StringCOL_ICON_STYLE_CLASSDatabase column name for thegetIconStyleClass()field.static StringCOL_RECORD_ACCESSIBLEDatabase column name for theisRecordAccessible()field.static StringCOL_TYPEDatabase column name for thegetType()field.static StringCOL_WORKFLOW_STATE_IDDatabase 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 EndUserStatecloneBasics()RgbaQuadrupletgetColorBackground()Gets the color for the background when displaying the name of this state (e.g. as a tag).RgbaQuadrupletgetColorText()Gets the color for the text when displaying the name of this state (e.g. as a tag).StringgetDescription(Locale locale)StringgetDisplayName(Locale locale)StringgetIconStyleClass()LonggetId()List<EndUserStateLocalization>getLocalizations()Gets the localized database objects.LocalegetLocalizationsDefaultLocale()Gets the default locale for this providing object.EEndUserStateTypegetType()WorkflowStategetWorkflowState()booleanisRecordAccessible()EndUserStateLocalizationnewLocalization()Creates a new localization object.voidsetColorBackground(RgbaQuadruplet colorBackground)Sets the color for the background when displaying the name of this state (e.g. as a tag).voidsetColorText(RgbaQuadruplet colorText)Sets the color for the text when displaying the name of this state (e.g. as a tag).voidsetIconStyleClass(String iconStyleClass)voidsetLocalizations(List<EndUserStateLocalization> localizations)voidsetRecordAccessible(boolean recordAccessible)voidsetType(EEndUserStateType type)voidsetWorkflowState(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:ILocalizationProvidingGets the localized database objects.- Specified by:
getLocalizationsin interfaceILocalizationProviding<EndUserState,EndUserStateLocalization>- Returns:
- the localized database objects
-
setLocalizations
public void setLocalizations(List<EndUserStateLocalization> localizations)
-
getLocalizationsDefaultLocale
public Locale getLocalizationsDefaultLocale()
Description copied from interface:ILocalizationProvidingGets the default locale for this providing object.- Specified by:
getLocalizationsDefaultLocalein 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:ILocalizationProvidingCreates a new localization object.- Specified by:
newLocalizationin interfaceILocalizationProviding<EndUserState,EndUserStateLocalization>- Returns:
- a new localization object
-
-