Interface I_FolderAccess
-
- All Superinterfaces:
I_SimpleCRUD
- All Known Implementing Classes:
FolderAccess,FolderHistoryAccess
public interface I_FolderAccess extends I_SimpleCRUD
Data Access Object for CRUD operations on instances ofFolder.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDcommit(Timestamp transactionTime, UUID contributionId)Additional commit method to store a new entry of folder to the database and get all of inserted sub folders connected by one contribution which has been created before.com.nedap.archie.rm.datastructures.ItemStructuregetDetails()Get the details stored as a part of the givenFolderStringgetFolderArchetypeNodeId()com.nedap.archie.rm.datastructures.ItemStructuregetFolderDetails()UUIDgetFolderId()StringgetFolderName()AbstractMap.SimpleEntry<OffsetDateTime,OffsetDateTime>getFolderSysPeriod()TimestampgetFolderSysTransaction()UUIDgetInContribution()List<com.nedap.archie.rm.support.identification.ObjectRef>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 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)voidsetDetails(com.nedap.archie.rm.datastructures.ItemStructure details)Set the details stored as a part of the givenFoldervoidsetFolderDetails(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
-
setDetails
void setDetails(com.nedap.archie.rm.datastructures.ItemStructure details)
Set the details stored as a part of the givenFolder- Parameters:
details-
-
getDetails
com.nedap.archie.rm.datastructures.ItemStructure getDetails()
Get the details stored as a part of the givenFolder- Returns:
- details of the
Folderthat corresponds to thisI_FolderAccess
-
getItems
List<com.nedap.archie.rm.support.identification.ObjectRef> 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)
-
commit
UUID commit(Timestamp transactionTime, UUID contributionId)
Additional commit method to store a new entry of folder to the database and get all of inserted sub folders connected by one contribution which has been created before.- Parameters:
transactionTime- - Timestamp which will be applied to all folder sys_transaction valuescontributionId- - ID of contribution for CREATE applied to all folders that will be created- Returns:
- UUID of the new created root folder
-
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)
-
-