org.genealogie.controleur.defaut
Class AuthentificationsCtrlImpl

java.lang.Object
  |
  +--org.genealogie.controleur.defaut.GenericCtrl
        |
        +--org.genealogie.controleur.defaut.AuthentificationsCtrlImpl
All Implemented Interfaces:
AuthentificationsCtrl

public class AuthentificationsCtrlImpl
extends GenericCtrl
implements AuthentificationsCtrl

Classe de contr“le pour les op‚rations de manipulation des documents. Les erreurs lev‚es sont de type AuthentificationException avec des codes d‚finis en chaŒnes 'public static' de la classe.

Version:
$Revision: 1.19 $, $Date: 2003/03/26 14:47:11 $
Author:
Templth

Field Summary
private  AccesImpl acces
           
private  AuthentificationDAO authentificationDAO
           
private  FactoryDAO factory
           
 
Fields inherited from class org.genealogie.controleur.defaut.GenericCtrl
formatDate
 
Fields inherited from interface org.genealogie.controleur.AuthentificationsCtrl
ACCES_HAS_COMMUNES_ASSOCIES, ACCES_HAS_DEPARTEMENTS_ASSOCIES, ACCES_HAS_FAMILLES_ASSOCIES, ACCES_HAS_PAYS_ASSOCIES, ACCES_HAS_TYPES_DOCUMENTS_ASSOCIES, ACCES_LOGIN_VIDE, ACCES_NULL, ACCES_PARAM_NULL, ACCES_PASSWORD_VIDE
 
Constructor Summary
AuthentificationsCtrlImpl()
           
 
Method Summary
 void delete()
          Cette m‚thode permet de suprimer un document en base, aprŠs avoir fait les v‚rifications n‚cessaires
 AuthUtils getAuth()
          Accesseur en lecture de l'authentification.
 void init(FactoryDAO factory)
          Initialisation par d‚faut.
 void init(FactoryDAO factory, AuthUtils auth)
          Initialisation avec l'authentification pour la classe.
 void init(FactoryDAO factory, int authId)
          Initialisation avec l'authentification pour la classe.
 void insert(AuthUtils auth)
          Cette m‚thode permet d'ins‚rer une authentification en base, aprŠs avoir fait les v‚rifications n‚cessaires
 void insert(java.lang.String login, java.lang.String password, boolean accesTotal, boolean accesActive, int borneSup, boolean gestionRecherches, boolean registres)
          Cette m‚thode permet d'ins‚rer une authentification en base, aprŠs avoir fait les v‚rifications n‚cessaires
 void update(AuthUtils auth)
          Cette m‚thode permet de mettre … jour un document en base, aprŠs avoir fait les v‚rifications n‚cessaires
 void update(java.lang.String login, java.lang.String password, boolean accesTotal, boolean accesActive, int borneSup, boolean gestionRecherches, boolean registres)
          Cette m‚thode permet de mettre … jour un document en base, aprŠs avoir fait les v‚rifications n‚cessaires
 
Methods inherited from class org.genealogie.controleur.defaut.GenericCtrl
estDecede, estDecede, getAge, getAge, getFormatDate, getPrenoms, getPrenoms, insererPersonneTable, isDateApprochee, majPersonneTable, setFormatDate, supprimerPersonneTable, supprimerPersonneTable
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

factory

private FactoryDAO factory

authentificationDAO

private AuthentificationDAO authentificationDAO

acces

private AccesImpl acces
Constructor Detail

AuthentificationsCtrlImpl

public AuthentificationsCtrlImpl()
Method Detail

init

public void init(FactoryDAO factory)
          throws JGeneaException

Initialisation par d‚faut.

Specified by:
init in interface AuthentificationsCtrl
Parameters:
factory - la factory d'accŠs … la couche dao

init

public void init(FactoryDAO factory,
                 AuthUtils auth)
          throws JGeneaException

Initialisation avec l'authentification pour la classe.

Specified by:
init in interface AuthentificationsCtrl
Parameters:
factory - la factory d'accŠs … la couche dao
auth - l'authentification

init

public void init(FactoryDAO factory,
                 int authId)
          throws JGeneaException

Initialisation avec l'authentification pour la classe.

Specified by:
init in interface AuthentificationsCtrl
Parameters:
factory - la factory d'accŠs … la couche dao
authId - l'identifiant de l'authentification

getAuth

public AuthUtils getAuth()

Accesseur en lecture de l'authentification.

Specified by:
getAuth in interface AuthentificationsCtrl
Returns:
l'authentification

insert

public void insert(AuthUtils auth)
            throws JGeneaException

Cette m‚thode permet d'ins‚rer une authentification en base, aprŠs avoir fait les v‚rifications n‚cessaires

Specified by:
insert in interface AuthentificationsCtrl
Parameters:
authentification - l'authentification

insert

public void insert(java.lang.String login,
                   java.lang.String password,
                   boolean accesTotal,
                   boolean accesActive,
                   int borneSup,
                   boolean gestionRecherches,
                   boolean registres)
            throws JGeneaException

Cette m‚thode permet d'ins‚rer une authentification en base, aprŠs avoir fait les v‚rifications n‚cessaires

Specified by:
insert in interface AuthentificationsCtrl
Parameters:
login - l'identifiant de connexion
password - le mot de passe
accesTotal - le mode accŠs total activ‚?
accesActive - l'accŠs activ‚?
borneSup - l'ann‚e borne sup‚rieur
gestionRecherches - le mode gestion des recherches activ‚?
registres - le mode accŠs aux registres activ‚?

update

public void update(AuthUtils auth)
            throws JGeneaException

Cette m‚thode permet de mettre … jour un document en base, aprŠs avoir fait les v‚rifications n‚cessaires

Specified by:
update in interface AuthentificationsCtrl
Parameters:
auth - l'objet de l'authentification … mettre … jour

update

public void update(java.lang.String login,
                   java.lang.String password,
                   boolean accesTotal,
                   boolean accesActive,
                   int borneSup,
                   boolean gestionRecherches,
                   boolean registres)
            throws JGeneaException

Cette m‚thode permet de mettre … jour un document en base, aprŠs avoir fait les v‚rifications n‚cessaires

Specified by:
update in interface AuthentificationsCtrl
Parameters:
login - l'identifiant de connexion
password - le mot de passe
accesTotal - le mode accŠs total activ‚?
accesActive - l'accŠs activ‚?
borneSup - l'ann‚e borne sup‚rieur
gestionRecherches - le mode gestion des recherches activ‚?
registres - le mode accŠs aux registres activ‚?

delete

public void delete()
            throws JGeneaException

Cette m‚thode permet de suprimer un document en base, aprŠs avoir fait les v‚rifications n‚cessaires

Specified by:
delete in interface AuthentificationsCtrl
Parameters:
document - l'objet du document … mettre … jour


Copyright © 2002 JGenea DAO. All Rights Reserved.