Class BadgeService
java.lang.Object
io.meeds.gamification.service.BadgeService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd Badge to DBvoiddeleteBadge(Long id) Delete a BadgeEntity using the idfindBadgeById(Long badgeId) Find a BadgeEntity by idfindBadgeByTitle(String badgeTitle) Find a BadgeEntity by titlefindBadgeByTitleAndProgramId(String badgeTitle, long programId) Find a BadgeEntity by titlefindBadgesByProgramId(long programId) findEnabledBadgesByProgramId(long programId) Return all badges within the DBupdateBadge(BadgeDTO badgeDTO) Update Badge to DB
-
Field Details
-
programStorage
-
badgeDAO
-
-
Constructor Details
-
BadgeService
-
-
Method Details
-
findBadgeByTitle
-
findBadgeById
-
findBadgeByTitleAndProgramId
-
getAllBadges
-
addBadge
-
updateBadge
-
deleteBadge
Delete a BadgeEntity using the id- Parameters:
id- : badge id- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when badge doesn't exist
-
findBadgesByProgramId
-
findEnabledBadgesByProgramId
-