Class BroadcastService
java.lang.Object
fr.paris.lutece.plugins.broadcastproxy.service.BroadcastService
-
Method Summary
Modifier and TypeMethodDescriptiongetAllSubscriptionByGroup(String typeSubscription, String strAccountId) get all subscription by groupgetFeeds()get the list of available feedsstatic BroadcastServiceGet the unique instance of the Security ServicegetName()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 Details
-
getName
get provider name- Returns:
- the name of the provider
-
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
updates a Subscription bean- Parameters:
sub-strAccountId-- Returns:
- the map
- Throws:
Exception
-
getFeeds
get the list of available feeds- Returns:
- the list
-
getAllSubscriptionByGroup
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
-