use of eu.bcvsolutions.idm.acc.entity.AccIdentityRoleAccount_ in project CzechIdMng by bcvsolutions.
the class IdentityRoleProvisioningExecutor method doProvisioning.
public void doProvisioning(AccAccountDto account) {
Assert.notNull(account, "Account is required.");
AccIdentityRoleAccountFilter filter = new AccIdentityRoleAccountFilter();
filter.setAccountId(account.getId());
List<AccIdentityRoleAccountDto> entityAccoutnList = identityRoleAccountService.find(filter, null).getContent();
if (entityAccoutnList == null) {
return;
}
entityAccoutnList.stream().filter(entityAccount -> {
return entityAccount.isOwnership();
}).forEach((identityRoleAccount) -> {
doProvisioning(account, DtoUtils.getEmbedded(identityRoleAccount, AccIdentityRoleAccount_.identityRole, IdmIdentityRoleDto.class));
});
}
Aggregations