public class UserProjectCacheMapAdapter extends Object implements UserProjectCache
| Constructor and Description |
|---|
UserProjectCacheMapAdapter(org.elasticsearch.common.settings.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
expire() |
Map<String,Set<String>> |
getUserProjects()
Retrieve an unmodifiable mapping of users to their projects
|
boolean |
hasUser(String user) |
boolean |
isClusterAdmin(String user) |
void |
update(String user,
Set<String> projects,
boolean clusterAdmin)
Add users for a project
|
@Inject public UserProjectCacheMapAdapter(org.elasticsearch.common.settings.Settings settings)
public Map<String,Set<String>> getUserProjects()
UserProjectCachegetUserProjects in interface UserProjectCachepublic boolean hasUser(String user)
hasUser in interface UserProjectCachepublic boolean isClusterAdmin(String user)
isClusterAdmin in interface UserProjectCachepublic void update(String user, Set<String> projects, boolean clusterAdmin)
UserProjectCacheupdate in interface UserProjectCachepublic void expire()
expire in interface UserProjectCacheCopyright © 2015–2016 Red Hat. All rights reserved.