|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pushappmgmt.PushAppMemoryDAOImpl
public class PushAppMemoryDAOImpl
In-memory implementation of the PushApplicationDAO interface.
| Constructor Summary | |
|---|---|
PushAppMemoryDAOImpl()
|
|
| Method Summary | |
|---|---|
void |
addPushApplication(PushApplication pushApplication)
Adds the specified push application to the persistent store. |
void |
changePushApplicationCredentials(String id,
String newUsername,
String newPassword,
String modifiedBy)
Deprecated. |
void |
changePushApplicationEnterpriseCredentials(String id,
String newUsername,
String newPassword,
String modifiedBy)
Change the enterprise username and password of a push application that has a type of Enterprise Push or Public+Enterprise Push. |
void |
changePushApplicationPublicCredentials(String id,
String newPassword,
String modifiedBy)
Change the public password of a push application that has a type of Public Push, Web Signal, or Public+Enterprise Push. |
void |
changePushApplicationTypeFromEnterpriseToPublicAndEnterprise(String id,
String publicPassword,
String publicNotifyUrl,
String modifiedBy)
Changes the type of a push application from Enterprise Push to Public+Enterprise Push. |
void |
changePushApplicationTypeFromPublicToPublicAndEnterprise(String id,
String enterpriseUsername,
String enterprisePassword,
String enterpriseNotifyUrl,
String modifiedBy)
Changes the type of a push application from Public Push to Public+Enterprise Push. |
void |
deletePushApplication(String id,
String deletedBy)
Warning! Removes a push application entirely and permanently from the persistent store (and any related entities if a foreign key cascading relationship exists). |
void |
disablePushApplication(String id,
String modifiedBy)
Disables (sets to inactive) a push application. |
void |
enablePushApplication(String id,
Date expiryDate,
String modifiedBy)
Enables (sets to active) a push application. |
void |
enablePushApplication(String id,
String modifiedBy)
Enables (sets to active) a push application. |
List<PushApplication> |
findAll()
Finds a list of all the push applications in storage. |
PushApplication |
findById(String id)
Finds the push application with the specified push application id. |
PushApplication |
findByName(String name)
Finds the push application with the specified name. |
List<PushApplication> |
findByStatus(PushApplicationStatus status)
Finds a list of push applications with the specified status. |
List<PushApplication> |
findByType(PushApplicationType type)
Finds a list of push applications with the specified type. |
void |
setPushAppMemoryDataStore(PushAppMemoryDataStore pushAppMemoryDataStore)
Sets the in-memory data store to use for storing push applications. |
void |
setPushCountMemoryDataStore(PushCountMemoryDataStore pushCountMemoryDataStore)
Sets the in-memory data store to use for storing push counts. |
void |
setPushRequestDetailMemoryDataStore(PushRequestDetailMemoryDataStore pushRequestDetailMemoryDataStore)
Sets the in-memory data store to use for storing push request details. |
void |
setPushRequestMemoryDataStore(PushRequestMemoryDataStore pushRequestMemoryDataStore)
Sets the in-memory data store to use for storing push requests. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Deprecated. |
void |
setPushStatsMemoryDataStore(PushStatsMemoryDataStore pushStatsMemoryDataStore)
Sets the in-memory data store to use for storing push stats. |
void |
setSubMemoryDataStore(SubMemoryDataStore subMemoryDataStore)
Sets the in-memory data store to use for storing subscribers. |
void |
updatePushApplication(PushApplication pushApplication)
Updates the details of a push application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushAppMemoryDAOImpl()
| Method Detail |
|---|
@Deprecated public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushApplicationDAOPushSDKProperties implementation.
setPushSDKProperties in interface PushApplicationDAOpublic void setPushAppMemoryDataStore(PushAppMemoryDataStore pushAppMemoryDataStore)
pushAppMemoryDataStore - push application in-memory data storepublic void setSubMemoryDataStore(SubMemoryDataStore subMemoryDataStore)
subMemoryDataStore - subscriber in-memory data storepublic void setPushCountMemoryDataStore(PushCountMemoryDataStore pushCountMemoryDataStore)
pushCountMemoryDataStore - push count in-memory data storepublic void setPushRequestMemoryDataStore(PushRequestMemoryDataStore pushRequestMemoryDataStore)
pushRequestMemoryDataStore - push request in-memory data storepublic void setPushRequestDetailMemoryDataStore(PushRequestDetailMemoryDataStore pushRequestDetailMemoryDataStore)
pushRequestDetailMemoryDataStore - push request detail in-memory data storepublic void setPushStatsMemoryDataStore(PushStatsMemoryDataStore pushStatsMemoryDataStore)
pushStatsMemoryDataStore - push stats in-memory data store
public void addPushApplication(PushApplication pushApplication)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
addPushApplication in interface PushApplicationDAOpushApplication - the push application to add
org.springframework.dao.DataAccessException - if any errors occur
public PushApplication findById(String id)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
findById in interface PushApplicationDAOid - the id of the push application to lookup
org.springframework.dao.DataAccessException - if any errors occur
public PushApplication findByName(String name)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
findByName in interface PushApplicationDAOname - the name of the push application to lookup
org.springframework.dao.DataAccessException - if any errors occur
public List<PushApplication> findByStatus(PushApplicationStatus status)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
findByStatus in interface PushApplicationDAOstatus - the status of a push application
org.springframework.dao.DataAccessException - if any errors occur
public List<PushApplication> findByType(PushApplicationType type)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
findByType in interface PushApplicationDAOtype - the type of a push application
org.springframework.dao.DataAccessException - if any errors occur
public List<PushApplication> findAll()
throws org.springframework.dao.DataAccessException
PushApplicationDAO
findAll in interface PushApplicationDAOorg.springframework.dao.DataAccessException - if any errors occur
public void disablePushApplication(String id,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
disablePushApplication in interface PushApplicationDAOid - the id of the push applicationmodifiedBy - the user that disabled the push application
org.springframework.dao.DataAccessException - if any errors occur
public void enablePushApplication(String id,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
enablePushApplication in interface PushApplicationDAOid - the id of the push applicationmodifiedBy - the user that enabled the push application
org.springframework.dao.DataAccessException - if any errors occur
public void enablePushApplication(String id,
Date expiryDate,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
enablePushApplication in interface PushApplicationDAOid - the id of the push applicationexpiryDate - the new expiry date for the push applicationmodifiedBy - the user that enabled the push application
org.springframework.dao.DataAccessException - if any errors occur
public void deletePushApplication(String id,
String deletedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
deletePushApplication in interface PushApplicationDAOid - the id of the push application to remove entirely and permanentlydeletedBy - an identifier that identifies the caller of this API. The deletedBy value will be placed into the log files at
info level for audit purposes
org.springframework.dao.DataAccessException - if any errors occur
@Deprecated
public void changePushApplicationCredentials(String id,
String newUsername,
String newPassword,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
changePushApplicationCredentials in interface PushApplicationDAOid - the id of the push applicationnewUsername - the new username for the push application (Note: for an application with a type of Public Push, this parameter
is ignored, since it needs to match the id.)newPassword - the new password for the push applicationmodifiedBy - the user that is changing the push application's password
org.springframework.dao.DataAccessException - if any errors occur
public void changePushApplicationPublicCredentials(String id,
String newPassword,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
changePushApplicationPublicCredentials in interface PushApplicationDAOid - the id of the push applicationnewPassword - the new password for the push applicationmodifiedBy - the user that is changing the push application's public credentials
org.springframework.dao.DataAccessException - if any errors occur
public void changePushApplicationEnterpriseCredentials(String id,
String newUsername,
String newPassword,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
changePushApplicationEnterpriseCredentials in interface PushApplicationDAOid - the id of the push applicationnewUsername - the new username for the push application (might be null)newPassword - the new password for the push application (might be null)modifiedBy - the user that is changing the push application's enterprise credentials
org.springframework.dao.DataAccessException - if any errors occur
public void updatePushApplication(PushApplication pushApplication)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
updatePushApplication in interface PushApplicationDAOpushApplication - the updated push application
org.springframework.dao.DataAccessException - if any errors occur
public void changePushApplicationTypeFromPublicToPublicAndEnterprise(String id,
String enterpriseUsername,
String enterprisePassword,
String enterpriseNotifyUrl,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
changePushApplicationTypeFromPublicToPublicAndEnterprise in interface PushApplicationDAOid - the id of the push applicationenterpriseUsername - an optional username for enterprise (BES) pushes; null if not requiredenterprisePassword - an optional password for enterprise (BES) pushes; null if not requiredenterpriseNotifyUrl - a full notification URL for enterprise (BES) acknowledgements; null if using a service level of Push EssentialsmodifiedBy - the user that is changing the push application's type
org.springframework.dao.DataAccessException - if any errors occur
public void changePushApplicationTypeFromEnterpriseToPublicAndEnterprise(String id,
String publicPassword,
String publicNotifyUrl,
String modifiedBy)
throws org.springframework.dao.DataAccessException
PushApplicationDAO
changePushApplicationTypeFromEnterpriseToPublicAndEnterprise in interface PushApplicationDAOid - the id of the push applicationpublicPassword - a password for public (BIS) pushespublicNotifyUrl - a notification URL fragment for public (BIS) acknowledgements; null if using a service level of Push EssentialsmodifiedBy - the user that is changing the push application's type
org.springframework.dao.DataAccessException - if any errors occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||