|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.CancelResult
public class CancelResult
Represents the result of a cancel including the response from the PPG and sets of subscriber ids that were not sent to the PPG because they were invalid in some way (i.e. they do not exist, are inactive, or are suspended at the time of the cancel request).
Note: The three invalid subscriber sets are populated only if addresses were provided in the request and the push service is not storing push requests.
| Constructor Summary | |
|---|---|
CancelResult(String pushId)
Constructs a cancel result with the given push id. |
|
| Method Summary | |
|---|---|
protected void |
addOutcome(String address,
StatusCode code,
String description)
Adds an outcome to the cancel result. |
Set<String> |
getDoNotExistSubscriberIds()
Returns the collection of subscriber ids that could not be found in storage. |
Set<String> |
getInactiveSubscriberIds()
Returns the collection of subscriber ids that match inactive subscribers. |
List<CancelOutcome> |
getOutcomes()
Returns the address-specific push outcomes. |
String |
getPushId()
Gets the id of the push that was associated with the cancel attempt. |
Set<String> |
getSuspendedSubscriberIds()
Returns the collection of subscriber ids that match suspended subscribers. |
void |
setDoNotExistSubscriberIds(Set<String> doNotExistSubscriberIds)
Sets the collection of subscriber ids that could not be found in storage. |
void |
setInactiveSubscriberIds(Set<String> inactiveSubscriberIds)
Sets the collection of subscriber ids that match inactive subscribers. |
void |
setSuspendedSubscriberIds(Set<String> suspendedSubscriberIds)
Sets the collection of subscriber ids that match suspended subscribers. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CancelResult(String pushId)
pushId - the id of a push| Method Detail |
|---|
public String getPushId()
public List<CancelOutcome> getOutcomes()
protected void addOutcome(String address,
StatusCode code,
String description)
address - the address associated with the outcome. If the outcome pertains to all addresses, this address would be null.
For a public (BIS) push, the address corresponds to a subscriber ID. For an enterprise (BES) push, this would be
the underlying address, if subscription is being bypassed.code - the status code associated with the outcomedescription - the textual description of the outcomepublic void setDoNotExistSubscriberIds(Set<String> doNotExistSubscriberIds)
doNotExistSubscriberIds - a collection of ids for non-existent subscriberspublic Set<String> getDoNotExistSubscriberIds()
public void setInactiveSubscriberIds(Set<String> inactiveSubscriberIds)
inactiveSubscriberIds - a collection of ids for inactive subscriberspublic Set<String> getInactiveSubscriberIds()
public void setSuspendedSubscriberIds(Set<String> suspendedSubscriberIds)
suspendedSubscriberIds - a collection of ids for suspended subscriberspublic Set<String> getSuspendedSubscriberIds()
public String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||