fr.hyphonem.conges
Interface AccessData

All Known Implementing Classes:
AccessDataXMLImpl

public interface AccessData

Author:
Stephane Gauchet pour Hyphonem

Method Summary
 EmployeeIdCalData deletePendingEvent(java.lang.String id)
           
 void deleteTemporarilyOriginalEvent(java.lang.String id)
          supprime l'evenement original identifié par id du fichier temporaire
 java.util.Vector readCalendarData(EmployeeData employee)
          read from data all CalendarData
 java.util.Vector readEmployees()
          read all employees from data
 java.util.Hashtable readNationalHolidays(java.lang.String country, java.lang.String year)
          lit tous les jours f�ri�s d'un pays pour une ann�e
 java.lang.String readParamMail()
          retourne le serveur de mail
 java.lang.String readParamPays()
          read params country
 java.util.Vector readParamPeriods()
          read periods names and codes
 java.util.Vector readParams()
          read all params from data
 PendingEventData readPendingEvent(java.lang.String id)
          lit une absence en attente de validation
 java.util.Vector readPendingEvents(EmployeeData ed)
          lit les absences en attente de validation pour un employ�
 java.util.Vector readPendingEvents(UserData user, java.lang.String team)
           
 java.util.Vector readReasons()
          read all reasons from data
 java.util.Iterator readTeams()
           
 java.util.Vector readUsers()
          read all users from data
 void replaceOldWithNewReason(java.lang.String oldnom, java.lang.String nom, java.util.Vector employees)
          replace an old reason name with the new one for all employees data
 void replaceOldWithNewTeam(java.lang.String oldnom0, java.lang.String nom0, java.util.Vector employees)
          replace old name of employee with the new one
 java.util.Vector searchCalendarData(EmployeeIdCalData eid)
           
 java.util.Vector searchSupervisor(EmployeeData employee, AccessData ad)
          retourne la liste des superviseurs d'un employ�
 java.util.Vector searchSupervisor(java.lang.String team)
          recherche la liste des superviseurs d'une �quipe
 CalendarData searchTemporarilyOriginalEvents(java.lang.String id)
          recherche dans le fichier temporaire l'evenement original
 UserData searchUser(EmployeeData employee)
          recherche le user associ� � un employ�
 UserData searchUser(java.lang.String login)
          search a user with login parameter
 UserData searchUser(java.lang.String login, java.lang.String password)
          search a user with login and password parameters
 void writeCalendarData(CalendarData cd, boolean modif)
          write a calendarData in data
 void writeCalendarData(CalendarData cd, boolean modif, boolean delete)
          write a calendarData in data with delete parameter
 void writeEmployee(EmployeeData employee)
          write an employee in data
 void writeEmployee(EmployeeData employee, boolean modif, boolean delete)
          write a new employee
 void writeEmployee(EmployeeData employee, EmployeeData modifiedEmployee, boolean modif, boolean delete)
          write a modified employee
 void writeNationalHolidays(java.lang.String country, java.lang.String year, java.util.Hashtable nationalDays)
          ecrit les jours f�ri�s entr�s par pays et ann�e
 void writeParamMail(java.lang.String server)
          ecrit le serveur de mail
 void writeParamPays(java.lang.String iso)
          write params country
 void writeParams(java.util.Vector params)
          write app params in data
 void writePendingEvent(java.lang.String id, CalendarData ca, EmployeeData employee, java.lang.String cause, java.lang.String codPays, java.lang.String dirWeb)
           
 void writePeriods(java.util.Vector periods)
          write periods
 void writeReasons(java.util.Vector reasons)
          write all reasons in data
 void writeTeams(java.util.Vector teams)
          write teams
 void writeTemporarilyOriginalEvent(java.lang.String id, CalendarData originalEvent, EmployeeData employee, java.lang.String typeEvent, java.lang.String codePays, java.lang.String dirWeb)
          ecrit temporairement l'evenement original venant d etre modifié dasn un autre endroit
 void writeUser(UserData user)
          write a user in data
 void writeUser(UserData user, boolean modif, boolean delete)
          write a user with delete and modif parameters
 

Method Detail

readCalendarData

java.util.Vector readCalendarData(EmployeeData employee)
                                  throws java.lang.Exception
read from data all CalendarData

Parameters:
employee - - EmployeeData
Returns:
Vector of CalendarData
Throws:
java.lang.Exception

writeCalendarData

void writeCalendarData(CalendarData cd,
                       boolean modif,
                       boolean delete)
                       throws java.lang.Exception
write a calendarData in data with delete parameter

