@Service @Transactional public class ChartService extends Object
| Constructor and Description |
|---|
ChartService(ChartRepository chartRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Long id)
Delete the chart by id.
|
org.springframework.data.domain.Page<Chart> |
findAll(org.springframework.data.domain.Pageable pageable)
Get all the charts.
|
List<Chart> |
findByOwnerIsCurrentUserOrShared(String login)
Get all the charts owned by this user, plus all shared charts.
|
Chart |
findOne(Long id)
Get one chart by id.
|
Chart |
save(Chart chart)
Save a chart.
|
public ChartService(ChartRepository chartRepository)
public Chart save(Chart chart)
chart - the entity to save@Transactional(readOnly=true) public org.springframework.data.domain.Page<Chart> findAll(org.springframework.data.domain.Pageable pageable)
pageable - the pagination information@Transactional(readOnly=true) public List<Chart> findByOwnerIsCurrentUserOrShared(String login)
@Transactional(readOnly=true) public Chart 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.