Package io.goobi.viewer.model.archives
Class ArchiveEntry
java.lang.Object
io.goobi.viewer.model.archives.ArchiveEntry
-
Constructor Summary
ConstructorDescriptionArchiveEntry
(ArchiveEntry orig, ArchiveEntry parent) ArchiveEntry
(Integer order, Integer hierarchy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubEntry
(ArchiveEntry other) void
collapse()
Collapses this entry and hides all sub-entries.boolean
void
expand()
Expands this entry and sets all sub-entries visible if their immediate parent is expanded.void
expandUp()
Expands and sets visible all ancestors of this node and expands siblings of this node.getAncestors
(boolean includeSelf) Get the parent node hierarchy of this node, optionally including the node itself The list is sorted with hightest hierarchy level first, so the node itself will always be the last element, if includedgetAsFlatList
(boolean ignoreDisplayChildren) getFieldValue
(String field) getId()
getLabel()
int
hashCode()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isValid()
boolean
void
markAsFound
(boolean keepChildrenVisible) void
removeSubEntry
(ArchiveEntry other) void
void
void
setAccessAndUseAreaList
(List<ArchiveMetadataField> accessAndUseAreaList) void
setAlliedMaterialsAreaList
(List<ArchiveMetadataField> alliedMaterialsAreaList) void
setAssociatedRecordPi
(String associatedRecordPi) void
setContainsImage
(boolean containsImage) void
setContentAndStructureAreaAreaList
(List<ArchiveMetadataField> contentAndStructureAreaAreaList) void
setContextAreaList
(List<ArchiveMetadataField> contextAreaList) void
setDescriptionControlAreaList
(List<ArchiveMetadataField> descriptionControlAreaList) void
setDescriptionLevel
(String descriptionLevel) void
setDisplayChildren
(boolean displayChildren) void
setDisplaySearch
(boolean displaySearch) void
setDisplaySearch
(boolean displaySearch, boolean recursive) void
setExpanded
(boolean expanded) void
setHierarchyLevel
(Integer hierarchyLevel) void
void
setIdentityStatementAreaList
(List<ArchiveMetadataField> identityStatementAreaList) void
void
setNodeType
(String nodeType) void
setNotesAreaList
(List<ArchiveMetadataField> notesAreaList) void
setOrderNumber
(Integer orderNumber) void
setParentNode
(ArchiveEntry parentNode) void
setSearchHit
(boolean searchHit) void
setSubEntryList
(List<ArchiveEntry> subEntryList) void
setValid
(boolean valid) void
setVisible
(boolean visible) void
shiftHierarchy
(int offset) toString()
void
-
Constructor Details
-
ArchiveEntry
-
ArchiveEntry
-
-
Method Details
-
addSubEntry
-
removeSubEntry
-
reOrderElements
public void reOrderElements() -
getAsFlatList
- Parameters:
ignoreDisplayChildren
-- Returns:
- List
-
isHasChildren
public boolean isHasChildren() -
equals
-
hashCode
public int hashCode() -
updateHierarchy
public void updateHierarchy() -
markAsFound
public void markAsFound(boolean keepChildrenVisible) -
resetFoundList
public void resetFoundList() -
getSearchList
-
shiftHierarchy
public void shiftHierarchy(int offset) - Parameters:
offset
-
-
expandUp
public void expandUp()Expands and sets visible all ancestors of this node and expands siblings of this node. -
expand
public void expand()Expands this entry and sets all sub-entries visible if their immediate parent is expanded. -
collapse
public void collapse()Collapses this entry and hides all sub-entries. -
getParentNode
- Returns:
- the parentNode
-
setParentNode
- Parameters:
parentNode
- the parentNode to set
-
getSubEntryList
- Returns:
- the subEntryList
-
setSubEntryList
- Parameters:
subEntryList
- the subEntryList to set
-
getOrderNumber
- Returns:
- the orderNumber
-
setOrderNumber
- Parameters:
orderNumber
- the orderNumber to set
-
getHierarchyLevel
- Returns:
- the hierarchyLevel
-
setHierarchyLevel
- Parameters:
hierarchyLevel
- the hierarchyLevel to set
-
getId
- Returns:
- the id
-
setId
- Parameters:
id
- the id to set
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label
- the label to set
-
isDisplayChildren
public boolean isDisplayChildren()- Returns:
- the displayChildren
-
setDisplayChildren
public void setDisplayChildren(boolean displayChildren) - Parameters:
displayChildren
- the displayChildren to set
-
isSearchHit
public boolean isSearchHit()- Returns:
- the searchHit
-
setSearchHit
public void setSearchHit(boolean searchHit) - Parameters:
searchHit
- the searchHit to set
-
getNodeType
- Returns:
- the nodeType
-
setNodeType
- Parameters:
nodeType
- the nodeType to set
-
isDisplaySearch
public boolean isDisplaySearch()- Returns:
- the displaySearch
-
setDisplaySearch
public void setDisplaySearch(boolean displaySearch) - Parameters:
displaySearch
- the displaySearch to set
-
setDisplaySearch
public void setDisplaySearch(boolean displaySearch, boolean recursive) - Parameters:
displaySearch
-recursive
-
-
getIdentityStatementAreaField
-
getAllAreaLists
-
getIdentityStatementAreaList
- Returns:
- the identityStatementAreaList
-
setIdentityStatementAreaList
- Parameters:
identityStatementAreaList
- the identityStatementAreaList to set
-
getContextAreaList
- Returns:
- the contextAreaList
-
setContextAreaList
- Parameters:
contextAreaList
- the contextAreaList to set
-
getContentAndStructureAreaAreaList
- Returns:
- the contentAndStructureAreaAreaList
-
setContentAndStructureAreaAreaList
public void setContentAndStructureAreaAreaList(List<ArchiveMetadataField> contentAndStructureAreaAreaList) - Parameters:
contentAndStructureAreaAreaList
- the contentAndStructureAreaAreaList to set
-
getAccessAndUseAreaList
- Returns:
- the accessAndUseAreaList
-
setAccessAndUseAreaList
- Parameters:
accessAndUseAreaList
- the accessAndUseAreaList to set
-
getAlliedMaterialsAreaList
- Returns:
- the alliedMaterialsAreaList
-
setAlliedMaterialsAreaList
- Parameters:
alliedMaterialsAreaList
- the alliedMaterialsAreaList to set
-
getNotesAreaList
- Returns:
- the notesAreaList
-
setNotesAreaList
- Parameters:
notesAreaList
- the notesAreaList to set
-
getDescriptionControlAreaList
- Returns:
- the descriptionControlAreaList
-
setDescriptionControlAreaList
- Parameters:
descriptionControlAreaList
- the descriptionControlAreaList to set
-
isValid
public boolean isValid()- Returns:
- the valid
-
setValid
public void setValid(boolean valid) - Parameters:
valid
- the valid to set
-
getDescriptionLevel
- Returns:
- the descriptionLevel
-
setDescriptionLevel
- Parameters:
descriptionLevel
- the descriptionLevel to set
-
isVisible
public boolean isVisible()- Returns:
- the visible
-
setVisible
public void setVisible(boolean visible) - Parameters:
visible
- the visible to set
-
isExpanded
public boolean isExpanded()- Returns:
- the expanded
-
setExpanded
public void setExpanded(boolean expanded) - Parameters:
expanded
- the expanded to set
-
isHasChild
public boolean isHasChild()- Returns:
- the hasChild
-
getAssociatedRecordPi
- Returns:
- the associatedRecordPi
-
setAssociatedRecordPi
- Parameters:
associatedRecordPi
- the associatedRecordPi to set
-
getAncestors
Get the parent node hierarchy of this node, optionally including the node itself The list is sorted with hightest hierarchy level first, so the node itself will always be the last element, if included- Parameters:
includeSelf
-- Returns:
- List
-
toString
-
isContainsImage
public boolean isContainsImage() -
setContainsImage
public void setContainsImage(boolean containsImage) -
getFieldValue
-