|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.subscribe.business.Subscription
public class Subscription
This is the business class for subscriptions. Users can subscribe to
resources (identified by their id) with a subscription key for a provider.
The provider is used to prevent collisions between subscriptions lists of
different plugins. The subscription key is used to differentiate several
subscription lists from a same provider. The subscribed resource id is used
to configure subscriptions.
Users are identified by their subscriber id. The subscriber id of a
LuteceUser can be retrieved by calling the method
SubscriptionService#getIdSubscriberFromLuteceUser( LuteceUser )
Every string fields of this class be less than 255 characters long
| Constructor Summary | |
|---|---|
Subscription()
|
|
| Method Summary | |
|---|---|
String |
getIdSubscribedResource()
Returns the id of the subscribed resource |
int |
getIdSubscription()
Returns the technical id of the subscription |
String |
getSubscriptionKey()
Returns the subscription key. |
String |
getSubscriptionProvider()
Returns the provider of the subscription |
String |
getUserId()
Get the id of the subscriber. |
void |
setIdSubscribedResource(String strIdSubscribedResource)
Sets the id of the subscribed resource |
void |
setIdSubscription(int nIdSubscription)
Sets the technical id of the subscription |
void |
setSubscriptionKey(String strSubscriptionKey)
Sets the subscription key. |
void |
setSubscriptionProvider(String strSubscriptionProvider)
Sets the SubscriptionProvider |
void |
setUserId(String strUserId)
Get the id of the subscriber. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscription()
| Method Detail |
|---|
public int getIdSubscription()
public void setIdSubscription(int nIdSubscription)
nIdSubscription - The technical id of the subscriptionpublic String getUserId()
SubscriptionService#getIdSubscriberFromLuteceUser( LuteceUser )
public void setUserId(String strUserId)
SubscriptionService#getIdSubscriberFromLuteceUser( LuteceUser )
strUserId - The id of the subscriberpublic String getSubscriptionProvider()
public void setSubscriptionProvider(String strSubscriptionProvider)
strSubscriptionProvider - The SubscriptionProviderpublic String getSubscriptionKey()
public void setSubscriptionKey(String strSubscriptionKey)
strSubscriptionKey - The ActionKeypublic String getIdSubscribedResource()
public void setIdSubscribedResource(String strIdSubscribedResource)
strIdSubscribedResource - The id of the subscribed resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||