remove role link from user

This commit is contained in:
Athou
2015-03-30 09:43:44 +02:00
parent 35e0567705
commit cc1e173552
4 changed files with 11 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ package com.commafeed.backend.service;
import java.util.Collection;
import java.util.Date;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import javax.inject.Inject;
@@ -133,4 +134,8 @@ public class UserService {
byte[] key = encryptionService.getEncryptedPassword(UUID.randomUUID().toString(), user.getSalt());
return DigestUtils.sha1Hex(key);
}
public Set<Role> getRoles(User user) {
return userRoleDAO.findRoles(user);
}
}