Class BroadcastService
- java.lang.Object
-
- fr.paris.lutece.plugins.broadcastproxy.service.BroadcastService
-
public class BroadcastService extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAllSubscriptionByGroup(String typeSubscription, String strAccountId)get all subscription by groupList<Feed>getFeeds()get the list of available feedsstatic BroadcastServicegetInstance()Get the unique instance of the Security ServiceStringgetName()get provider nameList<org.json.simple.JSONObject>getUserSubscriptionIds(String strUserId, String strAccountId)booleanupdate(Subscription sub, String strAccountId)updates a Subscription beanbooleanupdateArrondissementSubscribtions(String userId, String jsonSubscriptions, String strAccountId)update user subscriptions to the specified subscription listbooleanupdateSubscribtions(String userId, String jsonSubscriptions, String strAccountId)update user subscriptions to the specified subscription listbooleanupdateSubscribtions(String userId, List<Subscription> subscriptionsList)update user subscriptions to the specified subscription list
-
-
-
Method Detail
-
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
-
getAllSubscriptionByGroup
public String getAllSubscriptionByGroup(String typeSubscription, String strAccountId)
get all subscription by group- Parameters:
typeSubscription-strAccountId-- Returns:
-
-