org.exoplatform.services.wcm.newsletter.handler
Class NewsletterEntryHandler

java.lang.Object
  extended by org.exoplatform.services.wcm.newsletter.handler.NewsletterEntryHandler

public class NewsletterEntryHandler
extends java.lang.Object

Created by The eXo Platform SAS Author : eXoPlatform chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com May 21, 2009


Constructor Summary
NewsletterEntryHandler(java.lang.String repository, java.lang.String workspace)
          Instantiates a new newsletter entry handler.
 
Method Summary
 void delete(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String portalName, java.lang.String categoryName, java.lang.String subscriptionName, java.util.List<java.lang.String> listIds)
          Delete.
 java.lang.String getContent(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node webContent)
          Gets the content.
 java.lang.String getContent(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String portalName, java.lang.String categoryName, java.lang.String subscriptionName, java.lang.String newsletterName)
          Gets the content.
 java.util.List<NewsletterManagerConfig> getNewsletterEntriesBySubscription(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String portalName, java.lang.String categoryName, java.lang.String subscriptionName)
          Gets the newsletter entries by subscription.
 NewsletterManagerConfig getNewsletterEntry(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String portalName, java.lang.String categoryName, java.lang.String subscriptionName, java.lang.String newsletterName)
          Gets the newsletter entry.
 NewsletterManagerConfig getNewsletterEntryByPath(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, java.lang.String path)
          Gets the newsletter entry by path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsletterEntryHandler

public NewsletterEntryHandler(java.lang.String repository,
                              java.lang.String workspace)
Instantiates a new newsletter entry handler.

Parameters:
repository - the repository
workspace - the workspace
Method Detail

delete

public void delete(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                   java.lang.String portalName,
                   java.lang.String categoryName,
                   java.lang.String subscriptionName,
                   java.util.List<java.lang.String> listIds)
Delete.

Parameters:
portalName - the portal name
categoryName - the category name
subscriptionName - the subscription name
listIds - the list ids

getNewsletterEntriesBySubscription

public java.util.List<NewsletterManagerConfig> getNewsletterEntriesBySubscription(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                                                  java.lang.String portalName,
                                                                                  java.lang.String categoryName,
                                                                                  java.lang.String subscriptionName)
                                                                           throws java.lang.Exception
Gets the newsletter entries by subscription.

Parameters:
portalName - the portal name
categoryName - the category name
subscriptionName - the subscription name
Returns:
the newsletter entries by subscription
Throws:
java.lang.Exception - the exception

getNewsletterEntry

public NewsletterManagerConfig getNewsletterEntry(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                  java.lang.String portalName,
                                                  java.lang.String categoryName,
                                                  java.lang.String subscriptionName,
                                                  java.lang.String newsletterName)
                                           throws java.lang.Exception
Gets the newsletter entry.

Parameters:
portalName - the portal name
categoryName - the category name
subscriptionName - the subscription name
newsletterName - the newsletter name
Returns:
the newsletter entry
Throws:
java.lang.Exception - the exception

getNewsletterEntryByPath

public NewsletterManagerConfig getNewsletterEntryByPath(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                                        java.lang.String path)
                                                 throws java.lang.Exception
Gets the newsletter entry by path.

Parameters:
path - the path
Returns:
the newsletter entry by path
Throws:
java.lang.Exception - the exception

getContent

public java.lang.String getContent(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                   java.lang.String portalName,
                                   java.lang.String categoryName,
                                   java.lang.String subscriptionName,
                                   java.lang.String newsletterName)
                            throws java.lang.Exception
Gets the content.

Parameters:
portalName - the portal name
categoryName - the category name
subscriptionName - the subscription name
newsletterName - the newsletter name
Returns:
the content
Throws:
java.lang.Exception - the exception

getContent

public java.lang.String getContent(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                   javax.jcr.Node webContent)
                            throws java.lang.Exception
Gets the content.

Parameters:
webContent - the web content
Returns:
the content
Throws:
java.lang.Exception - the exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.