Class UserProgressService
java.lang.Object
dev.getelements.elements.service.progress.UserProgressService
- All Implemented Interfaces:
ProgressService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProgress(Progress progress) Creates a newProgress.voiddeleteProgress(String progressNameOrId) Deletes theProgresswith the supplied id or name.getProgress(String progressId) Gets a progress with specified name or ID.voidgetProgressDao(ProgressDao progressDao) getProgresses(int offset, int count, List<String> tags) Returns a list ofProgressobjects.getProgresses(int offset, int count, List<String> tags, String query) Returns a list ofProgressobjects.Gets aTabulation<ProgressRow>complete with the tabular data for that row.voidsetCurrentProfileSupplier(Supplier<Profile> currentProfileSupplier) voidsetProgressDao(ProgressDao progressDao) updateProgress(Progress progress) Updates theProgress.
-
Constructor Details
-
UserProgressService
public UserProgressService()
-
-
Method Details
-
getProgress
Description copied from interface:ProgressServiceGets a progress with specified name or ID.- Specified by:
getProgressin interfaceProgressService- Parameters:
progressId- the UserId- Returns:
- the progress
-
getProgresses
Description copied from interface:ProgressServiceReturns a list ofProgressobjects.- Specified by:
getProgressesin interfaceProgressService- Parameters:
offset- the offsetcount- the counttags-- Returns:
- the list of
Progressinstances
-
getProgresses
Description copied from interface:ProgressServiceReturns a list ofProgressobjects.- Specified by:
getProgressesin interfaceProgressService- Parameters:
offset- the offsetcount- the counttags-query- the search query- Returns:
- the list of
Progressinstances
-
getProgressesTabular
Description copied from interface:ProgressServiceGets aTabulation<ProgressRow>complete with the tabular data for that row.- Specified by:
getProgressesTabularin interfaceProgressService- Returns:
- the progress in a tabular fashion.
-
updateProgress
Description copied from interface:ProgressService- Specified by:
updateProgressin interfaceProgressService- Parameters:
progress- theProgressto update- Returns:
- the
Progressas it was written to the database
-
createProgress
Description copied from interface:ProgressServiceCreates a newProgress. The ID of the progress, as specified byProgress.getId(), should be null and will be assigned.- Specified by:
createProgressin interfaceProgressService- Parameters:
progress- theProgressto create- Returns:
- the
Progressas it was created by the service.
-
deleteProgress
Description copied from interface:ProgressServiceDeletes theProgresswith the supplied id or name.- Specified by:
deleteProgressin interfaceProgressService- Parameters:
progressNameOrId- the progress name or ID.
-
getProgressDao
-
setProgressDao
-
setProgressDao
-
getProgressDao
-
getCurrentProfileSupplier
-
setCurrentProfileSupplier
-