Class HistoryOverview
- java.lang.Object
-
- de.valtech.aecu.core.model.history.HistoryOverview
-
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class HistoryOverview extends Object
Sling model for history overview area.- Author:
- Roland Gruber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHistoryOverview.DonutDataData for the donut chart.
-
Constructor Summary
Constructors Constructor Description HistoryOverview()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoryOverview.DonutDatagetDonutData()Returns the percentages of successful and failed scripts.StringgetDuration()Returns the duration.StringgetEnd()Returns the end as formatted string.de.valtech.aecu.api.service.HistoryEntrygetHistory()Returns the history entry.StringgetStart()Returns the start as formatted string.voidinit()Reads the history entry from CRX.
-
-
-
Method Detail
-
init
@PostConstruct public void init()
Reads the history entry from CRX.
-
getHistory
public de.valtech.aecu.api.service.HistoryEntry getHistory()
Returns the history entry.- Returns:
- history
-
getStart
public String getStart()
Returns the start as formatted string.- Returns:
- start date
-
getEnd
public String getEnd()
Returns the end as formatted string.- Returns:
- end date
-
getDuration
public String getDuration()
Returns the duration.- Returns:
- duration
-
getDonutData
public HistoryOverview.DonutData getDonutData()
Returns the percentages of successful and failed scripts.- Returns:
- data for donut diagram
-
-