[Castore-commits] Facade.java 1.11 1.12
mathieu grimault
grimault-m at adullact1.hosting.cri74.org
Mer 21 Juin 16:18:54 CEST 2006
Update of /cvsroot/castore/castore-core/src/java/fr/emn/castor/users
In directory adullact1:/tmp/cvs-serv12162/src/java/fr/emn/castor/users
Modified Files:
Facade.java
Log Message:
Cassification de Castore :
Modification de la partie AuthentificationFactory et de la Facade associée.
Ajout des parametres dans castor.properties.
Index: Facade.java
===================================================================
RCS file: /cvsroot/castore/castore-core/src/java/fr/emn/castor/users/Facade.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Facade.java 12 Jun 2006 12:55:27 -0000 1.11
--- Facade.java 21 Jun 2006 14:18:52 -0000 1.12
***************
*** 50,55 ****
import fr.emn.castor.users.authentification.AuthentificationException;
import fr.emn.castor.users.authentification.AuthentificationFactory;
- import fr.emn.castor.users.authentification.FlatAuthentification;
- import fr.emn.castor.users.authentification.LdapAuthentification;
import fr.emn.castor.users.jdo.JDOUserEventFactory;
import fr.emn.castor.users.jdo.JDOUserMaintenance;
--- 50,53 ----
***************
*** 189,213 ****
this.userFactory = JDOUserMaintenance.getInstance();
this.eventFactory = JDOUserEventFactory.getInstance();
!
! String authentMethode = PropertiesHelper
! .getProperty("authentification.methode");
! if (authentMethode.equals("flat")) {
! if (log.isDebugEnabled()) {
! log.debug("Authentification par fichier");
! }
! this.theAuthentificationFactory = FlatAuthentification
! .getInstance();
! } else if (authentMethode.equals("ldap")) {
! if (log.isDebugEnabled()) {
! log.debug("Authentification AVEC LDAP");
! }
! this.theAuthentificationFactory = LdapAuthentification
! .getInstance();
! } else {
! if (log.isFatalEnabled()) {
! log.fatal("Methode d'authentification inconnue !");
! }
! return;
! }
}
--- 187,194 ----
this.userFactory = JDOUserMaintenance.getInstance();
this.eventFactory = JDOUserEventFactory.getInstance();
!
! this.theAuthentificationFactory =
! AuthentificationFactory.getInstance(
! PropertiesHelper.getProperty("authentification.methode"));
}
Plus d'informations sur la liste de diffusion Castore-commits