Parameters:
cd - - CalendarData
modif - - boolean
delete - - boolean
Throws:
java.lang.Exception

writeCalendarData

void writeCalendarData(CalendarData cd,
                       boolean modif)
                       throws java.lang.Exception
write a calendarData in data

Parameters:
cd - - CalendarData
modif - - boolean
Throws:
java.lang.Exception

searchUser

UserData searchUser(java.lang.String login,
                    java.lang.String password)
                    throws java.lang.Exception
search a user with login and password parameters

Parameters:
login -
password -
Returns:
UserData
Throws:
java.lang.Exception

readUsers

java.util.Vector readUsers()
                           throws java.lang.Exception
read all users from data

Returns:
Vector of UserData
Throws:
java.lang.Exception

readEmployees

java.util.Vector readEmployees()
                               throws java.lang.Exception
read all employees from data

Returns:
Vector of EmployeeData
Throws:
java.lang.Exception

writeUser

void writeUser(UserData user)
               throws java.lang.Exception
write a user in data

Parameters:
user -
Throws:
java.lang.Exception

writeEmployee

void writeEmployee(EmployeeData employee)
                   throws java.lang.Exception
write an employee in data

Parameters:
employee - - EmployeeData
Throws:
java.lang.Exception

readReasons

java.util.Vector readReasons()
                             throws java.lang.Exception
read all reasons from data

Returns:
Vector of ReasonData
Throws:
java.lang.Exception

searchUser

UserData searchUser(java.lang.String login)
                    throws java.lang.Exception
search a user with login parameter

Parameters:
login -
Returns:
UserData
Throws:
java.lang.Exception

writeUser

void writeUser(UserData user,
               boolean modif,
               boolean delete)
               throws java.lang.Exception
write a user with delete and modif parameters

Parameters:
user - - UserData
modif - - boolean
delete - - boolean
Throws:
java.lang.Exception

writeEmployee

void writeEmployee(EmployeeData employee,
                   boolean modif,
                   boolean delete)
                   throws java.lang.Exception
write a new employee

Parameters:
employee - - EmployeeData
modif - - boolean
delete - - boolean
Throws:
java.lang.Exception

writeEmployee

void writeEmployee(EmployeeData employee,
                   EmployeeData modifiedEmployee,
                   boolean modif,
                   boolean delete)
                   throws java.lang.Exception
write a modified employee

Parameters:
employee - - EmployeeData
modifiedEmployee - - EmployeeData
modif - - boolean
delete - - boolean
Throws:
java.lang.Exception

writeReasons

void writeReasons(java.util.Vector reasons)
                  throws java.lang.Exception
write all reasons in data

Parameters:
reasons - - Vector de ReasonData
Throws:
java.lang.Exception

replaceOldWithNewReason

void replaceOldWithNewReason(java.lang.String oldnom,
                             java.lang.String nom,
                             java.util.Vector employees)
                             throws java.lang.Exception
replace an old reason name with the new one for all employees data

Parameters:
oldnom - - String
nom - - String
employees - - Vector of EmployeeData
Throws:
java.lang.Exception

writeParams

void writeParams(java.util.Vector params)
                 throws java.lang.Exception
write app params in data

Parameters:
params - - vector of ParamData
Throws:
java.lang.Exception

readParams

java.util.Vector readParams()
                            throws java.lang.Exception
read all params from data

Returns:
Vector of ParamData
Throws:
java.lang.Exception

readParamPays

java.lang.String readParamPays()
                               throws java.lang.Exception
read params country

Returns:
String
Throws:
java.lang.Exception

writeParamPays

void writeParamPays(java.lang.String iso)
                    throws java.lang.Exception
write params country

Parameters:
iso - - country ISO code
Throws:
java.lang.Exception

writeTeams

void writeTeams(java.util.Vector teams)
                throws java.lang.Exception
write teams

Parameters:
teams -
Throws:
java.lang.Exception

replaceOldWithNewTeam

void replaceOldWithNewTeam(java.lang.String oldnom0,
                           java.lang.String nom0,
                           java.util.Vector employees)
                           throws java.lang.Exception
replace old name of employee with the new one

Parameters:
oldnom0 -
nom0 -
employees -
Throws:
java.lang.Exception

readTeams

java.util.Iterator readTeams()
                             throws java.lang.Exception
Returns:
vector of teams
Throws:
java.lang.Exception

writePendingEvent

void writePendingEvent(java.lang.String id,
                       CalendarData ca,
                       EmployeeData employee,
                       java.lang.String cause,
                       java.lang.String codPays,
                       java.lang.String dirWeb)
                       throws java.lang.Exception
