|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.subscribe.service.SubscriptionService
public final class SubscriptionService
Service to manage subscriptions
| Method Summary | |
|---|---|
void |
createSubscription(Subscription subscription)
Create a new subscription. |
void |
createSubscription(Subscription subscription,
fr.paris.lutece.portal.service.security.LuteceUser user)
Create a new subscription for the given user |
List<Subscription> |
findByFilter(SubscriptionFilter filter)
Find subscriptions that match a given filter |
Subscription |
findBySubscriptionId(int nIdSubscription)
Get a subscription from its id |
static SubscriptionService |
getInstance()
Get the instance of the subscription service |
fr.paris.lutece.portal.service.security.LuteceUser |
getLuteceUserFromSubscription(Subscription subscription)
Get a lutece user associated to a subscription |
ISubscriptionProviderService |
getProviderService(String strProvider)
Get a provider service from its name |
Collection<fr.paris.lutece.portal.service.security.LuteceUser> |
getSubscriberList(String strSubscriptionProvider,
String strSubscriptionKey,
String strIdSubscribedResource)
Get the collection of users that subscribed to a given resource with the given key |
void |
removeSubscription(int nIdSubscription,
boolean bNotifySubscriptionProvider)
Remove a subscription from its id |
void |
removeSubscription(Subscription subscription,
boolean bNotifySubscriptionProvider)
Remove a subscription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SubscriptionService getInstance()
public void createSubscription(Subscription subscription,
fr.paris.lutece.portal.service.security.LuteceUser user)
subscription - The subscription to createuser - The user to associate the subscription topublic void createSubscription(Subscription subscription)
subscription - The subscription to createpublic Subscription findBySubscriptionId(int nIdSubscription)
nIdSubscription - The id of the subscription
public List<Subscription> findByFilter(SubscriptionFilter filter)
filter - The filter
public void removeSubscription(int nIdSubscription,
boolean bNotifySubscriptionProvider)
nIdSubscription - The id of the subscription to removebNotifySubscriptionProvider - True to notify the provider of the
subscription that it has been removed, false otherwise
public void removeSubscription(Subscription subscription,
boolean bNotifySubscriptionProvider)
subscription - The subscription to removebNotifySubscriptionProvider - True to notify the provider of the
subscription that it has been removed, false otherwisepublic fr.paris.lutece.portal.service.security.LuteceUser getLuteceUserFromSubscription(Subscription subscription)
subscription - The subscription
public Collection<fr.paris.lutece.portal.service.security.LuteceUser> getSubscriberList(String strSubscriptionProvider,
String strSubscriptionKey,
String strIdSubscribedResource)
strSubscriptionProvider - The subscription provider of subscribers
to getstrSubscriptionKey - The subscription key of subscribers to getstrIdSubscribedResource - The id of the subscribed resource
public ISubscriptionProviderService getProviderService(String strProvider)
strProvider - The name of the provider service to get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||