public interface UserProjectCache
| Modifier and Type | Method and Description |
|---|---|
void |
expire() |
Set<String> |
getAllProjects()
Retrieve names of all projects that users belong to
|
Map<AbstractMap.SimpleImmutableEntry<String,String>,Set<String>> |
getUserProjects()
Retrieve an unmodifiable mapping of users to their projects
|
boolean |
hasUser(String user,
String token) |
boolean |
isOperationsUser(String user,
String token) |
void |
update(String user,
String token,
Set<String> projects,
boolean operationsUser)
Add users for a project
|
void update(String user, String token, Set<String> projects, boolean operationsUser)
user - the usertoken - the token that the user used to authenticateprojects - the projects to add the user tooperationsUser - boolean whether or not the user is an operationsUserMap<AbstractMap.SimpleImmutableEntry<String,String>,Set<String>> getUserProjects()
boolean hasUser(String user, String token)
user - void expire()
Copyright © 2015–2017 Red Hat. All rights reserved.