Class TestGroupStore

  • All Implemented Interfaces:
    io.annot8.core.stores.GroupStore

    public class TestGroupStore
    extends Object
    implements io.annot8.core.stores.GroupStore
    • Constructor Summary

      Constructors 
      Constructor Description
      TestGroupStore()  
      TestGroupStore​(io.annot8.core.data.Item item)  
      TestGroupStore​(io.annot8.core.data.Item item, io.annot8.common.implementations.factories.GroupBuilderFactory<io.annot8.core.annotations.Group> groupBuilderFactory)  
    • Constructor Detail

      • TestGroupStore

        public TestGroupStore()
      • TestGroupStore

        public TestGroupStore​(io.annot8.core.data.Item item,
                              io.annot8.common.implementations.factories.GroupBuilderFactory<io.annot8.core.annotations.Group> groupBuilderFactory)
      • TestGroupStore

        public TestGroupStore​(io.annot8.core.data.Item item)
    • Method Detail

      • setItem

        public void setItem​(io.annot8.core.data.Item item)
      • getItem

        public io.annot8.core.data.Item getItem()
      • getBuilder

        public io.annot8.core.annotations.Group.Builder getBuilder()
        Specified by:
        getBuilder in interface io.annot8.core.stores.GroupStore
      • save

        public io.annot8.core.annotations.Group save​(io.annot8.core.annotations.Group.Builder groupBuilder)
                                              throws io.annot8.core.exceptions.IncompleteException
        Throws:
        io.annot8.core.exceptions.IncompleteException
      • save

        public io.annot8.core.annotations.Group save​(io.annot8.core.annotations.Group group)
      • delete

        public void delete​(io.annot8.core.annotations.Group group)
        Specified by:
        delete in interface io.annot8.core.stores.GroupStore
      • getAll

        public Stream<io.annot8.core.annotations.Group> getAll()
        Specified by:
        getAll in interface io.annot8.core.stores.GroupStore
      • getById

        public Optional<io.annot8.core.annotations.Group> getById​(String groupId)
        Specified by:
        getById in interface io.annot8.core.stores.GroupStore