|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wcm.newsletter.handler.NewsletterCategoryHandler
public class NewsletterCategoryHandler
Created by The eXo Platform SAS Author : eXoPlatform chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com May 21, 2009
| Constructor Summary | |
|---|---|
NewsletterCategoryHandler(java.lang.String workspace)
Instantiates a new newsletter category handler. |
|
NewsletterCategoryHandler(java.lang.String repository,
java.lang.String workspace)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
add(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
NewsletterCategoryConfig categoryConfig)
Adds the. |
void |
delete(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName)
Delete. |
void |
edit(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
NewsletterCategoryConfig categoryConfig)
Edits the. |
NewsletterCategoryConfig |
getCategoryByName(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName)
Gets the category by name. |
javax.jcr.Node |
getCategoryFromConfig(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
NewsletterCategoryConfig config)
Gets the category node from NewsletterCategoryConfig. |
NewsletterCategoryConfig |
getCategoryFromNode(javax.jcr.Node categoryNode)
Gets the category from node. |
java.util.List<NewsletterCategoryConfig> |
getListCategories(java.lang.String portalName,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets the list categories. |
java.util.List<NewsletterCategoryConfig> |
getListCategoriesCanView(java.lang.String portalName,
java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Get list of categories which - Current user has permission in a category - Current user doesn't have permission but has permissions in one of subscriptions in a category |
boolean |
isRemove()
|
void |
setRemove(boolean isRemove)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public NewsletterCategoryHandler(java.lang.String repository,
java.lang.String workspace)
repository - the repositoryworkspace - the workspacepublic NewsletterCategoryHandler(java.lang.String workspace)
workspace - the workspace| Method Detail |
|---|
public boolean isRemove()
public void setRemove(boolean isRemove)
public NewsletterCategoryConfig getCategoryFromNode(javax.jcr.Node categoryNode)
throws java.lang.Exception
categoryNode - the category node
java.lang.Exception - the exception
public javax.jcr.Node getCategoryFromConfig(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
NewsletterCategoryConfig config)
throws java.lang.Exception
SessionProvider - the session providerportalName - the current portal's nameNewsletterCategoryConfig - the newsletter category object
java.lang.Exception - the exception
public void add(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
NewsletterCategoryConfig categoryConfig)
portalName - the portal namecategoryConfig - the category configsessionProvider - the session provider
public void edit(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
NewsletterCategoryConfig categoryConfig)
portalName - the portal namecategoryConfig - the category configsessionProvider - the session provider
public void delete(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName)
portalName - the portal namecategoryName - the category namesessionProvider - the session provider
public NewsletterCategoryConfig getCategoryByName(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName)
throws java.lang.Exception
portalName - the portal namecategoryName - the category namesessionProvider - the session provider
java.lang.Exception - the exception
public java.util.List<NewsletterCategoryConfig> getListCategories(java.lang.String portalName,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
throws java.lang.Exception
portalName - the portal namesessionProvider - the session provider
java.lang.Exception - the exception
public java.util.List<NewsletterCategoryConfig> getListCategoriesCanView(java.lang.String portalName,
java.lang.String userName,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
throws java.lang.Exception
portalName - the current portal's nameuserName - the current user's namesessionProvider - the session provider
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||