Package org.ehrbase.api.service
Interface VersionedObjectService<T extends com.nedap.archie.rm.archetyped.Locatable,U>
- Type Parameters:
T- Class of target versioned object, e.g.Folder.U- Class of return value of create and update methods. For instance,FolderDto. Will be wrapped in anOptional.
- All Known Subinterfaces:
CompositionService
public interface VersionedObjectService<T extends com.nedap.archie.rm.archetyped.Locatable,U>
Service layer interface for versioned openEHR objects.
Helps to always handle the necessary metadata and streamlines C(R)UD operations.
Retrieval is
Helps to always handle the necessary metadata and streamlines C(R)UD operations.
Retrieval is
-
Method Summary
Modifier and TypeMethodDescriptionCreation with default audit meta-data.Creation with a given contribution, and its audit meta-data.Deprecated, for removal: This API element is subject to removal in a future version.voidDeletion with default audit meta-data.voiddelete(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, UUID contribution, UUID audit) Deletion with a given contribution, and its audit meta-data.default voiddelete(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, UUID systemId, UUID committerId, String description) Deprecated, for removal: This API element is subject to removal in a future version.update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData) Update with default audit meta-data.update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData, UUID contribution, UUID audit) Update with a given contribution, and its audit meta-data.update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData, UUID systemId, UUID committerId, String description) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
create
@Deprecated(forRemoval=true) default Optional<U> create(UUID ehrId, T objData, UUID systemId, UUID committerId, String description) Deprecated, for removal: This API element is subject to removal in a future version.Creation with given audit meta-data. Will create a new ad-hoc contribution.- Parameters:
ehrId- EHR ID of contextobjData- Payload object datasystemId- Audit system IDcommitterId- Audit committer IDdescription- Optional audit description text- Returns:
VersionedObjectServicetyped response wrapped inOptional
-
create
Creation with a given contribution, and its audit meta-data.- Parameters:
ehrId- EHR ID of contextobjData- Payload object datacontribution- Contribution for operationaudit-- Returns:
VersionedObjectServicetyped response wrapped inOptional
-
create
Creation with default audit meta-data. Will create a new ad-hoc contribution.- Parameters:
ehrId- EHR ID of contextobjData- Payload object data- Returns:
VersionedObjectServicetyped response wrapped inOptional
-
update
@Deprecated(forRemoval=true) default Optional<U> update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData, UUID systemId, UUID committerId, String description) Deprecated, for removal: This API element is subject to removal in a future version.Update with given audit meta-data. Will create a new ad-hoc contribution.- Parameters:
ehrId- EHR ID of contexttargetObjId- ID of target objectobjData- Payload object datasystemId- Audit system IDcommitterId- Audit committer IDdescription- Optional audit description text- Returns:
VersionedObjectServicetyped response wrapped inOptional
-
update
Optional<U> update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData, UUID contribution, UUID audit) Update with a given contribution, and its audit meta-data.- Parameters:
ehrId- EHR ID of contexttargetObjId- ID of target objectobjData- Payload object datacontribution- Contribution for operationaudit-- Returns:
VersionedObjectServicetyped response wrapped inOptional
-
update
Optional<U> update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData) Update with default audit meta-data. Will create a new ad-hoc contribution.- Parameters:
ehrId- EHR ID of contexttargetObjId- ID of target objectobjData- Payload object data- Returns:
VersionedObjectServicetyped response wrapped inOptional
-
delete
@Deprecated(forRemoval=true) default void delete(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, UUID systemId, UUID committerId, String description) Deprecated, for removal: This API element is subject to removal in a future version.Deletion with given audit meta-data. Will create a new ad-hoc contribution.- Parameters:
ehrId- EHR ID of contexttargetObjId- ID of target objectsystemId- Audit system IDcommitterId- Audit committer IDdescription- Optional audit description text
-
delete
void delete(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, UUID contribution, UUID audit) Deletion with a given contribution, and its audit meta-data.- Parameters:
ehrId- EHR ID of contexttargetObjId- ID of target objectcontribution- Contribution for operationaudit-
-
delete
Deletion with default audit meta-data. Will create a new ad-hoc contribution.- Parameters:
ehrId- EHR ID of contexttargetObjId- ID of target object
-