fr.ifremer.wao.ui.pages
Class Synthesis

java.lang.Object
  extended by fr.ifremer.wao.ui.base.AbstractFilteredPage
      extended by fr.ifremer.wao.ui.pages.Synthesis
All Implemented Interfaces:
WaoPage

@IncludeStylesheet(value="context:css/synthesis.css")
public class Synthesis
extends AbstractFilteredPage
implements WaoPage

Synthesis Created: 9 nov. 2009

Version:
$Revision: 355 $ Mise a jour: $Date: 2010-02-16 14:56:07 +0100 (mar., 16 févr. 2010) $ par : $Author: fdesbois $
Author:
fdesbois

Constructor Summary
Synthesis()
           
 
Method Summary
 String getActionChartType()
           
 String getActionSynthesisId()
           
 org.apache.tapestry5.Block getActiveBlock()
           
 Collection<ContactAverageReactivity> getAllegroReactivity()
           
 String getAllegroReactivityStyle()
           
 Double getAllegroReactivityValue()
           
 org.jfree.chart.JFreeChart getBoardingBoatsChart()
           
 BoardingResult getBoardingResult()
           
 Company getCompanyForBoarding()
           
 ContactState[] getContactStates()
          Get all existing contactStates.
 Collection<ContactStateStatistics> getContactStateStatistics()
          Get all contactStateStatistics from serviceSynthesis.
 org.jfree.chart.JFreeChart getDataSamplingChart()
           
 ChartUtils.ChartType getDataSamplingChartType()
           
 DateFormat getDateFormat()
           
 BoatFilter getFilter()
           
 Date getFromDate()
           
 int getNbContactStates()
          Get the value for current contactStateStats in table row (by company) and current contactState in table column.
 Map<String,Double> getNonComplianceBoarding()
          Data for nonComplianceBoarding indicator.
 Double getNonComplianceBoardingValue()
          Return the value of nonComplianceBoarding indicator.
 NumberFormat getNumberFormat()
           
 double getPercentContactStates()
          Get the percent value for the current contactStateStats in table row (by company) and current contactState in table column.
 NumberFormat getPercentFormat()
           
 org.nuiton.util.PeriodDates getPeriod()
           
 org.nuiton.util.PeriodDates getPeriodForAllegroReactivity()
           
 org.nuiton.util.PeriodDates getPeriodForContactStates()
           
protected  boolean isAvailableDataForFiltersOnly()
          Used to show only active company and observers.
 boolean isOnlyForAdmin()
           
 
Methods inherited from class fr.ifremer.wao.ui.base.AbstractFilteredPage
getCompanySelectModel, getFacadeSelectModel, getObserverSelectModel, getProgramSelectModel, getSampleRowSelectModel, getSectorSelectModel, initSelectFilters, isEdited, onProvideCompletionsFromBoatName, onSelectedFromRefreshByCompany, onSelectedFromRefreshByFacade, onSelectedFromRefreshByProgram, onSelectedFromRefreshBySector, onSelectedFromSearch, resetCompanySelect, resetFacadeSelect, resetSampleRowSelect, resetSectorSelect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synthesis

public Synthesis()
Method Detail

isOnlyForAdmin

public boolean isOnlyForAdmin()
Specified by:
isOnlyForAdmin in interface WaoPage

getActiveBlock

public org.apache.tapestry5.Block getActiveBlock()
                                          throws WaoException
Throws:
WaoException

getActionSynthesisId

public String getActionSynthesisId()

getActionChartType

public String getActionChartType()

getPercentFormat

public NumberFormat getPercentFormat()

getDateFormat

public DateFormat getDateFormat()

getNumberFormat

public NumberFormat getNumberFormat()

getFilter

public BoatFilter getFilter()
                     throws WaoException
Specified by:
getFilter in class AbstractFilteredPage
Throws:
WaoException

getPeriod

public org.nuiton.util.PeriodDates getPeriod()
                                      throws WaoException
Throws:
WaoException

isAvailableDataForFiltersOnly

protected boolean isAvailableDataForFiltersOnly()
Description copied from class: AbstractFilteredPage
Used to show only active company and observers.

Specified by:
isAvailableDataForFiltersOnly in class AbstractFilteredPage
Returns:
true if only active users will be showed, false otherwise

getDataSamplingChart

public org.jfree.chart.JFreeChart getDataSamplingChart()
                                                throws WaoException
Throws:
WaoException

getDataSamplingChartType

public ChartUtils.ChartType getDataSamplingChartType()

getBoardingBoatsChart

public org.jfree.chart.JFreeChart getBoardingBoatsChart()
                                                 throws WaoException
Throws:
WaoException

getBoardingResult

public BoardingResult getBoardingResult()
                                 throws WaoException
Throws:
WaoException

getCompanyForBoarding

public Company getCompanyForBoarding()

getFromDate

public Date getFromDate()

getNonComplianceBoarding

public Map<String,Double> getNonComplianceBoarding()
                                            throws WaoException
Data for nonComplianceBoarding indicator. The key is the company considered and the value is the indicator value. The map will contains only one row, if the current user is an observer.

Returns:
a Map with companies and there values for nonComplianceBoarding
Throws:
WaoException

getNonComplianceBoardingValue

public Double getNonComplianceBoardingValue()
                                     throws WaoException
Return the value of nonComplianceBoarding indicator. Only useful for observer user.

Returns:
the value of the indicator
Throws:
WaoException

getContactStates

public ContactState[] getContactStates()
Get all existing contactStates.

Returns:
ContactState[]

getContactStateStatistics

public Collection<ContactStateStatistics> getContactStateStatistics()
                                                             throws WaoException
Get all contactStateStatistics from serviceSynthesis. There will be only one result if the current user is an observer.

Returns:
all contactStateStatistics depends on company and selected period
Throws:
WaoException

getPeriodForContactStates

public org.nuiton.util.PeriodDates getPeriodForContactStates()

getNbContactStates

public int getNbContactStates()
Get the value for current contactStateStats in table row (by company) and current contactState in table column.

Returns:
the number of contact states for the current contactState

getPercentContactStates

public double getPercentContactStates()
Get the percent value for the current contactStateStats in table row (by company) and current contactState in table column.

Returns:
the percent value of contact states for the current contactState

getAllegroReactivity

public Collection<ContactAverageReactivity> getAllegroReactivity()
                                                          throws WaoException
Throws:
WaoException

getPeriodForAllegroReactivity

public org.nuiton.util.PeriodDates getPeriodForAllegroReactivity()

getAllegroReactivityValue

public Double getAllegroReactivityValue()
                                 throws WaoException
Throws:
WaoException

getAllegroReactivityStyle

public String getAllegroReactivityStyle()
                                 throws WaoException
Throws:
WaoException


Copyright © 2009-2010 Ifremer. All Rights Reserved.