Interface PrivilegeSet.Builder
- Enclosing interface:
- PrivilegeSet
public static interface PrivilegeSet.Builder
Builds
PrivilegeSet instances- Author:
- cdivilly
-
Method Summary
Modifier and TypeMethodDescriptionCreate and add aPrivilegewith the specified name and roles.Create and add aPrivilegewith the specified name and rolesAddPrivilegeto this setbuild()BuildPrivilegeSetinstanceclear()Remove allPrivileges from this setRemove the namedPrivilegefrom thisPrivilegeSet
-
Method Details
-
build
PrivilegeSet build()BuildPrivilegeSetinstance- Returns:
PrivilegeSetinstance
-
add
AddPrivilegeto this set- Parameters:
privilege- ThePrivilegeinstance to add- Returns:
- self
-
add
Create and add aPrivilegewith the specified name and roles- Parameters:
name- ThePrivilege.name()propertyroles- ThePrivilege.roles()property- Returns:
- self
-
add
Create and add aPrivilegewith the specified name and roles.- Parameters:
name- ThePrivilege.name()propertyroles- ThePrivilege.roles()property- Returns:
- self
-
remove
Remove the namedPrivilegefrom thisPrivilegeSet- Parameters:
name- The name of the privilege- Returns:
- self
-
clear
PrivilegeSet.Builder clear()Remove allPrivileges from this set- Returns:
- self
-