Interface ISubscriptionProviderService
-
public interface ISubscriptionProviderServiceInterface of services that provide subscriptions to resources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetProviderName()Get the name of the subscription provider.StringgetSubscriptionHtmlDescription(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource, Locale locale)Get the description of a subscription by its action key and the resource id associated with itStringgetSubscriptionHtmlDescriptionBis(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource, Locale locale, String userSub)StringgetUrlModifySubscription(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource)Get the URL to modify the subscriptionbooleanisSubscriptionRemovable(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource)Check if a subscription can be automatically removed.voidnotifySubscriptionRemoval(Subscription subscription)Notify the provider that a subscription associated with it has been removed
-
-
-
Method Detail
-
getProviderName
String getProviderName()
Get the name of the subscription provider.- Returns:
- The name of the subscription provider
-
getSubscriptionHtmlDescription
String getSubscriptionHtmlDescription(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource, Locale locale)
Get the description of a subscription by its action key and the resource id associated with it- Parameters:
user- The userstrSubscriptionKey- The key of the subscriptionstrIdSubscribedResource- The id of the subscribed resourcelocale- The locale to display the generated HTML in- Returns:
- An HTML string that describes the subscription
-
getSubscriptionHtmlDescriptionBis
String getSubscriptionHtmlDescriptionBis(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource, Locale locale, String userSub)
-
isSubscriptionRemovable
boolean isSubscriptionRemovable(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource)Check if a subscription can be automatically removed. If the subscription is removed, the methodnotifySubscriptionRemoval(Subscription)of the provider of the subscription will be called- Parameters:
user- The userstrSubscriptionKey- The subscription keystrIdSubscribedResource- The id of the subscribed resource- Returns:
- True if the subscription can be removed, false otherwise
-
getUrlModifySubscription
String getUrlModifySubscription(fr.paris.lutece.portal.service.security.LuteceUser user, String strSubscriptionKey, String strIdSubscribedResource)
Get the URL to modify the subscription- Parameters:
user- The userstrSubscriptionKey- The key of the subscriptionstrIdSubscribedResource- The id of the subscribed resource- Returns:
- The URL to modify the subscription, or null if the subscription can not be modified
-
notifySubscriptionRemoval
void notifySubscriptionRemoval(Subscription subscription)
Notify the provider that a subscription associated with it has been removed- Parameters:
subscription- The removed subscription
-
-