Interface I_FolderAccess
- All Superinterfaces:
I_Compensatable,I_VersionedCRUD
- All Known Implementing Classes:
FolderAccess,FolderHistoryAccess
Data Access Object for CRUD operations on instances of
Folder.-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoke physical deletion.getAudit()getEhrId()com.nedap.archie.rm.datastructures.ItemStructurestatic I_FolderAccessgetInstanceForExistingFolder(I_DomainAccess domainAccess, com.nedap.archie.rm.support.identification.ObjectVersionId folderId) static I_FolderAccessgetInstanceForExistingFolder(I_DomainAccess domainAccess, com.nedap.archie.rm.support.identification.ObjectVersionId folderId, Timestamp timestamp) List<com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId>>getItems()Get the items references stored as a part of the givenFolderstatic I_FolderAccessgetNewFolderAccessInstance(I_DomainAccess domainAccess, com.nedap.archie.rm.directory.Folder folder, org.joda.time.DateTime dateTime, UUID ehrId, String tenantIdentifier) Builds theI_FolderAccessfor persisting theFolderprovided as param.Get the list of subfolders for theFolderthat corresponds to thisI_FolderAccessstatic booleanisDeleted(I_DomainAccess domainAccess, UUID versionedObjectId) booleanstatic I_FolderAccessretrieveByVersion(I_DomainAccess domainAccess, UUID folderId, int version) static Set<com.nedap.archie.rm.support.identification.ObjectVersionId>retrieveFolderVersionIdsInContribution(I_DomainAccess domainAccess, UUID contribution, String nodeName) Retrieves the version IDs of all folders, which are linked to the given contribution.static I_FolderAccessretrieveInstanceForExistingFolder(I_DomainAccess domainAccess, UUID folderId) Retrieve instance ofI_FolderAccesswith the information needed retrieve the folder and its sub-folders.static I_FolderAccessretrieveInstanceForExistingFolder(I_DomainAccess domainAccess, UUID folderId, Timestamp timestamp) voidvoidsetFolderDetails(com.nedap.archie.rm.datastructures.ItemStructure folderDetails) voidsetFolderId(UUID folderId) voidsetFolderName(String folderName) voidsetFolderNArchetypeNodeId(String folderArchetypeNodeId) voidsetFolderSysPeriod(AbstractMap.SimpleEntry<OffsetDateTime, OffsetDateTime> folderSysPeriod) voidsetFolderSysTransaction(Timestamp folderSysTransaction) voidsetInContribution(UUID inContribution) voidsetIsFolderActive(boolean folderActive) Methods inherited from interface org.ehrbase.dao.access.interfaces.I_Compensatable
getContributionId, getId, getSysTransaction
-
Method Details
-
retrieveByVersion
-
isDeleted
-
getEhrId
UUID getEhrId() -
getSubfoldersList
Map<UUID,I_FolderAccess> getSubfoldersList()Get the list of subfolders for theFolderthat corresponds to thisI_FolderAccess- Returns:
- Map<UUID, I_FolderAccess> whose key is the UUID of the child
Folder, and whose value is the I_FolderAccess for the childFolder. - Throws:
Exception
-
getItems
List<com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId>> getItems()Get the items references stored as a part of the givenFolder- Returns:
- items of the
Folderthat corresponds to thisI_FolderAccess
-
getNewFolderAccessInstance
static I_FolderAccess getNewFolderAccessInstance(I_DomainAccess domainAccess, com.nedap.archie.rm.directory.Folder folder, org.joda.time.DateTime dateTime, UUID ehrId, String tenantIdentifier) Builds theI_FolderAccessfor persisting theFolderprovided as param.- Parameters:
domainAccess- providing the information about the DB connection.folder- to define theI_FolderAccessthat allows its DB access.dateTime- that will be set as transaction date when theFolderis persistedehrId- of theEhrthat references theFolderprovided as param.- Returns:
I_FolderAccesswith the information to persist the providedFolder
-
retrieveInstanceForExistingFolder
Retrieve instance ofI_FolderAccesswith the information needed retrieve the folder and its sub-folders.- Parameters:
domainAccess- providing the information about the DB connection.folderId-UUIDof theFolderto be fetched from the DB.- Returns:
- the
I_FolderAccessthat provides DB access to theFolderthat corresponds to the provided folderId param. - Throws:
Exception
-
retrieveInstanceForExistingFolder
static I_FolderAccess retrieveInstanceForExistingFolder(I_DomainAccess domainAccess, UUID folderId, Timestamp timestamp) -
getInstanceForExistingFolder
static I_FolderAccess getInstanceForExistingFolder(I_DomainAccess domainAccess, com.nedap.archie.rm.support.identification.ObjectVersionId folderId) -
getInstanceForExistingFolder
static I_FolderAccess getInstanceForExistingFolder(I_DomainAccess domainAccess, com.nedap.archie.rm.support.identification.ObjectVersionId folderId, Timestamp timestamp) -
retrieveFolderVersionIdsInContribution
static Set<com.nedap.archie.rm.support.identification.ObjectVersionId> retrieveFolderVersionIdsInContribution(I_DomainAccess domainAccess, UUID contribution, String nodeName) Retrieves the version IDs of all folders, which are linked to the given contribution.- Parameters:
domainAccess- DB accesscontribution- Given contribution to query fornodeName- Node name to build version ID with (access layer doesn't have access to this info)- Returns:
- Set of
ObjectVersionIdfor linked folders
-
getFolderId
UUID getFolderId() -
setFolderId
-
getInContribution
UUID getInContribution() -
setInContribution
-
getFolderName
String getFolderName() -
setFolderName
-
getFolderArchetypeNodeId
String getFolderArchetypeNodeId() -
setFolderNArchetypeNodeId
-
isFolderActive
boolean isFolderActive() -
setIsFolderActive
void setIsFolderActive(boolean folderActive) -
getFolderDetails
com.nedap.archie.rm.datastructures.ItemStructure getFolderDetails() -
setFolderDetails
void setFolderDetails(com.nedap.archie.rm.datastructures.ItemStructure folderDetails) -
setFolderSysTransaction
-
getFolderSysTransaction
Timestamp getFolderSysTransaction() -
getFolderSysPeriod
AbstractMap.SimpleEntry<OffsetDateTime,OffsetDateTime> getFolderSysPeriod() -
setFolderSysPeriod
-
getAudit
UUID getAudit() -
setAudit
-
adminDeleteFolder
void adminDeleteFolder()Invoke physical deletion.
-