Class ViewService


  • @Service
    @Transactional
    public class ViewService
    extends Object
    Service Implementation for managing View.
    • Constructor Detail

    • Method Detail

      • save

        public View save​(View view)
        Save a view.
        Parameters:
        view - the entity to save
        Returns:
        the persisted entity
      • findAll

        @Transactional(readOnly=true)
        public org.springframework.data.domain.Page<View> findAll​(org.springframework.data.domain.Pageable pageable)
        Get all the views.
        Parameters:
        pageable - the pagination information
        Returns:
        the list of entities
      • findByOwnerIsCurrentUserOrShared

        @Transactional(readOnly=true)
        public List<View> findByOwnerIsCurrentUserOrShared​(String login)
        Get all the views owned by this user, plus all shared views.
        Returns:
        the list of entities
      • findOne

        @Transactional(readOnly=true)
        public Optional<View> findOne​(Long id)
        Get one view by id.
        Parameters:
        id - the id of the entity
        Returns:
        the entity
      • delete

        public void delete​(View view)
        Delete the view.
        Parameters:
        view - the View to delete