Commit d47bf935 authored by michael.simon's avatar michael.simon
Browse files

user update for service only

parent 9d330308
...@@ -53,6 +53,7 @@ import edu.kit.scc.webreg.service.ASUserAttrService; ...@@ -53,6 +53,7 @@ import edu.kit.scc.webreg.service.ASUserAttrService;
import edu.kit.scc.webreg.service.HomeOrgGroupService; import edu.kit.scc.webreg.service.HomeOrgGroupService;
import edu.kit.scc.webreg.service.SamlIdpMetadataService; import edu.kit.scc.webreg.service.SamlIdpMetadataService;
import edu.kit.scc.webreg.service.SamlSpConfigurationService; import edu.kit.scc.webreg.service.SamlSpConfigurationService;
import edu.kit.scc.webreg.service.ServiceService;
import edu.kit.scc.webreg.service.UserService; import edu.kit.scc.webreg.service.UserService;
import edu.kit.scc.webreg.service.UserUpdateService; import edu.kit.scc.webreg.service.UserUpdateService;
import edu.kit.scc.webreg.service.reg.AttributeSourceQueryService; import edu.kit.scc.webreg.service.reg.AttributeSourceQueryService;
...@@ -80,6 +81,9 @@ public class UserUpdateServiceImpl implements UserUpdateService { ...@@ -80,6 +81,9 @@ public class UserUpdateServiceImpl implements UserUpdateService {
@Inject @Inject
private UserService userService; private UserService userService;
@Inject
private ServiceService serviceService;
@Inject @Inject
private HomeOrgGroupService homeOrgGroupService; private HomeOrgGroupService homeOrgGroupService;
...@@ -166,6 +170,8 @@ public class UserUpdateServiceImpl implements UserUpdateService { ...@@ -166,6 +170,8 @@ public class UserUpdateServiceImpl implements UserUpdateService {
* service. Else update all (login via web or generic attribute query) * service. Else update all (login via web or generic attribute query)
*/ */
if (service != null) { if (service != null) {
service = serviceService.findByIdWithAttrs(service.getId(), "attributeSourceService");
for (AttributeSourceServiceEntity asse : service.getAttributeSourceService()) { for (AttributeSourceServiceEntity asse : service.getAttributeSourceService()) {
changed |= attributeSourceQueryService.updateUserAttributes(user, asse.getAttributeSource(), executor); changed |= attributeSourceQueryService.updateUserAttributes(user, asse.getAttributeSource(), executor);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment