|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pushappmgmt.PushApplication
public class PushApplication
Represents the details and attributes of a push application. A push application refers to an application that can be installed on the device and that can accept push messages sent to it.
| Field Summary | |
|---|---|
static int |
APP_ID_MAX_LENGTH
Maximum application id field length. |
static int |
DESC_MAX_LENGTH
Maximum description field length. |
protected boolean |
isDeprecatedConstructorUsed
Deprecated. |
static int |
MODIFIED_BY_MAX_LENGTH
Maximum modified by field length. |
static int |
NAME_MAX_LENGTH
Maximum name field length. |
static int |
PASSWORD_MAX_LENGTH
Maximum password field length. |
static int |
USERNAME_MAX_LENGTH
Maximum username field length. |
static int |
VERSION_MAX_LENGTH
Maximum version field length. |
| Constructor Summary | |
|---|---|
PushApplication()
Deprecated. As of release 1.1, use PushApplication(PushApplicationType) |
|
PushApplication(PushApplication pushApplication)
Copy Constructor. |
|
PushApplication(PushApplicationType type)
Constructs a push application with the given type. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two push applications are found to be equal and false otherwise. |
Integer |
getConsecutiveFailedPushThreshold()
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
Date |
getCreatedDate()
Gets the date at which the push application was created. |
Integer |
getDefaultPushLiveTime()
Gets the current default time-to-live in seconds of a push message sent to the push application. |
String |
getDescription()
Gets the current description for the push application. |
String |
getEnterpriseNotifyUrl()
Returns the enterprise/BES notification call back URL for the push application. |
String |
getEnterprisePassword()
Gets the current enterprise (BES) password, which is optional (can be null) to authenticate pushing to an application. |
Date |
getExpiryDate()
Gets the date at which the push application expires. |
String |
getId()
Gets the id that identifies the push application. |
Integer |
getMaxDailyQuota()
Gets the current maximum daily quota (in number of pushes) for the push application. |
String |
getModifiedBy()
Gets the id of the individual or entity which performed the last modification on the push application. |
Date |
getModifiedDate()
Gets the date at which the push application was last modified. |
String |
getName()
Gets the current name of the push application. |
String |
getNotifyUrl()
Deprecated. As of version 1.1, use getPublicNotifyUrl() or getEnterpriseNotifyUrl() |
String |
getPassword()
Deprecated. As of release 1.1, use getPublicPassword() or getEnterprisePassword() |
String |
getPublicNotifyUrl()
Returns the public/BIS notification call back URL for the push application. |
String |
getPublicPassword()
Gets the current public (BIS) password, which is required to authenticate pushing to an application. |
Integer |
getPushPort()
Gets the current port that the push application is listening on. |
PushApplicationServiceLevel |
getServiceLevel()
Gets the current service level (service class) of the push application. |
Date |
getStartDate()
Gets the date the push application went into active service. |
PushApplicationStatus |
getStatus()
Gets the current status of the push application. |
PushApplicationType |
getType()
Returns the type of Push Application. |
String |
getUsername()
Gets the current username, which is required to authenticate pushing to an application. |
String |
getVersion()
Gets the current version number of the push application. |
int |
hashCode()
|
boolean |
isApplicationReliable()
Whether or not pushes sent to the push application should be acknowledged by the application itself. |
boolean |
isAutoDeleteRequests()
Indicates whether push request data will be automatically deleted when the last notification for that request is received. |
boolean |
isBypassSubscription()
Whether or not the push application allows subscriptions (for push applications of type "Enterprise Push" only). |
protected boolean |
isDeprecatedConstructorUsed()
Deprecated. |
boolean |
isExpired()
Indicates if this push application is expired. |
boolean |
isLastNotificationEnabled()
Indicates whether notifications of the 'last' type are enabled. |
boolean |
isStorePushRequests()
Whether or not the push application should store the details of all outgoing push requests. |
boolean |
isTrackingLastNotification()
Whether or not last notifications are being tracked for requests associated with the push application. |
void |
setApplicationReliable(boolean isApplicationReliable)
Indicates if pushes sent to this push application should be acknowledged by the application on the device or whether the device receiving the message is satisfactory enough. |
void |
setAutoDeleteRequests(boolean autoDeleteRequests)
Sets whether push request data will be automatically deleted when the last notification for that request is received. |
void |
setBypassSubscription(boolean bypassSubscription)
Indicates whether the SDK should bypass checking/validating subscriptions for pushes sent to this push application. |
void |
setConsecutiveFailedPushThreshold(Integer consecutiveFailedPushThreshold)
Deprecated. As of release 1.1, the SDK will no longer keep a count of consecutive failed pushes when result notification is received from the PPG. If this functionality is desired it should be implemented by push initiator's themselves by subclassing the FailureNotificationListener from the acknowledgement component. The SDK no longer keeps this count because the public/BIS PPG will be implementing this logic on the platform side instead. For enterprise/BES the push initiator must implement the logic if desired. |
protected void |
setCreatedDate(Date createdDate)
Sets the date this push application was created. |
void |
setDefaultPushLiveTime(Integer defaultPushLiveTime)
Sets the default time-to-live for a push message sent to this push application in seconds. |
void |
setDescription(String description)
A textual description of the application. |
void |
setEnterpriseNotifyUrl(String enterpriseNotifyUrlPath)
Sets the URL path where this push application will be listening for result notifications (acknowledgements) of the final outcome of the push sent via HTTP from the enterprise/BES PPG. |
void |
setEnterprisePassword(String password)
Sets the enterprise (BES) password needed to authenticate pushing to this application. |
void |
setExpiryDate(Date expiryDate)
Sets the date this push application expires and is not allowed to send any more pushes. |
void |
setId(String id)
Sets the id that identifies this push application. |
void |
setLastNotificationEnabled(boolean lastNotificationEnabled)
Sets whether 'last' type notifications are enabled. |
void |
setMaxDailyQuota(Integer maxDailyQuota)
Sets the maximum daily quota (in number of pushes) that can be pushed to this push application. |
void |
setModifiedBy(String modifiedBy)
Sets the identifier of the entity last making a modification to this push application's details. |
protected void |
setModifiedDate(Date modifiedDate)
Sets the date this push application was last modified. |
void |
setName(String name)
Sets the user friendly name of the push application. |
void |
setNotifyUrl(String notifyUrl)
Deprecated. As of version 1.1, use setPublicNotifyUrl(String) or setEnterpriseNotifyUrl(String) |
void |
setPassword(String password)
Deprecated. As of release 1.1, use setPublicPassword(String) or setEnterprisePassword(String) |
void |
setPublicNotifyUrl(String publicNotifyUrlRelativePath)
Sets the relative part of the URL path where this push application will be listening for result notifications (acknowledgements) of the final outcome of the push sent via HTTP from the public/BIS PPG. |
void |
setPublicPassword(String password)
Sets the public (BIS) password needed to authenticate pushing to this application. |
void |
setPushPort(Integer pushPort)
Sets the port this push application is listening for pushed data on the device. |
void |
setServiceLevel(PushApplicationServiceLevel serviceLevel)
Sets the service level (service class) for this push application. |
void |
setStartDate(Date startDate)
Sets the date this push application went into active service. |
void |
setStatus(PushApplicationStatus status)
Sets the status of this push application. |
void |
setStorePushRequests(boolean storePushRequests)
Indicates whether the SDK should store the details of all outgoing push requests for pushes sent to this push application. |
void |
setType(PushApplicationType type)
Sets the type of Push Application. |
void |
setUsername(String username)
Sets the username needed to authenticate pushing to this application. |
void |
setVersion(String version)
Sets the version number of this application. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MODIFIED_BY_MAX_LENGTH
public static final int DESC_MAX_LENGTH
public static final int PASSWORD_MAX_LENGTH
public static final int USERNAME_MAX_LENGTH
public static final int VERSION_MAX_LENGTH
public static final int NAME_MAX_LENGTH
public static final int APP_ID_MAX_LENGTH
@Deprecated protected boolean isDeprecatedConstructorUsed
| Constructor Detail |
|---|
public PushApplication(PushApplication pushApplication)
pushApplication - a PushApplication object@Deprecated public PushApplication()
PushApplication(PushApplicationType)
public PushApplication(PushApplicationType type)
type - the type of push applicationPushApplicationType| Method Detail |
|---|
public String getId()
public void setId(String id)
id - the id of the push applicationpublic String getName()
public void setName(String name)
name - the name of the push applicationpublic String getVersion()
public void setVersion(String version)
version - the version numberpublic String getUsername()
public void setUsername(String username)
username - the push application's username@Deprecated public String getPassword()
getPublicPassword() or getEnterprisePassword()
@Deprecated public void setPassword(String password)
setPublicPassword(String) or setEnterprisePassword(String)
password - the passwordpublic String getPublicPassword()
public void setPublicPassword(String password)
password - the passwordpublic String getEnterprisePassword()
public void setEnterprisePassword(String password)
password - the passwordpublic String getDescription()
public void setDescription(String description)
description - the description of the applicationpublic Integer getMaxDailyQuota()
public void setMaxDailyQuota(Integer maxDailyQuota)
maxDailyQuota - the maximum daily quotapublic PushApplicationStatus getStatus()
PushApplicationStatuspublic void setStatus(PushApplicationStatus status)
status - the status of the applicationPushApplicationStatus,
PushApplicationStatuspublic Integer getPushPort()
public void setPushPort(Integer pushPort)
pushPort - the port@Deprecated public String getNotifyUrl()
getPublicNotifyUrl() or getEnterpriseNotifyUrl()
public String getPublicNotifyUrl()
public String getEnterpriseNotifyUrl()
@Deprecated public void setNotifyUrl(String notifyUrl)
setPublicNotifyUrl(String) or setEnterpriseNotifyUrl(String)
notifyUrl - the notify URLpublic void setPublicNotifyUrl(String publicNotifyUrlRelativePath)
publicNotifyUrlRelativePath - the relative path part of the URL (base part of the URL must not be specified here!)public void setEnterpriseNotifyUrl(String enterpriseNotifyUrlPath)
enterpriseNotifyUrlPath - the full result notification URLpublic boolean isStorePushRequests()
public void setStorePushRequests(boolean storePushRequests)
storePushRequests - true | falsepublic boolean isBypassSubscription()
public void setBypassSubscription(boolean bypassSubscription)
bypassSubscription - true | falsepublic Integer getConsecutiveFailedPushThreshold()
public void setConsecutiveFailedPushThreshold(Integer consecutiveFailedPushThreshold)
consecutiveFailedPushThreshold - the number of consecutive failed pushes allowed before suspending the userpublic Date getStartDate()
public void setStartDate(Date startDate)
startDate - public Date getExpiryDate()
public void setExpiryDate(Date expiryDate)
expiryDate - the expiry datepublic Date getCreatedDate()
protected void setCreatedDate(Date createdDate)
public Date getModifiedDate()
protected void setModifiedDate(Date modifiedDate)
public String getModifiedBy()
public void setModifiedBy(String modifiedBy)
modifiedBy - the identifierpublic Integer getDefaultPushLiveTime()
public void setDefaultPushLiveTime(Integer defaultPushLiveTime)
defaultPushLiveTime - the time in secondspublic boolean isApplicationReliable()
public void setApplicationReliable(boolean isApplicationReliable)
isApplicationReliable - true for application level reliability; false for transport(device only) level reliabilitypublic PushApplicationServiceLevel getServiceLevel()
public void setServiceLevel(PushApplicationServiceLevel serviceLevel)
serviceLevel - the service levelPushApplicationServiceLevelpublic boolean isExpired()
public boolean isLastNotificationEnabled()
public void setLastNotificationEnabled(boolean lastNotificationEnabled)
lastNotificationEnabled - true if notification of the 'last' type are enabled; false otherwisepublic boolean isAutoDeleteRequests()
public void setAutoDeleteRequests(boolean autoDeleteRequests)
autoDeleteRequests - true if request data will be deleted; false otherwisepublic boolean isTrackingLastNotification()
public void setType(PushApplicationType type)
type - the type to setPushApplicationTypepublic PushApplicationType getType()
PushApplicationTypepublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object@Deprecated protected boolean isDeprecatedConstructorUsed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||