Class FailureInvestigationDashboardManager
java.lang.Object
overit.geocallapp.wfm.notifications.dashboard.failureinvestigation.FailureInvestigationDashboardManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Longprotected DBViewprotected DBViewprotected DBViewprotected HashGetterprotected Longprotected Longprotected Dateprotected Dateprotected Long[]protected Long[]protected static final Longprotected static final Longprotected static final Longprotected static final Longprotected static final Longprotected static final Long -
Constructor Summary
ConstructorsConstructorDescriptionFailureInvestigationDashboardManager(DBView notifications, HashGetter filter) -
Method Summary
Modifier and TypeMethodDescriptionvoidBuild all the rows of the dbv filling only group id and reference labelcreateResultDbv(Boolean isMain) Generate or empty dbvprotected DategenerateReferenceDate(String dateString) Decode a date decoded as string ( MM/YYYY, ww-YYYY, dd/MM/YYYY,...)protected DategenerateReferenceDate(String dateString, Long chartGrouping) getDataLongSetIdFromClick(int clickedBar, int column, HashGetter displayedData, Boolean mainResult) Return the longset of notifications id that compound the bar clicked by the userprotected Date[]getDatesRange(Date date, Boolean isMain) Giving a reference date, return the data range in according with the time grouping of the graphgetDetailLevelFromGroup(Long group) Deduction of che correct level of the secondary graph from main graph levelgetFilterFieldFromGroupingType(Boolean fromMain) getGroupingRange(Boolean isMainChart) return main or detail chart grouping range evaluting boolean flagprotected SimpleDateFormatgetSdf()protected DBViewgetWokingDbv(Boolean isMain) protected voidGroup the data retrived by the query and populate the dbv used for plot the main graphprotected voidgroupDataDetail(Boolean generateFromMain) voidsetDetailFilters(int row, int column, HashGetter displayedData) Set an hashgetter of filters builded with the data of the bar clicked by the user in the main graphprotected voidsetGroupingRangeDetail(Long range) Set new range level for secondary graphvoidsetNewGroupingParameters(Long detailLevelDetail)
-
Field Details
-
_dbvNotifications
-
_dbvResult
-
_dbvResultMain
-
_detailLevel
-
_detailLevelDetail
-
_chartGroupingRange
-
_chartGroupingRangeDetail
-
_detailFilters
-
_lsMainGroups
-
_lsDetailGroups
-
_dtFrom
-
_dtTo
-
ANOMALYGROUP
-
OBJECTGROUP
-
CAUSEGROUP
-
OBJECTCODE
-
ANOMALYCODE
-
CAUSECODE
-
-
Constructor Details
-
FailureInvestigationDashboardManager
-
-
Method Details
-
getDetailLevelFromGroup
Deduction of che correct level of the secondary graph from main graph level- Parameters:
group-- Returns:
-
setNewGroupingParameters
-
setDetailFilters
Set an hashgetter of filters builded with the data of the bar clicked by the user in the main graph- Parameters:
column-displayedData-
-
getWokingDbv
-
createResultDbv
Generate or empty dbv- Parameters:
isMain-- Returns:
-
createBasicDBView
public void createBasicDBView(ArrayList<Date> groupingDates, Long range, LongSet lsGroups, Boolean isMain) Build all the rows of the dbv filling only group id and reference label- Parameters:
groupingDates-range-lsGroups-isMain-
-
getSdf
-
getDatesRange
Giving a reference date, return the data range in according with the time grouping of the graph- Parameters:
date-isMain-- Returns:
-
getDataLongSetIdFromClick
public LongSet getDataLongSetIdFromClick(int clickedBar, int column, HashGetter displayedData, Boolean mainResult) Return the longset of notifications id that compound the bar clicked by the user- Parameters:
clickedBar-displayedData-
-
getGroupingRange
return main or detail chart grouping range evaluting boolean flag- Parameters:
isMainChart-- Returns:
-
generateReferenceDate
Decode a date decoded as string ( MM/YYYY, ww-YYYY, dd/MM/YYYY,...)- Parameters:
dateString-- Returns:
-
generateReferenceDate
-
getFilterFieldFromGroupingType
-
groupData
protected void groupData()Group the data retrived by the query and populate the dbv used for plot the main graph -
groupDataDetail
-
setGroupingRangeDetail
Set new range level for secondary graph- Parameters:
range-
-