Class RoleHierarchyImpl.Builder
java.lang.Object
org.springframework.security.access.hierarchicalroles.RoleHierarchyImpl.Builder
- Enclosing class:
- RoleHierarchyImpl
Builder class for constructing a
RoleHierarchyImpl
based on a hierarchical
role structure.- Since:
- 6.3
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
Builder class for constructing child roles within a role hierarchy branch. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns aRoleHierarchyImpl
describing the defined role hierarchy.Creates a new hierarchy branch to define a role and its child roles.
-
Method Details
-
role
Creates a new hierarchy branch to define a role and its child roles.- Parameters:
role
- the highest role in this branch- Returns:
- a
RoleHierarchyImpl.Builder.ImpliedRoles
to define the child roles for therole
-
build
Builds and returns aRoleHierarchyImpl
describing the defined role hierarchy.- Returns:
- a
RoleHierarchyImpl
-