case LINK:
review.setExtendedReview(dialog.getImportedReview());
break;
}
User currentUser = RevuUtils.getCurrentUser();
if (currentUser != null)
{
User reviewCurrentUser = review.getDataReferential().getUser(currentUser.getLogin(), false);
if (reviewCurrentUser == null)
{
for (User.Role role : User.Role.values())
{
currentUser.addRole(role);
}
review.getDataReferential().addUser(currentUser);
}
else
{
if (!reviewCurrentUser.hasRole(User.Role.ADMIN))
{
reviewCurrentUser.addRole(User.Role.ADMIN);
}
}
}
History history = new History();