Interface RealizationsService
- All Known Implementing Classes:
RealizationsServiceImpl
public interface RealizationsService
-
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.
-
Method Details
-
getRealizationsByFilter
List<GamificationActionsHistoryDTO> getRealizationsByFilter(RealizationsFilter filter, org.exoplatform.services.security.Identity identity, int offset, int limit) throws IllegalAccessException Retrieves all Realizations by Filter.- 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
int countRealizationsByFilter(RealizationsFilter filter, org.exoplatform.services.security.Identity identity) throws IllegalAccessException Count realizations by filter- 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
-
exportXlsx
InputStream exportXlsx(RealizationsFilter filter, org.exoplatform.services.security.Identity identity, String fileName, Locale locale) throws IllegalAccessException Export realizations found switch filter into anInputStreamcontaining a file of format XLS- 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
-
updateRealizationStatus
GamificationActionsHistoryDTO updateRealizationStatus(Long gHistoryId, HistoryStatus status, String actionLabel, Long points, String domain) throws org.exoplatform.commons.exception.ObjectNotFoundException Retrieves all Realizations by Date.- Parameters:
gHistoryId- gHistoryIdstatus- statusactionLabel-points-domain-- Returns:
GamificationActionsHistoryDTOidentified by its id when found- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- GamificationActionsHistory identified by its technical identifier is not found
-