Пример #1
0
 public Role getRoleByValue(String value) {
   logger.debug("Get role by value");
   return roleRepository.findByValue(value);
 }
Пример #2
0
 public Role getRoleById(Long id) {
   logger.debug("Get role by id");
   return roleRepository.findOne(id);
 }