public class GroupCacheImpl extends Object implements GroupCache
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<AccountGroup> |
all() |
void |
evict(AccountGroup group) |
void |
evictAfterRename(AccountGroup.NameKey oldName,
AccountGroup.NameKey newName) |
AccountGroup |
get(AccountGroup.Id groupId) |
AccountGroup |
get(AccountGroup.NameKey name) |
AccountGroup |
get(AccountGroup.UUID uuid)
Lookup a group definition by its UUID.
|
static com.google.inject.Module |
module() |
void |
onCreateGroup(AccountGroup.NameKey newGroupName)
Notify the cache that a new group was constructed.
|
public static com.google.inject.Module module()
public AccountGroup get(AccountGroup.Id groupId)
get
in interface GroupCache
public void evict(AccountGroup group) throws IOException
evict
in interface GroupCache
IOException
public void evictAfterRename(AccountGroup.NameKey oldName, AccountGroup.NameKey newName) throws IOException
evictAfterRename
in interface GroupCache
IOException
public AccountGroup get(AccountGroup.NameKey name)
get
in interface GroupCache
public AccountGroup get(AccountGroup.UUID uuid)
GroupCache
get
in interface GroupCache
public com.google.common.collect.ImmutableList<AccountGroup> all()
all
in interface GroupCache
public void onCreateGroup(AccountGroup.NameKey newGroupName) throws IOException
GroupCache
onCreateGroup
in interface GroupCache
IOException