Parameters:
id -
ca -
employee -
cause -
codPays -
dirWeb -
Throws:
java.lang.Exception

readPendingEvents

java.util.Vector readPendingEvents(UserData user,
                                   java.lang.String team)
                                   throws java.lang.Exception
Parameters:
user -
team -
Returns:
Vector
Throws:
java.lang.Exception

deletePendingEvent

EmployeeIdCalData deletePendingEvent(java.lang.String id)
                                     throws java.lang.Exception
Parameters:
id -
Returns:
EmployeeIdCalData
Throws:
java.lang.Exception

searchCalendarData

java.util.Vector searchCalendarData(EmployeeIdCalData eid)
                                    throws java.lang.Exception
Parameters:
eid -
Returns:
Vector
Throws:
java.lang.Exception

readPendingEvent

PendingEventData readPendingEvent(java.lang.String id)
                                  throws java.lang.Exception
lit une absence en attente de validation

Parameters:
id -
Returns:
PendingEventData
Throws:
java.lang.Exception

readPendingEvents

java.util.Vector readPendingEvents(EmployeeData ed)
                                   throws java.lang.Exception
lit les absences en attente de validation pour un employ�

Parameters:
ed -
Returns:
Vector
Throws:
java.lang.Exception

readParamMail

java.lang.String readParamMail()
                               throws java.lang.Exception
retourne le serveur de mail

Returns:
String
Throws:
java.lang.Exception

writeParamMail

void writeParamMail(java.lang.String server)
                    throws java.lang.Exception
ecrit le serveur de mail

Parameters:
server -
Throws:
java.lang.Exception

searchSupervisor

java.util.Vector searchSupervisor(EmployeeData employee,
                                  AccessData ad)
                                  throws java.lang.Exception
retourne la liste des superviseurs d'un employ�

Parameters:
employee -
ad -
Returns:
Vector
Throws:
java.lang.Exception

searchSupervisor

java.util.Vector searchSupervisor(java.lang.String team)
                                  throws java.lang.Exception
recherche la liste des superviseurs d'une �quipe

Parameters:
team -
Returns:
Vector
Throws:
java.lang.Exception

searchUser

UserData searchUser(EmployeeData employee)
                    throws java.lang.Exception
recherche le user associ� � un employ�

Parameters:
employee -
Returns:
UserData
Throws:
java.lang.Exception

readNationalHolidays

java.util.Hashtable readNationalHolidays(java.lang.String country,
                                         java.lang.String year)
                                         throws java.lang.Exception
lit tous les jours f�ri�s d'un pays pour une ann�e

Parameters:
country -
year -
Returns:
Hashtable
Throws:
java.lang.Exception

writeNationalHolidays

void writeNationalHolidays(java.lang.String country,
                           java.lang.String year,
                           java.util.Hashtable nationalDays)
                           throws java.lang.Exception
ecrit les jours f�ri�s entr�s par pays et ann�e

Parameters:
country -
year -
nationalDays -
Throws:
java.lang.Exception

writeTemporarilyOriginalEvent

void writeTemporarilyOriginalEvent(java.lang.String id,
                                   CalendarData originalEvent,
                                   EmployeeData employee,
                                   java.lang.String typeEvent,
                                   java.lang.String codePays,
                                   java.lang.String dirWeb)
                                   throws java.lang.Exception
ecrit temporairement l'evenement original venant d etre modifié dasn un autre endroit

Parameters:
id -
originalEvent -
employee -
typeEvent -
codePays -
dataDirPath -
Throws:
java.lang.Exception

deleteTemporarilyOriginalEvent

void deleteTemporarilyOriginalEvent(java.lang.String id)
                                    throws java.lang.Exception
supprime l'evenement original identifié par id du fichier temporaire

Parameters:
id -
Throws:
java.lang.Exception

searchTemporarilyOriginalEvents

CalendarData searchTemporarilyOriginalEvents(java.lang.String id)
                                             throws java.lang.Exception
recherche dans le fichier temporaire l'evenement original

Parameters:
id -
Returns:
un event
Throws:
java.lang.Exception

readParamPeriods

java.util.Vector readParamPeriods()
                                  throws java.lang.Exception
read periods names and codes

Returns:
list of periods
Throws:
java.lang.Exception

writePeriods

void writePeriods(java.util.Vector periods)
                  throws java.lang.Exception
write periods

Parameters:
periods -
Throws:
java.lang.Exception


Copyright © 2004-2007 Hyphonem. All Rights Reserved.