Class ArtService


  • @Component
    public class ArtService
    extends Object
    Uses ArtistDao and PaintingDao to query and manipulate the repository.
    Since:
    4.0.0
    Author:
    Florian Kleedorfer
    • Constructor Detail

      • ArtService

        public ArtService()
    • Method Detail

      • createArtist

        @Transactional
        public Artist createArtist​(String firstName,
                                   String lastName)
      • getPaintings

        @Transactional
        public List<Painting> getPaintings()
      • getArtists

        @Transactional
        public List<Artist> getArtists()
      • getArtistsWithoutPaintings

        @Transactional
        public Set<Artist> getArtistsWithoutPaintings()
      • getPaintingsGroupedByArtist

        @Transactional
        public Map<Artist,​Set<Painting>> getPaintingsGroupedByArtist()
      • addArtist

        @Transactional
        public IRI addArtist​(Artist artist)
      • addPainting

        @Transactional
        public IRI addPainting​(Painting painting)