- java.lang.Object
-
- io.annot8.testing.testimpl.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 voiddelete(io.annot8.core.annotations.Group group)java.util.stream.Stream<io.annot8.core.annotations.Group>getAll()io.annot8.core.annotations.Group.BuildergetBuilder()java.util.Optional<io.annot8.core.annotations.Group>getById(java.lang.String groupId)io.annot8.core.data.BaseItemgetItem()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.BaseItem item)
-
-
-
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:
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 java.util.stream.Stream<io.annot8.core.annotations.Group> getAll()
- Specified by:
getAllin interfaceio.annot8.core.stores.GroupStore
-
getById
public java.util.Optional<io.annot8.core.annotations.Group> getById(java.lang.String groupId)
- Specified by:
getByIdin interfaceio.annot8.core.stores.GroupStore
-
-