org.exoplatform.wcm.webui.newsletter.manager
Class UICategories

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.wcm.webui.newsletter.manager.UICategories

public class UICategories
extends org.exoplatform.webui.core.UIContainer

The Class UICategories.


Nested Class Summary
static class UICategories.AddCategoryActionListener
          The listener interface for receiving addCategoryAction events.
static class UICategories.AddEntryActionListener
          The listener interface for receiving addEntryAction events.
static class UICategories.AddSubcriptionActionListener
          The listener interface for receiving addSubcriptionAction events.
static class UICategories.ManagerUsersActionListener
          The listener interface for receiving managerUsersAction events.
static class UICategories.OpenCategoryActionListener
          The listener interface for receiving openCategoryAction events.
static class UICategories.SelectSubscriptionActionListener
          The listener interface for receiving selectSubscriptionAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UICategories()
          Instantiates a new uI categories.
 
Method Summary
 java.util.List<NewsletterCategoryConfig> getListCategories()
          Gets the list categories.
 java.util.List<NewsletterSubscriptionConfig> getListSubscription(java.lang.String categoryName)
          Gets the list subscription.
 int getNumberOfUser(java.lang.String categoryName, java.lang.String subscriptionName)
          Gets the number of user.
 long getNumberOfWaitingNewsletter(java.lang.String categoryName, java.lang.String subscriptionName)
          Gets the number of waiting newsletter.
 boolean isAdministrator()
           
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICategories

public UICategories()
             throws java.lang.Exception
Instantiates a new uI categories.

Throws:
java.lang.Exception - the exception
Method Detail

getNumberOfWaitingNewsletter

public long getNumberOfWaitingNewsletter(java.lang.String categoryName,
                                         java.lang.String subscriptionName)
Gets the number of waiting newsletter.

Parameters:
categoryName - the category name
subscriptionName - the subscription name
Returns:
the number of waiting newsletter

getNumberOfUser

public int getNumberOfUser(java.lang.String categoryName,
                           java.lang.String subscriptionName)
Gets the number of user.

Parameters:
categoryName - the category name
subscriptionName - the subscription name
Returns:
the number of user

getListCategories

public java.util.List<NewsletterCategoryConfig> getListCategories()
Gets the list categories.

Returns:
the list categories

isAdministrator

public boolean isAdministrator()

getListSubscription

public java.util.List<NewsletterSubscriptionConfig> getListSubscription(java.lang.String categoryName)
Gets the list subscription.

Parameters:
categoryName - the category name
Returns:
the list subscription


Copyright © 2013 eXo Platform SAS. All Rights Reserved.