Class RealizationsServiceImpl
java.lang.Object
org.exoplatform.addons.gamification.service.configuration.RealizationsServiceImpl
- All Implemented Interfaces:
RealizationsService
-
Constructor Summary
ConstructorsConstructorDescriptionRealizationsServiceImpl(RealizationsStorage realizationsStorage, org.exoplatform.social.core.manager.IdentityManager identityManager) -
Method Summary
Modifier and TypeMethodDescriptionintcountRealizationsByFilter(RealizationsFilter filter, org.exoplatform.services.security.Identity identity) Count realizations by filterexportXlsx(RealizationsFilter filter, org.exoplatform.services.security.Identity identity, String fileName, Locale locale) Export realizations found switch filter into anInputStreamcontaining a file of format XLSgetRealizationsByFilter(RealizationsFilter filter, org.exoplatform.services.security.Identity identity, int offset, int limit) Retrieves all Realizations by Filter.updateRealizationStatus(Long gHistoryId, HistoryStatus status, String actionLabel, Long points, String domain) Retrieves all Realizations by Date.
-
Constructor Details
-
RealizationsServiceImpl
public RealizationsServiceImpl(RealizationsStorage realizationsStorage, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
-
Method Details
-
getRealizationsByFilter
public List<GamificationActionsHistoryDTO> getRealizationsByFilter(RealizationsFilter filter, org.exoplatform.services.security.Identity identity, int offset, int limit) throws IllegalAccessException Description copied from interface:RealizationsServiceRetrieves all Realizations by Filter.- Specified by:
getRealizationsByFilterin interfaceRealizationsService- Parameters:
filter- used to filter realizations usingRealizationsFilteridentity- current identityIdentityoffset- Offsetlimit- Limit- Returns:
- A
<GamificationActionsHistoryDTO>object - Throws:
IllegalAccessException- when User doesn't have enough privileges to access achievements of user
-
countRealizationsByFilter
public int countRealizationsByFilter(RealizationsFilter filter, org.exoplatform.services.security.Identity identity) throws IllegalAccessException Description copied from interface:RealizationsServiceCount realizations by filter- Specified by:
countRealizationsByFilterin interfaceRealizationsService- Parameters:
filter- used to filter realizations usingRealizationsFilteridentity- currentIdentity- Returns:
- realizations count
- Throws:
IllegalAccessException- when User doesn't have enough privileges to access achievements of user
-
updateRealizationStatus
public GamificationActionsHistoryDTO updateRealizationStatus(Long gHistoryId, HistoryStatus status, String actionLabel, Long points, String domain) throws org.exoplatform.commons.exception.ObjectNotFoundException Description copied from interface:RealizationsServiceRetrieves all Realizations by Date.- Specified by:
updateRealizationStatusin interfaceRealizationsService- Parameters:
gHistoryId- gHistoryIdstatus- status- Returns:
GamificationActionsHistoryDTOidentified by its id when found- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- GamificationActionsHistory identified by its technical identifier is not found
-
exportXlsx
public InputStream exportXlsx(RealizationsFilter filter, org.exoplatform.services.security.Identity identity, String fileName, Locale locale) throws IllegalAccessException Description copied from interface:RealizationsServiceExport realizations found switch filter into anInputStreamcontaining a file of format XLS- Specified by:
exportXlsxin interfaceRealizationsService- Parameters:
filter- used to filter realizations usingRealizationsFilteridentity- currentIdentityfileName- fileName to exportlocale- usedLocalefor XLS header labels- Returns:
InputStreamof a file of format XLS- Throws:
IllegalAccessException- when User doesn't have enough privileges to access achievements of user
-