|
|
|
@ -47,7 +47,7 @@ public class AccessContext extends AbstractComponent implements ApplicationConte
|
|
|
|
|
|
|
|
|
|
implicits = authorities.stream()
|
|
|
|
|
.filter(authority -> Authority.Type.IMPLICIT.equals(authority.type()))
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
.toList();
|
|
|
|
|
|
|
|
|
|
List<DataObject> authorityActions = authorityMapper.getActionList();
|
|
|
|
|
authorityActions.stream() // 권한별 기능그룹 설정
|
|
|
|
@ -59,7 +59,7 @@ public class AccessContext extends AbstractComponent implements ApplicationConte
|
|
|
|
|
.forEach((authID, byAuth) -> {
|
|
|
|
|
List<String> groupIDs = byAuth.stream()
|
|
|
|
|
.map(row -> (String)row.get("GRP_ID"))
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
.toList();
|
|
|
|
|
|
|
|
|
|
Authority authority = authorityIndex.get(authID);
|
|
|
|
|
if (authority != null)
|
|
|
|
@ -71,7 +71,7 @@ public class AccessContext extends AbstractComponent implements ApplicationConte
|
|
|
|
|
.forEach((authID, actions) -> {
|
|
|
|
|
List<String> actionList = actions.stream()
|
|
|
|
|
.map(action -> action.string("ACTION"))
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
.toList();
|
|
|
|
|
Authority authority = authorityIndex.get(authID);
|
|
|
|
|
if (authority != null)
|
|
|
|
|
authority.setActions(actionList);
|
|
|
|
@ -99,7 +99,7 @@ public class AccessContext extends AbstractComponent implements ApplicationConte
|
|
|
|
|
return authorityIndex.entrySet().stream()
|
|
|
|
|
.filter(entry -> authIDs.contains(entry.getKey()))
|
|
|
|
|
.map(Entry::getValue)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
.toList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**내재적 권한 목록을 반환한다.
|
|
|
|
@ -117,6 +117,6 @@ public class AccessContext extends AbstractComponent implements ApplicationConte
|
|
|
|
|
return getAuthorities(authIDs).stream()
|
|
|
|
|
.flatMap(authority -> authority.getActions().stream())
|
|
|
|
|
.distinct()
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
.toList();
|
|
|
|
|
}
|
|
|
|
|
}
|