|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wcm.newsletter.handler.NewsletterManageUserHandler
public class NewsletterManageUserHandler
Created by The eXo Platform SAS Author : eXoPlatform chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com May 21, 2009
| Constructor Summary | |
|---|---|
NewsletterManageUserHandler(java.lang.String repository,
java.lang.String workspace)
Instantiates a new newsletter manage user handler. |
|
| Method Summary | |
|---|---|
javax.jcr.Node |
add(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userMail)
Adds the. |
void |
addAdministrator(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userId)
Adds the administrator. |
void |
changeBanStatus(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userMail,
boolean isBanClicked)
Change ban status. |
boolean |
checkExistedEmail(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String email)
Check existed email. |
void |
delete(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userMail)
Delete. |
void |
deleteUserAddministrator(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userId)
Delete user addministrator. |
java.util.List<java.lang.String> |
getAllAdministrator(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName)
Gets the all administrator. |
int |
getQuantityUserBySubscription(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName,
java.lang.String subscriptionName)
Gets the quantity user by subscription. |
java.util.List<NewsletterUserConfig> |
getUsers(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName,
java.lang.String subscriptionName)
Gets the users. |
boolean |
isAdministrator(java.lang.String portalName,
java.lang.String userId)
Check if user is an administrator or not |
boolean |
isModerator(java.lang.String userId,
NewsletterCategoryConfig config)
Check if user is a moderator of current category or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewsletterManageUserHandler(java.lang.String repository,
java.lang.String workspace)
repository - the repositoryworkspace - the workspace| Method Detail |
|---|
public java.util.List<java.lang.String> getAllAdministrator(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName)
portalName - the portal name
public void addAdministrator(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userId)
throws java.lang.Exception
portalName - the portal nameuserId - the user id
java.lang.Exception - the exception
public void deleteUserAddministrator(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userId)
throws java.lang.Exception
portalName - the portal nameuserId - the user id
java.lang.Exception - the exception
public javax.jcr.Node add(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userMail)
throws java.lang.Exception
portalName - the portal nameuserMail - the user mailsessionProvider - the session provider
java.lang.Exception
public void changeBanStatus(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userMail,
boolean isBanClicked)
portalName - the portal nameuserMail - the user mailisBanClicked - the is ban clicked
public void delete(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String userMail)
portalName - the portal nameuserMail - the user mailSessionProvider - the sessionprovider
public java.util.List<NewsletterUserConfig> getUsers(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName,
java.lang.String subscriptionName)
throws java.lang.Exception
portalName - the portal namecategoryName - the category namesubscriptionName - the subscription name
java.lang.Exception - the exception
public int getQuantityUserBySubscription(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String categoryName,
java.lang.String subscriptionName)
portalName - the portal namecategoryName - the category namesubscriptionName - the subscription name
public boolean checkExistedEmail(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
java.lang.String portalName,
java.lang.String email)
portalName - the portal nameemail - the email
public boolean isAdministrator(java.lang.String portalName,
java.lang.String userId)
userId - the current user
java.lang.Exception - the exception
public boolean isModerator(java.lang.String userId,
NewsletterCategoryConfig config)
userId - the current usercategoryName - the current category's name
java.lang.Exception - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||