- java.lang.Object
-
- io.annot8.testing.testimpl.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(io.annot8.core.annotations.Group group)Stream<io.annot8.core.annotations.Group>getAll()io.annot8.core.annotations.Group.BuildergetBuilder()Optional<io.annot8.core.annotations.Group>getById(String groupId)io.annot8.core.data.ItemgetItem()io.annot8.core.annotations.Groupsave(io.annot8.core.annotations.Group group)io.annot8.core.annotations.Groupsave(io.annot8.core.annotations.Group.Builder groupBuilder)voidsetItem(io.annot8.core.data.Item item)
-
-
-
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:
getBuilderin interfaceio.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:
deletein interfaceio.annot8.core.stores.GroupStore
-
getAll
public Stream<io.annot8.core.annotations.Group> getAll()
- Specified by:
getAllin interfaceio.annot8.core.stores.GroupStore
-
-