Skip to content

Commit

Permalink
Passing the in memory cacheable repository helper bean.
Browse files Browse the repository at this point in the history
  • Loading branch information
trishaanand committed Feb 24, 2025
1 parent c0c9f98 commit d4f1f97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.appsmith.server.repositories.CacheableRepositoryHelper;
import com.appsmith.server.repositories.ConfigRepository;
import com.appsmith.server.repositories.PermissionGroupRepository;
import com.appsmith.server.solutions.PermissionGroupPermission;
import io.micrometer.observation.ObservationRegistry;
import org.springframework.stereotype.Component;

Expand All @@ -16,14 +15,15 @@ public UserUtils(
ConfigRepository configRepository,
PermissionGroupRepository permissionGroupRepository,
CacheableRepositoryHelper cacheableRepositoryHelper,
PermissionGroupPermission permissionGroupPermission,
ObservationRegistry observationRegistry,
CommonConfig commonConfig) {
CommonConfig commonConfig,
InMemoryCacheableRepositoryHelper inMemoryCacheableRepositoryHelper) {
super(
configRepository,
permissionGroupRepository,
cacheableRepositoryHelper,
observationRegistry,
commonConfig);
commonConfig,
inMemoryCacheableRepositoryHelper);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,21 @@ public class UserUtilsCE {
private final ObservationRegistry observationRegistry;
private final CacheableRepositoryHelper cacheableRepositoryHelper;
private final CommonConfig commonConfig;
InMemoryCacheableRepositoryHelper inMemoryCacheableRepositoryHelper;
private final InMemoryCacheableRepositoryHelper inMemoryCacheableRepositoryHelper;

public UserUtilsCE(
ConfigRepository configRepository,
PermissionGroupRepository permissionGroupRepository,
CacheableRepositoryHelper cacheableRepositoryHelper,
ObservationRegistry observationRegistry,
CommonConfig commonConfig) {
CommonConfig commonConfig,
InMemoryCacheableRepositoryHelper inMemoryCacheableRepositoryHelper) {
this.configRepository = configRepository;
this.permissionGroupRepository = permissionGroupRepository;
this.observationRegistry = observationRegistry;
this.cacheableRepositoryHelper = cacheableRepositoryHelper;
this.commonConfig = commonConfig;
this.inMemoryCacheableRepositoryHelper = inMemoryCacheableRepositoryHelper;
}

public Mono<Boolean> isSuperUser(User user) {
Expand Down

0 comments on commit d4f1f97

Please sign in to comment.