org.benow.web.subscription
Class SubscriptionServiceImpl

java.lang.Object
  extended by org.benow.web.subscription.SubscriptionServiceImpl
All Implemented Interfaces:
org.benow.java.spec.Markup, org.benow.service.Service, SubscriptionService

public class SubscriptionServiceImpl
extends java.lang.Object
implements SubscriptionService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.benow.java.spec.Markup
org.benow.java.spec.Markup.ParamName, org.benow.java.spec.Markup.ReturnDescription
 
Constructor Summary
SubscriptionServiceImpl()
           
 
Method Summary
 java.util.List<Subscription> getSubscriptions()
          Get all subscriptions of current user
 Subscription subscribe(Subscribable toSubscribeTo)
          Subscribe to all types of notifications for the given object.
 Subscription subscribe(Subscribable toSubscribeTo, Subscription.SubscriptionType type)
          Subscribe current user to given object with given type
 void unsubscribe(Subscribable toUnsubscribeFrom)
          Unsubscribe current user from given object
 void unsubscribeAll()
          Unsubscribe current user from all objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionServiceImpl

public SubscriptionServiceImpl()
Method Detail

getSubscriptions

public java.util.List<Subscription> getSubscriptions()
Description copied from interface: SubscriptionService
Get all subscriptions of current user

Specified by:
getSubscriptions in interface SubscriptionService
Returns:

subscribe

public Subscription subscribe(Subscribable toSubscribeTo)
Description copied from interface: SubscriptionService
Subscribe to all types of notifications for the given object.

Specified by:
subscribe in interface SubscriptionService
Returns:

subscribe

public Subscription subscribe(Subscribable toSubscribeTo,
                              Subscription.SubscriptionType type)
Description copied from interface: SubscriptionService
Subscribe current user to given object with given type

Specified by:
subscribe in interface SubscriptionService

unsubscribe

public void unsubscribe(Subscribable toUnsubscribeFrom)
                 throws org.benow.repository.NoSuchObjectException
Description copied from interface: SubscriptionService
Unsubscribe current user from given object

Specified by:
unsubscribe in interface SubscriptionService
Throws:
org.benow.repository.NoSuchObjectException

unsubscribeAll

public void unsubscribeAll()
Description copied from interface: SubscriptionService
Unsubscribe current user from all objects

Specified by:
unsubscribeAll in interface SubscriptionService