public class AclNameShortner extends Object
HashBiMap ensures no two short name can
coexist. Any attempt to register a permission short name with an existing one
will lead to an IllegalArgumentException.| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.BiMap<String,String> |
mapping |
| Constructor and Description |
|---|
AclNameShortner() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFullName(String shortname) |
Set<String> |
getFullNames() |
com.google.common.collect.BiMap<String,String> |
getMapping() |
String |
getShortName(String permission)
Return the short name of a given permission.
|
Set<String> |
getShortNames() |
void |
register(String permission,
String shortname) |
Copyright © 2020 Nuxeo SA. All rights reserved.