net.rim.pushsdk.pushappmgmt
Class PushAppSubDeleteManager

java.lang.Object
  extended by net.rim.pushsdk.pushappmgmt.PushAppSubDeleteManager
All Implemented Interfaces:
Runnable

public class PushAppSubDeleteManager
extends Object
implements Runnable

Performs a delete operation (single operation, single thread) on users belonging to a push application that is in the process of being hard deleted.

Author:
mdandrea

Constructor Summary
PushAppSubDeleteManager()
           
 
Method Summary
 void awaitCompletion()
          Waits for the completion of the deletion of the subscribers of a push application.
 void deleteSubscriptions()
          Performs a deletion of all the subscriptions for a push application.
 void run()
          Performs a deletion of all the subscriptions for a push application.
 void setDeletedBy(String deletedBy)
          The user or entity deleting the subscribers of a push application.
 void setPushApplicationId(String pushApplicationId)
          Sets the id of the push application that is having its subscribers deleted.
 void setPushSDKProperties(PushSDKProperties pushSDKProperties)
          Sets a PushSDKProperties object to use.
 void setSubscriptionService(SubscriptionService subscriptionService)
          Sets a SubscriptionService object to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushAppSubDeleteManager

public PushAppSubDeleteManager()
Method Detail

setPushSDKProperties

public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
Sets a PushSDKProperties object to use.

Parameters:
pushSDKProperties - an instance of a PushSDKProperties implementation

setSubscriptionService

public void setSubscriptionService(SubscriptionService subscriptionService)
Sets a SubscriptionService object to use.

Parameters:
subscriptionService - an instance of a SubscriptionService implementation

setPushApplicationId

public void setPushApplicationId(String pushApplicationId)
Sets the id of the push application that is having its subscribers deleted.

Parameters:
pushApplicationId - the id of the push application

setDeletedBy

public void setDeletedBy(String deletedBy)
The user or entity deleting the subscribers of a push application.

Parameters:
deletedBy - the user performing the delete

awaitCompletion

public void awaitCompletion()
Waits for the completion of the deletion of the subscribers of a push application.


deleteSubscriptions

public void deleteSubscriptions()
Performs a deletion of all the subscriptions for a push application.


run

public void run()
Performs a deletion of all the subscriptions for a push application.

Specified by:
run in interface Runnable


Copyright © 2011 Research In Motion. All Rights Reserved.