|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
net.rim.pushsdk.commons.PushSDKBaseDAO
net.rim.pushsdk.pushappmgmt.PushAppRDBMSDAOImpl
public class PushAppRDBMSDAOImpl
RDBMS implementation of the PushApplicationDAO interface.
| Field Summary |
|---|
| Fields inherited from class net.rim.pushsdk.commons.PushSDKBaseDAO |
|---|
DATABASE_TZ |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
PushAppRDBMSDAOImpl()
|
|
| 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 |
removeAllFromCache()
Removes all objects from the cache |
void |
setCache(net.sf.ehcache.Cache cache)
Sets a cache to use to cache PushApplications. |
void |
setPasswordEncryptorDecryptor(PasswordEncryptorDecryptor passwordEncryptorDecryptor)
|
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Deprecated. |
void |
setSqlProperties(SQLProperties sqlProperties)
|
void |
updatePushApplication(PushApplication pushApplication)
Updates the details of a push application. |
| Methods inherited from class net.rim.pushsdk.commons.PushSDKBaseDAO |
|---|
encodeSQLText, encodeSQLText, encodeSQLText, getSimpleJdbcTemplate |
| Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
|---|
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushAppRDBMSDAOImpl()
| Method Detail |
|---|
public void setCache(net.sf.ehcache.Cache cache)
cache - an instance of a cache@Deprecated public void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushApplicationDAOPushSDKProperties implementation.
setPushSDKProperties in interface PushApplicationDAOpublic void setPasswordEncryptorDecryptor(PasswordEncryptorDecryptor passwordEncryptorDecryptor)
public void setSqlProperties(SQLProperties sqlProperties)
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> findAll()
throws org.springframework.dao.DataAccessException
PushApplicationDAO
findAll in interface PushApplicationDAOorg.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 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 occurpublic void removeAllFromCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||