Boolean isModerator = importBooleanType(unformatString(organisationObject
.element("isModerator").getText()));
String deleted = unformatString(organisationObject
.element("deleted").getText());
Organisation_Users orgUser = new Organisation_Users();
orgUser.setOrganisation(organisationmanagement
.getOrganisationByIdBackup(organisation_id));
orgUser.setIsModerator(isModerator);
orgUser.setStarttime(new Date());
orgUser.setDeleted(deleted);
orgUsers.add(orgUser);
}
}
log.debug("Import User ID " + userId);
us.setStarttime(new Date());
Long actualNewUserId = userManagement.addUserBackup(us);
usersMap.put(userId, actualNewUserId);
for (Iterator<Organisation_Users> orgUserIterator = orgUsers
.iterator(); orgUserIterator.hasNext();) {
Organisation_Users organisationUsers = orgUserIterator
.next();
organisationmanagement
.addOrganisationUserObj(actualNewUserId, organisationUsers);