Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets
In directory 
james.mmbase.org:/tmp/cvs-serv29178/portlets-login/src/java/com/finalist/cmsc/portlets

Modified Files:
        UnregisterPortlet.java 
Log Message:
CMSC-1359 Newsletter: create a Community un-register portlet


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets
See also: http://www.mmbase.org/jira/browse/CMSC-1359


Index: UnregisterPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets/UnregisterPortlet.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- UnregisterPortlet.java      7 Apr 2009 12:04:11 -0000       1.5
+++ UnregisterPortlet.java      8 Apr 2009 01:31:21 -0000       1.6
@@ -19,7 +19,6 @@
 import com.finalist.cmsc.services.community.ApplicationContextFactory;
 import com.finalist.cmsc.services.community.person.PersonService;
 import com.finalist.cmsc.services.community.security.AuthenticationService;
-//import com.finalist.newsletter.services.NewsletterSubscriptionServices;
 
 public class UnregisterPortlet extends AbstractLoginPortlet {
    private static final String CONFIRMATION_TEXT = "confirmationText";
@@ -59,12 +58,9 @@
       AuthenticationService authenticationService = (AuthenticationService) 
ApplicationContextFactory
       .getBean("authenticationService");
       PersonService personHibernateService = (PersonService) 
ApplicationContextFactory.getBean("personService");
-//      This following line should be fixed differently
-//      NewsletterSubscriptionServices subscriptionServices = 
(NewsletterSubscriptionServices) 
ApplicationContextFactory.getBean("subscriptionServices");
+
       if (authenticationService.authenticationExists(register_email)) {
         Long authId = 
authenticationService.getAuthenticationIdForUserId(register_email);
-        // personHibernateService.
-//        subscriptionServices.deleteSubscriptionsByAuthId(authId);
         personHibernateService.deletePersonByAuthenticationId(authId);
         authenticationService.deleteAuthentication(authId);
         CommunityManager.notify(authId);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to