Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets
In directory
james.mmbase.org:/tmp/cvs-serv18034/portlets-login/src/java/com/finalist/cmsc/portlets
Modified Files:
Tag: b1_5
UnregisterPortlet.java
Log Message:
CMSC-1359 - Removing the dependency to the newsletter & disable the code that
uses it.
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.2.2.1
retrieving revision 1.2.2.2
diff -u -b -r1.2.2.1 -r1.2.2.2
--- UnregisterPortlet.java 3 Apr 2009 10:00:09 -0000 1.2.2.1
+++ UnregisterPortlet.java 6 Apr 2009 10:00:02 -0000 1.2.2.2
@@ -17,7 +17,7 @@
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;
+//import com.finalist.newsletter.services.NewsletterSubscriptionServices;
public class UnregisterPortlet extends AbstractLoginPortlet {
private static final String USER_ACCOUNT_NOTEXIST = "view.account.notexist";
@@ -39,11 +39,12 @@
AuthenticationService authenticationService = (AuthenticationService)
ApplicationContextFactory
.getBean("authenticationService");
PersonService personHibernateService = (PersonService)
ApplicationContextFactory.getBean("personService");
- NewsletterSubscriptionServices subscriptionServices =
(NewsletterSubscriptionServices)
ApplicationContextFactory.getBean("subscriptionServices");
+// 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);
+// subscriptionServices.deleteSubscriptionsByAuthId(authId);
personHibernateService.deletePersonByAuthenticationId(authId);
authenticationService.deleteAuthentication(authId);
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs