@Service @Transactional public class ViewService extends Object
| Constructor and Description |
|---|
ViewService(ViewRepository viewRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(View view)
Delete the view.
|
org.springframework.data.domain.Page<View> |
findAll(org.springframework.data.domain.Pageable pageable)
Get all the views.
|
List<View> |
findByOwnerIsCurrentUserOrShared(String login)
Get all the views owned by this user, plus all shared views.
|
View |
getOne(Long id)
Get one view by id.
|
View |
save(View view)
Save a view.
|
public ViewService(ViewRepository viewRepository)
public View save(View view)
view - the entity to save@Transactional(readOnly=true) public org.springframework.data.domain.Page<View> findAll(org.springframework.data.domain.Pageable pageable)
pageable - the pagination information@Transactional(readOnly=true) public List<View> findByOwnerIsCurrentUserOrShared(String login)
@Transactional(readOnly=true) public View getOne(Long id)
id - the id of the entitypublic void delete(View view)
view - the View to deleteCopyright © 2019 Power TAC. All rights reserved.