Package com.avoka.fc.core.dao
Class NotificationDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.NotificationDao
Provides a DAO for the Notification entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of current notifications for the specified portalgetNotificationList
(String message, String portal, Date startDate, Date endDate, String sortBy, boolean ascending, int pageSize) Return the list of notifications matching the specified search criteriagetNotificationListForSearchPage
(NotificationType type, Status status, String message, String portal, String form, String client, Date startDate, Date endDate, String sortBy, boolean ascending, int pageSize) Return the list of notifications matching the specified search criteria.Return a List of scheduled status changes (Notification entities of type StatusChange)Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
NotificationDao
public NotificationDao()
-
-
Method Details
-
getNotificationList
public List<Notification> getNotificationList(String message, String portal, Date startDate, Date endDate, String sortBy, boolean ascending, int pageSize) Return the list of notifications matching the specified search criteria- Parameters:
message
- a substring of the notification message (optional)portal
- the OID of the portal associated with the notification (optional)startDate
- the lower bound on the notification start date (optional)endDate
- the upper bound on the notification end date (optional)sortBy
- the attribute to sort by (optional, defaults to notification start date if not set)ascending
- whether to sort in ascending order (applies only if sortBy is set)pageSize
- the page size used in the query- Returns:
- the list of matching notifications
-
getStatusUpdates
Return a List of scheduled status changes (Notification entities of type StatusChange)- Returns:
- List of status changes that are past the current date.
- Since:
- 22.04.0
-
getNotificationListForSearchPage
public List<Notification> getNotificationListForSearchPage(NotificationType type, Status status, String message, String portal, String form, String client, Date startDate, Date endDate, String sortBy, boolean ascending, int pageSize) Return the list of notifications matching the specified search criteria. Can handle both Notification and Status Change Types- Parameters:
type
- Type of the notificationstatus
- Status for Status changemessage
- a substring of the notification message (optional)portal
- the OID of the portal associated with the notification (optional)startDate
- the lower bound on the notification start date (optional)endDate
- the upper bound on the notification end date (optional)sortBy
- the attribute to sort by (optional, defaults to notification start date if not set)ascending
- whether to sort in ascending order (applies only if sortBy is set)pageSize
- the page size used in the query- Returns:
- List of Notification matching search parameters
- Since:
- 22.04.0
-
getCurrentNotificationsForPortal
Return the list of current notifications for the specified portal- Parameters:
portal
- the portal object- Returns:
- the list of current notifications
-