use of eu.bcvsolutions.idm.acc.dto.AccRoleAccountDto in project CzechIdMng by bcvsolutions.
the class RoleProvisioningExecutor method doProvisioning.
public void doProvisioning(AccAccountDto account) {
Assert.notNull(account);
AccRoleAccountFilter filter = new AccRoleAccountFilter();
filter.setAccountId(account.getId());
List<AccRoleAccountDto> entityAccoutnList = roleAccountService.find(filter, null).getContent();
if (entityAccoutnList == null) {
return;
}
entityAccoutnList.stream().filter(entityAccount -> {
return entityAccount.isOwnership();
}).forEach((roleAccount) -> {
doProvisioning(account, DtoUtils.getEmbedded(roleAccount, AccRoleAccount_.role, IdmRoleDto.class));
});
}
Aggregations