You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
512 B
21 lines
512 B
package org.ros.chatto.service;
|
|
|
|
import org.ros.chatto.model.Role;
|
|
import org.ros.chatto.repository.RoleRepository;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@Service
|
|
public class RoleServiceImpl implements RoleService {
|
|
|
|
@Autowired
|
|
private RoleRepository roleRepository;
|
|
|
|
@Override
|
|
public Role getRole(String roleName) {
|
|
// TODO Auto-generated method stub
|
|
// Role role = new Role();
|
|
return roleRepository.findByName(roleName);
|
|
}
|
|
|
|
}
|