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
.void
deleteProgress
(String progressNameOrId) Deletes theProgress
with the supplied id or name.getProgress
(String progressId) Gets a progress with specified name or ID.void
getProgressDao
(ProgressDao progressDao) getProgresses
(int offset, int count, List<String> tags) Returns a list ofProgress
objects.getProgresses
(int offset, int count, List<String> tags, String query) Returns a list ofProgress
objects.Gets aTabulation<ProgressRow>
complete with the tabular data for that row.void
setCurrentProfileSupplier
(Supplier<Profile> currentProfileSupplier) void
setProgressDao
(ProgressDao progressDao) updateProgress
(Progress progress) Updates theProgress
.
-
Constructor Details
-
UserProgressService
public UserProgressService()
-
-
Method Details
-
getProgress
Description copied from interface:ProgressService
Gets a progress with specified name or ID.- Specified by:
getProgress
in interfaceProgressService
- Parameters:
progressId
- the UserId- Returns:
- the progress
-
getProgresses
Description copied from interface:ProgressService
Returns a list ofProgress
objects.- Specified by:
getProgresses
in interfaceProgressService
- Parameters:
offset
- the offsetcount
- the counttags
-- Returns:
- the list of
Progress
instances
-
getProgresses
Description copied from interface:ProgressService
Returns a list ofProgress
objects.- Specified by:
getProgresses
in interfaceProgressService
- Parameters:
offset
- the offsetcount
- the counttags
-query
- the search query- Returns:
- the list of
Progress
instances
-
getProgressesTabular
Description copied from interface:ProgressService
Gets aTabulation<ProgressRow>
complete with the tabular data for that row.- Specified by:
getProgressesTabular
in interfaceProgressService
- Returns:
- the progress in a tabular fashion.
-
updateProgress
Description copied from interface:ProgressService
- Specified by:
updateProgress
in interfaceProgressService
- Parameters:
progress
- theProgress
to update- Returns:
- the
Progress
as it was written to the database
-
createProgress
Description copied from interface:ProgressService
Creates a newProgress
. The ID of the progress, as specified byProgress.getId()
, should be null and will be assigned.- Specified by:
createProgress
in interfaceProgressService
- Parameters:
progress
- theProgress
to create- Returns:
- the
Progress
as it was created by the service.
-
deleteProgress
Description copied from interface:ProgressService
Deletes theProgress
with the supplied id or name.- Specified by:
deleteProgress
in interfaceProgressService
- Parameters:
progressNameOrId
- the progress name or ID.
-
getProgressDao
-
setProgressDao
-
setProgressDao
-
getProgressDao
-
getCurrentProfileSupplier
-
setCurrentProfileSupplier
-