Class TestGroupStore

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


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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(io.annot8.core.annotations.Group group)  
      java.util.stream.Stream<io.annot8.core.annotations.Group> getAll​()  
      io.annot8.core.annotations.Group.Builder getBuilder​()  
      java.util.Optional<io.annot8.core.annotations.Group> getById​(java.lang.String groupId)  
      io.annot8.core.data.BaseItem getItem​()  
      io.annot8.core.annotations.Group save​(io.annot8.core.annotations.Group group)  
      io.annot8.core.annotations.Group save​(io.annot8.core.annotations.Group.Builder groupBuilder)  
      void setItem​(io.annot8.core.data.BaseItem item)  
      • Methods inherited from interface io.annot8.core.stores.GroupStore

        copy, create, delete, deleteAll, edit, getByType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestGroupStore

        public TestGroupStore​()
      • TestGroupStore

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

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

      • setItem

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

        public io.annot8.core.data.BaseItem 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 java.util.stream.Stream<io.annot8.core.annotations.Group> getAll​()
        Specified by:
        getAll in interface io.annot8.core.stores.GroupStore
      • getById

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