Update of 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person
In directory james.mmbase.org:/tmp/cvs-serv8632

Modified Files:
        PersonHibernateService.java PersonService.java 
Log Message:
CMSC-947, Improve the newletter import/export into a generic community 
import/export,cheched the code


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person
See also: http://www.mmbase.org/jira/browse/CMSC-947


Index: PersonHibernateService.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person/PersonHibernateService.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- PersonHibernateService.java 15 Jul 2008 12:30:31 -0000      1.10
+++ PersonHibernateService.java 15 Jul 2008 12:45:10 -0000      1.11
@@ -110,7 +110,6 @@
       getSession().flush();
    }
    
-   
     @Transactional
    public List<Person> getAllPersons() {
       return getSession().createCriteria(Person.class).list();
@@ -166,11 +165,6 @@
           return person;
    }
    
-   @Transactional
-   public void createPerson(Person person) {
-          getSession().save(person);
-       }
-   
    @Transactional(propagation = Propagation.REQUIRED)
        public void batchClean(){
                List<Person> persons = getAllPersons();
@@ -203,7 +197,7 @@
                Person person = new Person();
                converPersonPropertis(xperson, person);
                person.setAuthenticationId(authentication.getId());
-               createPerson(person);
+               updatePerson(person);
                String userId = xperson.getAuthentication().getUserId();
                List<Preference> preferences = xperson.getPreferences();
                for (Preference preference : preferences) {


Index: PersonService.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person/PersonService.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- PersonService.java  15 Jul 2008 12:30:31 -0000      1.7
+++ PersonService.java  15 Jul 2008 12:45:10 -0000      1.8
@@ -64,8 +64,6 @@
    
    public void batchClean();
 
-   public void createPerson(Person person);
-   
    public void deleteRelationRecord(Long id);
 
    public void creatRelationRecord(PersonExportImportVO xperson);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to