public abstract class AbstractJdbcNotificationService extends AbstractNotificationService
INotificationService implementations that pull notifications from JDBC
data sources using common patterns.usernameFinder| Constructor and Description |
|---|
AbstractJdbcNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
NotificationResponse |
fetch(javax.portlet.PortletRequest req)
Provide the current collection of Notifications information for the user
represented by the
PortletRequest. |
protected abstract org.springframework.jdbc.core.ResultSetExtractor<NotificationResponse> |
getResultSetExtractor(javax.portlet.PortletRequest req)
Subclasses must override this method to provide a custom
ResultSetExtractor. |
protected org.springframework.jdbc.core.namedparam.SqlParameterSource |
getSqlParameterSource(javax.portlet.PortletRequest req)
Subclasses may override this method to provide a custom
SqlParameterSource. |
void |
init() |
void |
invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
boolean refresh)
Subclasses of
AbstractNotificationService that need to perform
some logic within this method should override it. |
void |
setCache(net.sf.ehcache.Cache cache) |
void |
setDataSource(javax.sql.DataSource dataSource) |
void |
setRequiredParameters(java.util.Set<java.lang.String> requiredParameters)
Implementors may may call this method to specify parameters that must be present in
the
SqlParameterSource. |
void |
setSql(java.lang.String sql) |
collect, createServiceUserWindowSpecificCacheKey, getName, isValid, prepareErrorResponse, setNamepublic void setDataSource(javax.sql.DataSource dataSource)
public void setSql(java.lang.String sql)
public void setCache(net.sf.ehcache.Cache cache)
public void setRequiredParameters(java.util.Set<java.lang.String> requiredParameters)
SqlParameterSource.@PostConstruct public void init()
public void invoke(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
boolean refresh)
AbstractNotificationServiceAbstractNotificationService that need to perform
some logic within this method should override it.invoke in interface INotificationServiceinvoke in class AbstractNotificationServicereq - The current ActionRequestres - The current ActionResponserefresh - If true, the service should expire any cached datapublic NotificationResponse fetch(javax.portlet.PortletRequest req)
INotificationServicePortletRequest.req - The PortletRequestprotected org.springframework.jdbc.core.namedparam.SqlParameterSource getSqlParameterSource(javax.portlet.PortletRequest req)
SqlParameterSource.protected abstract org.springframework.jdbc.core.ResultSetExtractor<NotificationResponse> getResultSetExtractor(javax.portlet.PortletRequest req)
ResultSetExtractor.Copyright © 2018 Jasig. All Rights Reserved.