Package mc.core.model.system
Class Report
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.SimpleEntity
mc.core.model.system.Report
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IEntity,ISortableEntity
Entity representing a report in the system. Report consist of a list of ReportItems ordered by their timestamp.
ReportItems are stored in DB (legacy) and (since MC7.4) in external lucene index.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator, EntityBase.Param -
Field Summary
Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReportItem(ReportItem reportItem) use with caution! if report is persistent and report item is not, you will get transient exception on flush.getName()getOwner()WARNING: do not call this method for version reports, because since mc7.4 report items are stored in lucene index.booleanvoidsetDateOfCreation(Calendar dateOfCreation) voidvoidsetReportItems(List<ReportItem> reportItems) voidsetReportLevel(ReportItem.ReportItemLevel reportLevel) voidsetStoreInIndex(boolean inIndex) Methods inherited from class mc.core.model.base.SimpleEntity
getId, getInternalDescription, getIsActive, setId, setIsActiveMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getFlag, getIsSystem, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toString
-
Constructor Details
-
Report
public Report() -
Report
-
-
Method Details
-
getDateOfCreation
-
setDateOfCreation
-
getOwner
-
setOwner
-
getReportItems
WARNING: do not call this method for version reports, because since mc7.4 report items are stored in lucene index. UseCCAPI.reportGetItems(Report)instead. -
setReportItems
-
addReportItem
use with caution! if report is persistent and report item is not, you will get transient exception on flush. same if report item is persistent and report not. take care to insert report first and items second.- Parameters:
reportItem-
-
isStoreInIndex
public boolean isStoreInIndex() -
setStoreInIndex
public void setStoreInIndex(boolean inIndex) -
getReportLevel
-
setReportLevel
-
getName
- Specified by:
getNamein interfaceIEntity- Overrides:
getNamein classEntityBase- Returns:
- Name of entity in multiple locales. Might be
null.
-
getDescription
- Specified by:
getDescriptionin interfaceIEntity- Overrides:
getDescriptionin classEntityBase- Returns:
- Description of entity in multiple locales. Might be
null.
-