@Service @Transactional(readOnly=true) public class RoleService extends Object
| Constructor and Description |
|---|
RoleService(RoleRepository roleRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
createRole(Role role) |
List<Role> |
getAllRoles() |
Role |
getRoleById(Long roleID) |
Role |
getRoleByName(String name) |
Role |
load(Long id) |
void |
remove(Role role) |
void |
update(Role role) |
@Autowired public RoleService(RoleRepository roleRepository)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.