Class AnnouncementStorage
java.lang.Object
org.exoplatform.addons.gamification.storage.AnnouncementStorage
- Direct Known Subclasses:
AnnouncementCachedStorage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnouncementStorage(GamificationHistoryDAO announcementDAO, RuleDAO ruleDAO) -
Method Summary
Modifier and TypeMethodDescriptioncountAnnouncementsByChallenge(Long challengeId) countAnnouncementsByChallengeAndEarnerType(Long challengeId, IdentityType earnerType) findAllAnnouncementByChallenge(Long challengeId, int offset, int limit, PeriodType periodType, IdentityType earnerType) getAnnouncementById(long announcementId) getAnnouncementsByEarnerId(String earnerId) saveAnnouncement(Announcement announcement)
-
Field Details
-
MILLIS_IN_A_DAY
public static final long MILLIS_IN_A_DAY- See Also:
-
-
Constructor Details
-
AnnouncementStorage
-
-
Method Details
-
saveAnnouncement
-
getAnnouncementById
-
getAnnouncementsByEarnerId
-
findAllAnnouncementByChallenge
public List<Announcement> findAllAnnouncementByChallenge(Long challengeId, int offset, int limit, PeriodType periodType, IdentityType earnerType) -
countAnnouncementsByChallenge
-
countAnnouncementsByChallengeAndEarnerType
-