Interface ParticipantContextStore
public interface ParticipantContextStore
Stores
ParticipantContext objects and provides basic CRUD operations.-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringorg.eclipse.edc.spi.result.StoreResult<Void>create(org.eclipse.edc.identityhub.spi.participantcontext.model.ParticipantContext context) Creates a ParticipantContext resource in the store.org.eclipse.edc.spi.result.StoreResult<Void>deleteById(String id) Deletes a ParticipantContext resource from the store based on the given ID.default Stringorg.eclipse.edc.spi.result.StoreResult<Collection<org.eclipse.edc.identityhub.spi.participantcontext.model.ParticipantContext>>query(org.eclipse.edc.spi.query.QuerySpec querySpec) Queries the store for ParticipantContexts based on the given query specification.org.eclipse.edc.spi.result.StoreResult<Void>update(org.eclipse.edc.identityhub.spi.participantcontext.model.ParticipantContext participantContext) Updates a ParticipantContext resource in the store.
-
Method Details
-
create
org.eclipse.edc.spi.result.StoreResult<Void> create(org.eclipse.edc.identityhub.spi.participantcontext.model.ParticipantContext context) Creates a ParticipantContext resource in the store.- Parameters:
context- The ParticipantContext resource to create.- Returns:
- success if not exists, a failure if already exists
-
query
org.eclipse.edc.spi.result.StoreResult<Collection<org.eclipse.edc.identityhub.spi.participantcontext.model.ParticipantContext>> query(org.eclipse.edc.spi.query.QuerySpec querySpec) Queries the store for ParticipantContexts based on the given query specification.- Parameters:
querySpec- TheQuerySpecindicating the criteria for the query.- Returns:
- A
StoreResultobject containing a list ofParticipantContextobjects that match the query. If none are found, returns an empty stream.
-
update
org.eclipse.edc.spi.result.StoreResult<Void> update(org.eclipse.edc.identityhub.spi.participantcontext.model.ParticipantContext participantContext) Updates a ParticipantContext resource in the store.- Parameters:
participantContext- The ParticipantContext resource to update. Note that all fields are overwritten.- Returns:
- success if participant context exists, failure otherwise
-
deleteById
Deletes a ParticipantContext resource from the store based on the given ID.- Parameters:
id- The ID of the ParticipantContext resource to delete.- Returns:
- success if the object could be deleted, a failure otherwise
-
alreadyExistsErrorMessage
-
notFoundErrorMessage
-