Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services
In directory
james.mmbase.org:/tmp/cvs-serv29181/src/java/com/finalist/newsletter/services
Modified Files:
CommunityModuleAdapter.java NewsletterService.java
Log Message:
CMSC-990,Redesign Newsletter: Subscribers & Terms tabs improve terms
management
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services
See also: http://www.mmbase.org/jira/browse/CMSC-990
Index: CommunityModuleAdapter.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services/CommunityModuleAdapter.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- CommunityModuleAdapter.java 21 Jul 2008 13:09:00 -0000 1.9
+++ CommunityModuleAdapter.java 24 Jul 2008 11:45:43 -0000 1.10
@@ -7,10 +7,12 @@
import org.mmbase.util.logging.Logger;
import org.mmbase.util.logging.Logging;
+
import com.finalist.cmsc.services.community.ApplicationContextFactory;
import com.finalist.cmsc.services.community.person.Person;
import com.finalist.cmsc.services.community.person.PersonService;
+
public class CommunityModuleAdapter {
private static Logger log =
Logging.getLoggerInstance(CommunityModuleAdapter.class.getName());
@@ -57,5 +59,18 @@
}
+ public static String getCurrentUserName() {
+ SecurityContext securityContext = SecurityContextHolder.getContext();
+ Authentication authentication = securityContext.getAuthentication();
+ String userName = null;
+ if (null != authentication) {
+ Object obj = authentication.getPrincipal();
+ if (obj instanceof UserDetails) {
+ userName = ((UserDetails) obj).getUsername();
+ }
+ }
+
+ return userName;
+ }
}
Index: NewsletterService.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services/NewsletterService.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- NewsletterService.java 24 Jul 2008 09:04:16 -0000 1.7
+++ NewsletterService.java 24 Jul 2008 11:45:43 -0000 1.8
@@ -21,9 +21,12 @@
public int getNewsletterTermsCountByName(int newsletterId, String
terms);
+ public void processBouncesOfPublication(String publicationId,String
userId,String bounceContent);
+
public List<Term> getNewsletterTermsByName(int newsletterId, String
name, int pagesize, int offset, String order, String direction);
public List<Newsletter> getNewsletters(String subscriber, String title);
void processBouncesOfPublication(String publicationId, String userId);
+
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs