|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.SubscriberPartial
public class SubscriberPartial
Represents a subscriber to a push application, with only a subset of the subscriber's details. This class is particularly
useful for findBy methods which do not require that a full object be returned.
| Field Summary | |
|---|---|
protected String |
address
The address (e.g. |
protected SubscriberStatus |
status
The status of a subscriber. |
protected SubscriberPrimaryKey |
subscriberPrimaryKey
The primary key of a subscriber. |
protected SubscriberType |
type
The type of a subscriber. |
| Constructor Summary | |
|---|---|
SubscriberPartial()
Constructs a subscriber to a push application with partial subscriber details. |
|
SubscriberPartial(SubscriberPartial subscriberPartial)
Copy Constructor. |
|
SubscriberPartial(SubscriberPrimaryKey subscriberPrimaryKey)
Constructs a subscriber to a push application with partial subscriber details. |
|
SubscriberPartial(SubscriberPrimaryKey subscriberPrimaryKey,
String address)
Constructs a subscriber to a push application with partial subscriber details. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two subscriber partials are found to be equal and false otherwise. |
String |
getAddress()
Gets the current value of the subscriber's address (e.g. |
String |
getId()
Gets the current value of the subscriber id from the primary key. |
String |
getPushApplicationId()
Gets the current value of the id of the subscriber's push application from the primary key. |
SubscriberStatus |
getStatus()
Gets the current status of the subscriber. |
SubscriberPrimaryKey |
getSubscriberPrimaryKey()
Gets the current value of the subscriber's primary key. |
SubscriberType |
getType()
Gets the type of the subscriber. |
int |
hashCode()
Returns a hashcode for this subscriber partial. |
void |
setAddress(String address)
Sets the current value of the subscriber's address (e.g. |
void |
setStatus(SubscriberStatus status)
Sets the current status of the subscriber. |
void |
setSubscriberPrimaryKey(SubscriberPrimaryKey subscriberPrimaryKey)
Sets the current value of the subscriber's primary key. |
void |
setType(SubscriberType type)
Set the type of the subscriber. |
String |
toString()
Constructs a String with all attributes in name = value format. |
void |
validate()
Validates a subscriber (with partial details) by verifying that it has i) a non-null push application id, ii) a non-null address, iii) a non-null subscriber id, iv) a non-null subscriber status, and v) a non-null type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SubscriberPrimaryKey subscriberPrimaryKey
protected String address
protected SubscriberStatus status
protected SubscriberType type
| Constructor Detail |
|---|
public SubscriberPartial(SubscriberPartial subscriberPartial)
subscriberPartial - a SubscriberPartial objectpublic SubscriberPartial()
public SubscriberPartial(SubscriberPrimaryKey subscriberPrimaryKey,
String address)
subscriberPrimaryKey - the primary key of a subscriberaddress - the address (e.g. PIN or email address) of a subscriberpublic SubscriberPartial(SubscriberPrimaryKey subscriberPrimaryKey)
subscriberPrimaryKey - the primary key of a subscriber| Method Detail |
|---|
public SubscriberStatus getStatus()
public void setStatus(SubscriberStatus status)
status - the subscriber's statuspublic SubscriberType getType()
public void setType(SubscriberType type)
type - s the subscriber's typepublic String getAddress()
public void setAddress(String address)
address - the subscriber's addresspublic SubscriberPrimaryKey getSubscriberPrimaryKey()
public void setSubscriberPrimaryKey(SubscriberPrimaryKey subscriberPrimaryKey)
subscriberPrimaryKey - the subscriber's primary keypublic String getId()
public String getPushApplicationId()
public void validate()
IllegalArgumentException - if validation failspublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic 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 | |||||||||