fr.hyphonem.conges
Class CommonCal

java.lang.Object
  extended by fr.hyphonem.conges.CommonCal

public class CommonCal
extends java.lang.Object

Author:
Stephane Gauchet pour Hyphonem common class for useful stuff

Constructor Summary
CommonCal()
          Constructor for CommonCal.
 
Method Summary
 org.jfree.data.IntervalCategoryDataset createDataset(java.util.Hashtable data)
           
 org.jfree.chart.JFreeChart createGantt(java.util.Hashtable dataPlanning)
          create a Gantt diagram
 java.util.Vector getDiscretCalData(java.util.Vector vCalendarData, EmployeeData employee, java.util.Hashtable hJF)
          do a list of calendarData with only one day in it and no fery days or weekend days
 java.util.Vector getEmployeeStats(java.lang.String fileDirPath, EmployeeData employee, java.util.Vector params)
           
 GetMaxDaysReturnBean getMaxJoursForNMonthsForwardDate(java.util.Calendar date, int nMonthsForward)
          retourne le nombre de jours dans les mois suivants la date pass�e en param�tre
return nb of days in the nth next months following the date in parameter
 java.lang.String getMaxNbDaysForReasonInParams(java.util.Vector params, java.lang.String reason, EmployeeData employee, java.lang.String fromDate, java.lang.String toDate)
           
 PeriodParamsData searchPeriodInParams(java.util.Vector params)
          retourne la p�riode de calcul des cong�s � partir de la date du jour
 PeriodParamsData searchPeriodInParamsForReason(java.util.Vector params, java.lang.String raison)
           
 void sendEmail(PendingEventData ped, EmployeeData employee, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession httpSession, AccessData ad, int type)
           
 void sendEmailValidation(PendingEventData ped, EmployeeIdCalData eid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession httpSession, AccessData ad, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonCal

public CommonCal()
Constructor for CommonCal.

Method Detail

getMaxJoursForNMonthsForwardDate

public GetMaxDaysReturnBean getMaxJoursForNMonthsForwardDate(java.util.Calendar date,
                                                             int nMonthsForward)
retourne le nombre de jours dans les mois suivants la date pass�e en param�tre
return nb of days in the nth next months following the date in parameter

Parameters:
date -
nMonthsForward -
Returns:
bean GetMaxDaysReturnBean

getDiscretCalData

public java.util.Vector getDiscretCalData(java.util.Vector vCalendarData,
                                          EmployeeData employee,
                                          java.util.Hashtable hJF)
                                   throws java.lang.Exception
do a list of calendarData with only one day in it and no fery days or weekend days

Parameters:
vCalendarData -
employee -
hJF - : hashtable des jours feries
Returns:
Vector
Throws:
java.lang.Exception

createGantt

public org.jfree.chart.JFreeChart createGantt(java.util.Hashtable dataPlanning)
                                       throws java.text.ParseException,
                                              java.lang.NoClassDefFoundError,
                                              java.lang.InternalError
create a Gantt diagram

Parameters:
dataPlanning -
Returns:
JFreeChart
Throws:
ParseException, - NoClassDefFoundError, InternalError
java.lang.NoClassDefFoundError
java.lang.InternalError
java.text.ParseException

createDataset

public org.jfree.data.IntervalCategoryDataset createDataset(java.util.Hashtable data)
                                                     throws java.text.ParseException
Parameters:
data -
Returns:
IntervalCategoryDataset
Throws:
java.text.ParseException

sendEmail

public void sendEmail(PendingEventData ped,
                      EmployeeData employee,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpSession httpSession,
                      AccessData ad,
                      int type)
               throws java.lang.Exception
Parameters:
ped -
employee -
request -
httpSession -
ad -
type -
Throws:
java.lang.Exception

sendEmailValidation

public void sendEmailValidation(PendingEventData ped,
                                EmployeeIdCalData eid,
                                javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpSession httpSession,
                                AccessData ad,
                                int type)
                         throws java.lang.Exception
Parameters:
ped -
eid -
request -
httpSession -
ad -
type -
Throws:
java.lang.Exception

getMaxNbDaysForReasonInParams

public java.lang.String getMaxNbDaysForReasonInParams(java.util.Vector params,
                                                      java.lang.String reason,
                                                      EmployeeData employee,
                                                      java.lang.String fromDate,
                                                      java.lang.String toDate)
                                               throws java.lang.Exception
Parameters:
params -
reason -
employee -
fromDate -
toDate -
Returns:
maxNBJours
Throws:
java.lang.Exception

searchPeriodInParams

public PeriodParamsData searchPeriodInParams(java.util.Vector params)
                                      throws java.lang.Exception
retourne la p�riode de calcul des cong�s � partir de la date du jour

Parameters:
params - - Vector des param�tres de cong�s
Returns:
PeriodParamsData
Throws:
java.lang.Exception

searchPeriodInParamsForReason

public PeriodParamsData searchPeriodInParamsForReason(java.util.Vector params,
                                                      java.lang.String raison)
                                               throws java.lang.Exception
Parameters:
params -
raison -
Returns:
PeriodParamsData
Throws:
java.lang.Exception

getEmployeeStats

public java.util.Vector getEmployeeStats(java.lang.String fileDirPath,
                                         EmployeeData employee,
                                         java.util.Vector params)
                                  throws java.lang.Exception
Parameters:
fileDirPath -
employee -
params -
Returns:
Vector
Throws:
java.lang.Exception


Copyright © 2004-2007 Hyphonem. All Rights Reserved.