Class BroadcastService

java.lang.Object
fr.paris.lutece.plugins.broadcastproxy.service.BroadcastService

public class BroadcastService extends Object
  • Method Details

    • getName

      public String getName()
      get provider name
      Returns:
      the name of the provider
    • getInstance

      public static BroadcastService getInstance()
      Get the unique instance of the Security Service
      Returns:
      The instance
    • updateSubscribtions

      public boolean updateSubscribtions(String userId, List<Subscription> subscriptionsList) throws Exception
      update user subscriptions to the specified subscription list
      Parameters:
      subscriptionsList -
      Returns:
      true if success
      Throws:
      Exception
    • updateSubscribtions

      public boolean updateSubscribtions(String userId, String jsonSubscriptions, String strAccountId) throws Exception
      update user subscriptions to the specified subscription list
      Parameters:
      subscriptionsList -
      strAccountId -
      Returns:
      true if success
      Throws:
      Exception
    • updateArrondissementSubscribtions

      public boolean updateArrondissementSubscribtions(String userId, String jsonSubscriptions, String strAccountId) throws Exception
      update user subscriptions to the specified subscription list
      Parameters:
      subscriptionsList -
      strAccountId -
      Returns:
      true if success
      Throws:
      Exception
    • update

      public boolean update(Subscription sub, String strAccountId) throws Exception
      updates a Subscription bean
      Parameters:
      sub -
      strAccountId -
      Returns:
      the map
      Throws:
      Exception
    • getFeeds

      public List<Feed> getFeeds()
      get the list of available feeds
      Returns:
      the list
    • getAllSubscriptionByGroup

      public String getAllSubscriptionByGroup(String typeSubscription, String strAccountId)
      get all subscription by group
      Parameters:
      typeSubscription -
      strAccountId -
      Returns:
    • getUserSubscriptionIds

      public List<org.json.simple.JSONObject> getUserSubscriptionIds(String strUserId, String strAccountId)
      Parameters:
      userId -
      strAccountId -
      Returns:
      Throws:
      Exception