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
-
public class NotificationDao extends AbstractDao
Provides a DAO for the Notification entity.- See Also:
Notification
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description NotificationDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Notification>
getCurrentNotificationsForPortal(Portal portal)
Return the list of current notifications for the specified portalList<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-
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
-
-
-
-
Method Detail
-
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
-
getCurrentNotificationsForPortal
public List<Notification> getCurrentNotificationsForPortal(Portal portal)
Return the list of current notifications for the specified portal- Parameters:
portal
- the portal object- Returns:
- the list of current notifications
-
-