org.dasein.cloud.services.notifications
Interface NotificationsServices


public interface NotificationsServices


Method Summary
 String confirmSubscription(String providerTopicId, String token, boolean authenticateUnsubscribe)
           
 Topic createTopic(String name)
           
 String getProviderTermForSubscription(Locale locale)
           
 String getProviderTermForTopic(Locale locale)
           
 Collection<Subscription> listSubscriptions(String optionalTopicId)
           
 Collection<Topic> listTopics()
           
 String publish(String providerTopicId, String subject, String message)
           
 void removeTopic(String providerTopicId)
           
 void subscribe(String providerTopicId, EndpointType endpointType, DataFormat dataFormat, String endpoint)
           
 void unsubscribe(String providerSubscriptionId)
           
 

Method Detail

confirmSubscription

String confirmSubscription(String providerTopicId,
                           String token,
                           boolean authenticateUnsubscribe)
                           throws CloudException,
                                  InternalException
Throws:
CloudException
InternalException

createTopic

Topic createTopic(String name)
                  throws CloudException,
                         InternalException
Throws:
CloudException
InternalException

getProviderTermForSubscription

String getProviderTermForSubscription(Locale locale)

getProviderTermForTopic

String getProviderTermForTopic(Locale locale)

listSubscriptions

Collection<Subscription> listSubscriptions(String optionalTopicId)
                                           throws CloudException,
                                                  InternalException
Throws:
CloudException
InternalException

listTopics

Collection<Topic> listTopics()
                             throws CloudException,
                                    InternalException
Throws:
CloudException
InternalException

publish

String publish(String providerTopicId,
               String subject,
               String message)
               throws CloudException,
                      InternalException
Throws:
CloudException
InternalException

removeTopic

void removeTopic(String providerTopicId)
                 throws CloudException,
                        InternalException
Throws:
CloudException
InternalException

subscribe

void subscribe(String providerTopicId,
               EndpointType endpointType,
               DataFormat dataFormat,
               String endpoint)
               throws CloudException,
                      InternalException
Throws:
CloudException
InternalException

unsubscribe

void unsubscribe(String providerSubscriptionId)
                 throws CloudException,
                        InternalException
Throws:
CloudException
InternalException