@Service @Transactional public class ChartService extends Object
| Constructor and Description |
|---|
ChartService(ChartRepository chartRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Chart chart)
Delete the chart.
|
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 |
getOne(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 getOne(Long id)
id - the id of the entitypublic void delete(Chart chart)
chart - the Chart to deleteCopyright © 2019 Power TAC. All rights reserved.