Package io.camunda.optimize.rest.cloud
Class CCSaaSUserCache
java.lang.Object
io.camunda.optimize.rest.cloud.CCSaaSUserCache
@Component
@Conditional(io.camunda.optimize.service.util.configuration.condition.CCSaaSCondition.class)
public class CCSaaSUserCache
extends Object
The class uses a cache to prevent repeated fetching of all members from a Cloud organisation. The
minimum interval between repopulating the cache is configurable. If a user does not exist in the
cache, a request to fetch that user is made directly to the user client
-
Constructor Summary
ConstructorsConstructorDescriptionCCSaaSUserCache(CCSaaSUserClient userClient, AccountsUserAccessTokenProvider accessTokenProvider, ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionReturns the users currently in the user cachegetUserById(String userId) getUsersById(Set<String> userIds) Returns the users currently in the user cache
-
Constructor Details
-
CCSaaSUserCache
public CCSaaSUserCache(CCSaaSUserClient userClient, AccountsUserAccessTokenProvider accessTokenProvider, ConfigurationService configurationService)
-
-
Method Details
-
getUserById
-
getUsersById
Returns the users currently in the user cache -
getAllUsers
Returns the users currently in the user cache
-