Interface I_FolderAccess
-
- All Superinterfaces:
I_VersionedCRUD
- All Known Implementing Classes:
FolderAccess,FolderHistoryAccess
public interface I_FolderAccess extends I_VersionedCRUD
Data Access Object for CRUD operations on instances ofFolder.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadminDeleteFolder()Invoke physical deletion.UUIDgetAudit()StringgetFolderArchetypeNodeId()com.nedap.archie.rm.datastructures.ItemStructuregetFolderDetails()UUIDgetFolderId()StringgetFolderName()AbstractMap.SimpleEntry<OffsetDateTime,OffsetDateTime>getFolderSysPeriod()TimestampgetFolderSysTransaction()UUIDgetInContribution()static 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)Builds theI_FolderAccessfor persisting theFolderprovided as param.Map<UUID,I_FolderAccess>getSubfoldersList()Get the list of subfolders for theFolderthat corresponds to thisI_FolderAccessbooleanisFolderActive()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)voidsetAudit(UUID auditId)voidsetFolderDetails(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)
-
-
-
Method Detail
-
getSubfoldersList
Map<UUID,I_FolderAccess> getSubfoldersList()
Get the list of subfolders for theFolderthat corresponds to thisI_FolderAccess- Returns:
- Map
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)
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
static I_FolderAccess retrieveInstanceForExistingFolder(I_DomainAccess domainAccess, UUID folderId)
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
void setFolderId(UUID folderId)
-
getInContribution
UUID getInContribution()
-
setInContribution
void setInContribution(UUID inContribution)
-
getFolderName
String getFolderName()
-
setFolderName
void setFolderName(String folderName)
-
getFolderArchetypeNodeId
String getFolderArchetypeNodeId()
-
setFolderNArchetypeNodeId
void setFolderNArchetypeNodeId(String folderArchetypeNodeId)
-
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
void setFolderSysTransaction(Timestamp folderSysTransaction)
-
getFolderSysTransaction
Timestamp getFolderSysTransaction()
-
getFolderSysPeriod
AbstractMap.SimpleEntry<OffsetDateTime,OffsetDateTime> getFolderSysPeriod()
-
setFolderSysPeriod
void setFolderSysPeriod(AbstractMap.SimpleEntry<OffsetDateTime,OffsetDateTime> folderSysPeriod)
-
getAudit
UUID getAudit()
-
setAudit
void setAudit(UUID auditId)
-
adminDeleteFolder
void adminDeleteFolder()
Invoke physical deletion.
-
-