use of org.wso2.carbon.identity.user.export.core.service.UserInformationProvider in project identity-governance by wso2-extensions.
the class UserInformationServiceImpl method getRetainedUserInformation.
@Override
public Map<String, Object> getRetainedUserInformation(String username, String userStoreDomain, int tenantId) throws UserExportException {
Map<String, Object> userInformation = new HashMap<>();
for (UserInformationProvider userInformationProvider : userInformationProviders) {
if (userInformationProvider.isEnabled()) {
UserInformationDTO retainedUserInformation = userInformationProvider.getRetainedUserInformation(username, userStoreDomain, tenantId);
if (retainedUserInformation != null && retainedUserInformation.isInformationAvailable()) {
String type = userInformationProvider.getType();
userInformation.put(type, retainedUserInformation.getData());
}
}
}
return userInformation;
}
Aggregations