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.Creation with given audit meta-data.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.voiddelete(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, UUID systemId, UUID committerId, String description) Deletion with given audit meta-data.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) Update with given audit meta-data.
-
Method Details
-
create
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
Optional<U> update(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, T objData, UUID systemId, UUID committerId, String description) 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
void delete(UUID ehrId, com.nedap.archie.rm.support.identification.ObjectVersionId targetObjId, UUID systemId, UUID committerId, String description) 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
-