public class AnyRowResourceContentJdbcNotificationService extends AbstractJdbcNotificationService
AbstractJdbcNotificationService that returns a 100% static
NotificationResponse from the classpath if the configured SQL returns at least one row.
Otherwise it returns NotificationResponse.EMTY_RESPONSE. The default
SqlParameterSource wraps the PortletRequest.USER_INFO collection (Portlet
API) or the OIDC Id Token (Servlet API), but subclasses may override this strategy.usernameFinder| Constructor and Description |
|---|
AnyRowResourceContentJdbcNotificationService() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.jdbc.core.ResultSetExtractor<org.jasig.portlet.notice.NotificationResponse> |
getResultSetExtractor(javax.servlet.http.HttpServletRequest request)
Subclasses must override this method to provide a custom
ResultSetExtractor. |
protected org.springframework.jdbc.core.ResultSetExtractor<org.jasig.portlet.notice.NotificationResponse> |
getResultSetExtractor(javax.portlet.PortletRequest req)
Subclasses must override this method to provide a custom
ResultSetExtractor. |
void |
init()
Subclasses must call
super.init(). |
void |
setJsonResource(org.springframework.core.io.Resource jsonResource)
Specify the complete content of the
NotificationResponse. |
executeQuery, fetch, fetch, fetchFromCacheOrSupplier, getSqlParameterSource, getSqlParameterSource, invoke, setCache, setDataSource, setRequiredParameters, setSqlcollect, createServiceUserWindowSpecificCacheKey, getName, isValid, prepareErrorResponse, setNamepublic AnyRowResourceContentJdbcNotificationService()
public void setJsonResource(org.springframework.core.io.Resource jsonResource)
NotificationResponse.@PostConstruct public void init()
super.init().init in class AbstractJdbcNotificationServiceprotected org.springframework.jdbc.core.ResultSetExtractor<org.jasig.portlet.notice.NotificationResponse> getResultSetExtractor(javax.portlet.PortletRequest req)
AbstractJdbcNotificationServiceResultSetExtractor.getResultSetExtractor in class AbstractJdbcNotificationServiceprotected org.springframework.jdbc.core.ResultSetExtractor<org.jasig.portlet.notice.NotificationResponse> getResultSetExtractor(javax.servlet.http.HttpServletRequest request)
AbstractJdbcNotificationServiceResultSetExtractor.getResultSetExtractor in class AbstractJdbcNotificationService