Class WarlockPermNormalizer
-
- All Implemented Interfaces:
public class WarlockPermNormalizerNormalize role, add some prefix
- Since:
2021-06-08
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDenyPrefixpublic StringrolePrefix
-
Constructor Summary
Constructors Constructor Description WarlockPermNormalizer()
-
Method Summary
Modifier and Type Method Description StringgetRolePrefix()voidsetRolePrefix(String rolePrefix)Stringrole(String name)Normalize role, add `DenyPrefix` or `rolePrefix` intindexDenyPrefix(String name)Calc the index of `DenyPrefix` role. intindexRolePrefix(String name)Cale index of `rolePrefix` -
-
Method Detail
-
getRolePrefix
String getRolePrefix()
-
setRolePrefix
void setRolePrefix(String rolePrefix)
-
indexDenyPrefix
int indexDenyPrefix(String name)
Calc the index of `DenyPrefix` role.
- Parameters:
name- role string- Returns:
`-1` means no DenyPrefix
-
indexRolePrefix
int indexRolePrefix(String name)
Cale index of `rolePrefix`
- Parameters:
name- role string- Returns:
`-1` means no rolePrefix
-
-
-
-