Package org.ehrbase.api.service
Interface DirectoryService
public interface DirectoryService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidadminDeleteFolder(UUID ehrId, UUID folderId) Physical delete a folder with all Historycom.nedap.archie.rm.directory.FolderCreate a new folder for Ehr with id equalehrIdvoiddelete the folder for Ehr with id equalehrIdOptional<com.nedap.archie.rm.directory.Folder> Get the Folder for Ehr with id equalehrIdOptional<com.nedap.archie.rm.directory.Folder> getByTime(UUID ehrId, OffsetDateTime time, String path) Get the Folder for Ehr with id equalehrIdfor a specific point in time;com.nedap.archie.rm.directory.Folderupdate(UUID ehrId, com.nedap.archie.rm.directory.Folder folder, com.nedap.archie.rm.support.identification.ObjectVersionId ifMatches) Update the folder for Ehr with id equalehrId
-
Field Details
-
EHR_DIRECTORY_FOLDER_IDX
static final int EHR_DIRECTORY_FOLDER_IDX- See Also:
-
-
Method Details
-
get
Optional<com.nedap.archie.rm.directory.Folder> get(UUID ehrId, @Nullable com.nedap.archie.rm.support.identification.ObjectVersionId folderId, @Nullable String path) Get the Folder for Ehr with id equalehrId- Parameters:
ehrId-folderId- ifnulllatest version will be returnedpath- optional return folder atpath- Returns:
-
getByTime
Optional<com.nedap.archie.rm.directory.Folder> getByTime(UUID ehrId, OffsetDateTime time, @Nullable String path) Get the Folder for Ehr with id equalehrIdfor a specific point in time;- Parameters:
ehrId-time-path- optional return folder atpath- Returns:
-
create
com.nedap.archie.rm.directory.Folder create(UUID ehrId, com.nedap.archie.rm.directory.Folder folder) Create a new folder for Ehr with id equalehrId- Parameters:
ehrId-folder-- Returns:
-
update
com.nedap.archie.rm.directory.Folder update(UUID ehrId, com.nedap.archie.rm.directory.Folder folder, com.nedap.archie.rm.support.identification.ObjectVersionId ifMatches) Update the folder for Ehr with id equalehrId- Parameters:
ehrId-folder-ifMatches- expected version before update for optimistic looking- Returns:
-
delete
delete the folder for Ehr with id equalehrId- Parameters:
ehrId-ifMatches- expected version before delete for optimistic looking
-
adminDeleteFolder
Physical delete a folder with all History- Parameters:
ehrId-folderId-
-