@Service @Transactional public class GraphService extends Object
| Constructor and Description |
|---|
GraphService(GraphRepository graphRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Long id)
Delete the graph by id.
|
org.springframework.data.domain.Page<Graph> |
findAll(org.springframework.data.domain.Pageable pageable)
Get all the graphs.
|
List<Graph> |
findByOwnerIsCurrentUserOrShared(String login)
Get all the graphs owned by this user, plus all shared graphs.
|
Graph |
findOne(Long id)
Get one graph by id.
|
Graph |
save(Graph graph)
Save a graph.
|
public GraphService(GraphRepository graphRepository)
public Graph save(Graph graph)
graph - the entity to save@Transactional(readOnly=true) public org.springframework.data.domain.Page<Graph> findAll(org.springframework.data.domain.Pageable pageable)
pageable - the pagination information@Transactional(readOnly=true) public List<Graph> findByOwnerIsCurrentUserOrShared(String login)
@Transactional(readOnly=true) public Graph findOne(Long id)
id - the id of the entitypublic void delete(Long id)
id - the id of the entityCopyright © 2017 Power TAC. All rights reserved.