@Service public class RoleServiceImpl extends Object implements RoleService
Constructor and Description |
---|
RoleServiceImpl(RoleRepository roleRepository) |
Modifier and Type | Method and Description |
---|---|
Optional<org.oxerr.commons.user.domain.Role> |
getRole(UUID id) |
Optional<org.oxerr.commons.user.domain.Role> |
getRoleByName(String name) |
org.springframework.data.domain.Page<org.oxerr.commons.user.domain.Role> |
getRoles(String name,
org.springframework.data.domain.Pageable pageable) |
org.oxerr.commons.user.domain.Role |
saveRole(org.oxerr.commons.user.domain.Role role) |
@Autowired public RoleServiceImpl(RoleRepository roleRepository)
public org.oxerr.commons.user.domain.Role saveRole(org.oxerr.commons.user.domain.Role role)
saveRole
in interface RoleService
public Optional<org.oxerr.commons.user.domain.Role> getRole(UUID id)
getRole
in interface RoleService
public Optional<org.oxerr.commons.user.domain.Role> getRoleByName(String name)
getRoleByName
in interface RoleService
public org.springframework.data.domain.Page<org.oxerr.commons.user.domain.Role> getRoles(String name, org.springframework.data.domain.Pageable pageable)
getRoles
in interface RoleService
Copyright © 2019. All rights reserved.