Package io.jmix.reports.impl.repository
Class ReportGroupRepositoryImpl
java.lang.Object
io.jmix.reports.impl.repository.ReportGroupRepositoryImpl
- All Implemented Interfaces:
ReportGroupRepository
@Component("report_ReportGroupRepository")
public class ReportGroupRepositoryImpl
extends Object
implements ReportGroupRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessManagerprotected final AnnotatedReportGroupHolderprotected final DataManagerprotected final Metadataprotected final MsgBundleToolsprotected final RepositoryUtil -
Constructor Summary
ConstructorsConstructorDescriptionReportGroupRepositoryImpl(AnnotatedReportGroupHolder annotatedReportGroupHolder, DataManager dataManager, Metadata metadata, MsgBundleTools msgBundleTools, RepositoryUtil repositoryUtil, AccessManager accessManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsGroupByCode(String reportGroupCode) Checks if there are any report groups with the given code.intgetTotalCount(ReportGroupFilter filter) Calculate total count of entities that conform to passed filter.protected booleanloadAll()Load all report groups, sorted by localized title.loadGroupIdByCode(String reportGroupCode) Loads report group id by its code.protected List<ReportGroup>loadList(ReportGroupLoadContext loadContext) Load list of report groups, with filtering, pagination and sorting options available.
-
Field Details
-
annotatedReportGroupHolder
-
dataManager
-
metadata
-
msgBundleTools
-
repositoryUtil
-
accessManager
-
-
Constructor Details
-
ReportGroupRepositoryImpl
public ReportGroupRepositoryImpl(AnnotatedReportGroupHolder annotatedReportGroupHolder, DataManager dataManager, Metadata metadata, MsgBundleTools msgBundleTools, RepositoryUtil repositoryUtil, AccessManager accessManager)
-
-
Method Details
-
loadAll
Description copied from interface:ReportGroupRepositoryLoad all report groups, sorted by localized title.- Specified by:
loadAllin interfaceReportGroupRepository- Returns:
- list of groups
-
loadList
Description copied from interface:ReportGroupRepositoryLoad list of report groups, with filtering, pagination and sorting options available.- Specified by:
loadListin interfaceReportGroupRepository- Parameters:
loadContext- context containing filtering, pagination and sorting options- Returns:
- list of groups
-
getTotalCount
Description copied from interface:ReportGroupRepositoryCalculate total count of entities that conform to passed filter.- Specified by:
getTotalCountin interfaceReportGroupRepository- Parameters:
filter- object with filter values- Returns:
- count of suitable entities
-
existsGroupByCode
Description copied from interface:ReportGroupRepositoryChecks if there are any report groups with the given code.- Specified by:
existsGroupByCodein interfaceReportGroupRepository- Parameters:
reportGroupCode- report group code- Returns:
- true if a report group with the given code exists, false otherwise
-
loadGroupIdByCode
Description copied from interface:ReportGroupRepositoryLoads report group id by its code.- Specified by:
loadGroupIdByCodein interfaceReportGroupRepository- Parameters:
reportGroupCode- report group code- Returns:
Optionalid for report group.
-
loadGroupsFromDatabase
-
isReadPermitted
protected boolean isReadPermitted()
-