net.rim.pushsdk.subscription.cp
Class ContentProviderSubServiceImpl

java.lang.Object
  extended by net.rim.pushsdk.subscription.cp.ContentProviderSubServiceImpl
All Implemented Interfaces:
ContentProviderSubscriptionService

public class ContentProviderSubServiceImpl
extends Object
implements ContentProviderSubscriptionService

Basic implementation of the ContentProviderSubscriptionService interface.

Author:
mdandrea

Constructor Summary
ContentProviderSubServiceImpl()
           
 
Method Summary
 void onAutomaticUnsubscribe(UnsubscribeRequest unsubscribeRequest)
          In this implementation, we will log the automatic unsubscribe action.
 void onResumeFailure(ResumeRequest resumeRequest, Throwable t)
          In this implementation, no actions will be taken by this method.
 void onResumeSuccess(ResumeRequest resumeRequest)
          In this implementation, no actions will be taken by this method.
 void onSubscribeFailure(SubscribeRequest subscribeRequest, Throwable t)
          In this implementation, no actions will be taken by this method.
 void onSubscribeSuccess(SubscribeRequest subscribeRequest)
          In this implementation, no actions will be taken by this method.
 void onSuspendFailure(SuspendRequest suspendRequest, Throwable t)
          In this implementation, no actions will be taken by this method.
 void onSuspendSuccess(SuspendRequest suspendRequest)
          In this implementation, no actions will be taken by this method.
 void onUnsubscribeFailure(UnsubscribeRequest unsubscribeRequest, Throwable t)
          In this implementation, no actions will be taken by this method.
 void onUnsubscribeSuccess(UnsubscribeRequest unsubscribeRequest)
          In this implementation, no actions will be taken by this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentProviderSubServiceImpl

public ContentProviderSubServiceImpl()
Method Detail

onResumeSuccess

public void onResumeSuccess(ResumeRequest resumeRequest)
                     throws CPSubscriptionFailureException
In this implementation, no actions will be taken by this method.

Specified by:
onResumeSuccess in interface ContentProviderSubscriptionService
Parameters:
resumeRequest - object containing resume information
Throws:
CPSubscriptionFailureException - if the resume fails; this will force a rollback of the SDK's own resume

onResumeFailure

public void onResumeFailure(ResumeRequest resumeRequest,
                            Throwable t)
In this implementation, no actions will be taken by this method.

Specified by:
onResumeFailure in interface ContentProviderSubscriptionService
Parameters:
resumeRequest - object containing resume information
t - the throwable which caused the resume failure

onSubscribeSuccess

public void onSubscribeSuccess(SubscribeRequest subscribeRequest)
                        throws CPSubscriptionFailureException
In this implementation, no actions will be taken by this method.

Specified by:
onSubscribeSuccess in interface ContentProviderSubscriptionService
Parameters:
subscribeRequest - object containing subscribe information
Throws:
CPSubscriptionFailureException - if the subscribe fails; this will force a rollback of the SDK's own subscribe

onSubscribeFailure

public void onSubscribeFailure(SubscribeRequest subscribeRequest,
                               Throwable t)
In this implementation, no actions will be taken by this method.

Specified by:
onSubscribeFailure in interface ContentProviderSubscriptionService
Parameters:
subscribeRequest - object containing subscribe information
t - the throwable which caused the subscribe failure

onSuspendSuccess

public void onSuspendSuccess(SuspendRequest suspendRequest)
                      throws CPSubscriptionFailureException
In this implementation, no actions will be taken by this method.

Specified by:
onSuspendSuccess in interface ContentProviderSubscriptionService
Parameters:
suspendRequest - object containing suspend information
Throws:
CPSubscriptionFailureException - if the suspend fails; this will force a rollback of the SDK's own suspend

onSuspendFailure

public void onSuspendFailure(SuspendRequest suspendRequest,
                             Throwable t)
In this implementation, no actions will be taken by this method.

Specified by:
onSuspendFailure in interface ContentProviderSubscriptionService
Parameters:
suspendRequest - object containing suspend information
t - the throwable which caused the suspend failure

onUnsubscribeSuccess

public void onUnsubscribeSuccess(UnsubscribeRequest unsubscribeRequest)
                          throws CPSubscriptionFailureException
In this implementation, no actions will be taken by this method.

Specified by:
onUnsubscribeSuccess in interface ContentProviderSubscriptionService
Parameters:
unsubscribeRequest - object containing unsubscribe information
Throws:
CPSubscriptionFailureException - if the unsubscribe fails; this will force a rollback of the SDK's own unsubscribe

onUnsubscribeFailure

public void onUnsubscribeFailure(UnsubscribeRequest unsubscribeRequest,
                                 Throwable t)
In this implementation, no actions will be taken by this method.

Specified by:
onUnsubscribeFailure in interface ContentProviderSubscriptionService
Parameters:
unsubscribeRequest - object containing unsubscribe information
t - the throwable which caused the unsubscribe failure

onAutomaticUnsubscribe

public void onAutomaticUnsubscribe(UnsubscribeRequest unsubscribeRequest)
In this implementation, we will log the automatic unsubscribe action.

Specified by:
onAutomaticUnsubscribe in interface ContentProviderSubscriptionService
Parameters:
unsubscribeRequest - object containing unsubscribe information


Copyright © 2011 Research In Motion. All Rights Reserved.