Class DefaultPermRoleCombo
-
- All Implemented Interfaces:
-
org.springframework.core.Ordered,pro.fessional.wings.warlock.service.auth.impl.ComboWarlockAuthzService.Combo
public class DefaultPermRoleCombo implements ComboWarlockAuthzService.Combo
Create GrantedAuthority by the mapping of user and permit
- Since:
2021-03-05
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static intORDERpublic intorderpublic final static intHIGHEST_PRECEDENCEpublic final static intLOWEST_PRECEDENCE
-
Constructor Summary
Constructors Constructor Description DefaultPermRoleCombo()
-
Method Summary
Modifier and Type Method Description intgetOrder()voidsetOrder(int order)booleanpreAuth(@NotNull() DefaultWingsUserDetails details, @NotNull() HashSet<Object> role, @NotNull() HashSet<Object> perm)Prepare data for unified processing of roles and perm, e.g. WarlockGrantServicegetWarlockGrantService()voidsetWarlockGrantService(WarlockGrantService warlockGrantService)-
Methods inherited from class pro.fessional.wings.warlock.service.auth.impl.ComboWarlockAuthzService.Combo
postAuth -
Methods inherited from class org.springframework.core.Ordered
getOrder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOrder
int getOrder()
-
setOrder
void setOrder(int order)
-
preAuth
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.
-
getWarlockGrantService
WarlockGrantService getWarlockGrantService()
-
setWarlockGrantService
@Autowired() void setWarlockGrantService(WarlockGrantService warlockGrantService)
-
-
-
-