Package mc.core.model.system
Class ReportItem
java.lang.Object
mc.core.model.base.EntityText
mc.core.model.system.ReportItem
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
A line in a report. The ReportItem has a level telling its type, default is ReportItemLevel INFO. The text is coded
as resource bundle key to allow language dependent display of the report item. The bundle key may come with a
variable number of arguments reflected in the non-standard constructors of ReportItem. The length of all arguments
together with separating semicolons must not surpass 1000 charactes, otherwise the arguments are truncated.
field: transient, IEntityField mapping the ReportItem to a property of an entity, currently not
implemented.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields inherited from class mc.core.model.base.EntityText
TEXT_MAX_LENGTH_STD -
Constructor Summary
ConstructorsConstructorDescriptionReportItem(Report report, String key, String... args) ReportItem(Report report, ReportItem.ReportItemLevel level, String key, String... args) ReportItem(mc.core.system.util.map.ObjectMap data) -
Method Summary
Modifier and TypeMethodDescriptionstatic Object[]addToArguments(Object[] args, Exception ex) arguments helper: add ex class and message as last argumentstatic Object[]arguments helperbooleanString[]longgetId()getKey()inthashCode()voidsetArgString(String arguments) voidsetArguments(String[] args) voidsetId(long id) voidvoidvoidvoidsetTimestamp(Calendar timestamp) voidsetValueNew(String valueNew) voidsetValueOld(String valueOld) toString()
-
Constructor Details
-
ReportItem
public ReportItem() -
ReportItem
-
ReportItem
-
ReportItem
public ReportItem(mc.core.system.util.map.ObjectMap data)
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getArgString
-
setArgString
-
getKey
-
setKey
-
getReportLevel
-
setReportLevel
-
getTimestamp
-
setTimestamp
-
getReport
-
setReport
-
getValueOld
-
setValueOld
-
getValueNew
-
setValueNew
-
getArguments
- Returns:
- array with additional arguments. also adds the valueOld and valueNew properties to end of argument array, if they are not null.
-
setArguments
-
addToArguments
arguments helper: add ex class and message as last argument -
concat
arguments helper -
equals
-
hashCode
public int hashCode() -
toString
-