public class GroupCacheImpl extends java.lang.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 java.io.IOException
evict
in interface GroupCache
java.io.IOException
public void evictAfterRename(AccountGroup.NameKey oldName, AccountGroup.NameKey newName) throws java.io.IOException
evictAfterRename
in interface GroupCache
java.io.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 java.io.IOException
GroupCache
onCreateGroup
in interface GroupCache
java.io.IOException