Interface ComboWarlockAuthzService.Combo
-
- All Implemented Interfaces:
-
org.springframework.core.Ordered
public interface ComboWarlockAuthzService.Combo implements OrderedApply combo auth to user. e.g. change the details directly or add roles/perm before th unified processing. Unified processing includes (1) recursive loading, flattening (2) removing exclusions (starting with `-`).
-
-
Method Summary
Modifier and Type Method Description abstract booleanpreAuth(@NotNull() DefaultWingsUserDetails details, @NotNull() HashSet<Object> role, @NotNull() HashSet<Object> perm)Prepare data for unified processing of roles and perm, e.g. voidpostAuth(@NotNull() DefaultWingsUserDetails details, @NotNull() HashMap<String, GrantedAuthority> auths)Filter, add or remove auths after Unified processing -
-
Method Detail
-
preAuth
abstract boolean preAuth(@NotNull() DefaultWingsUserDetails details, @NotNull() HashSet<Object> role, @NotNull() HashSet<Object> perm)
Prepare data for unified processing of roles and perm, e.g. modify role and perm. Return `true` for solo processing, stopping any subsequent Combo (sort by Order), such as directly specify the permissions, no subsequent additions,
- Parameters:
details- details with/without GrantedAuthorityrole- id(Long), name(String) or Auth(GrantedAuthority)perm- id(Long), name(String) or Auth(GrantedAuthority)- Returns:
Whether to stop any subsequent Combo, default false.
-
-
-
-