Package io.goobi.viewer.model.archives
Class ArchiveEntry
java.lang.Object
io.goobi.viewer.model.archives.ArchiveEntry
- All Implemented Interfaces:
Serializable
Single archive tree node.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveEntry(ArchiveEntry orig, ArchiveEntry parent) ArchiveEntry(Integer order, Integer hierarchy, org.apache.solr.common.SolrDocument doc) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubEntry(ArchiveEntry other) booleangetAncestors(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 included.getAsFlatList(boolean ignoreDisplayChildren) org.apache.solr.common.SolrDocumentgetDoc()getId()getLabel()getLogId()inthashCode()booleanChecks whether access to the given node is allowed due to set access conditions.booleanbooleanbooleanbooleanbooleanbooleanbooleanChecks whether access to the given node is allowed due to set access conditions.booleanbooleanisValid()voidmarkAsFound(boolean keepChildrenVisible) voidremoveSubEntry(ArchiveEntry other) voidvoidvoidsetAccessConditions(List<String> accessConditions) voidsetAssociatedRecordPi(String associatedRecordPi) voidsetChildrenFound(boolean childrenFound) voidsetChildrenLoaded(boolean childrenLoaded) voidsetContainsImage(boolean containsImage) voidsetDescriptionLevel(String descriptionLevel) voidsetDisplaySearch(boolean displaySearch) voidsetDisplaySearch(boolean displaySearch, boolean recursive) voidsetHierarchyLevel(Integer hierarchyLevel) voidvoidvoidvoidsetNodeType(String nodeType) voidsetOrderNumber(Integer orderNumber) voidsetParentNode(ArchiveEntry parentNode) voidsetSearchHit(boolean searchHit) voidsetSubEntryList(List<ArchiveEntry> subEntryList) voidsetTopstructPi(String topstructPi) voidsetUnitdate(String unitdate) voidsetValid(boolean valid) voidshiftHierarchy(int offset) toString()void
-
Constructor Details
-
ArchiveEntry
- Parameters:
order- position of this node within its parent's childrenhierarchy- depth level of this node in the treedoc- Solr document representing this archive entry
-
ArchiveEntry
- Parameters:
orig- the entry to copy all fields fromparent- the parent node in the cloned tree
-
-
Method Details
-
addSubEntry
-
removeSubEntry
-
reOrderElements
public void reOrderElements() -
getAsFlatList
- Parameters:
ignoreDisplayChildren- if true, recurse into children regardless of their display state- Returns:
- List
LinkedList containing all nodes
-
isHasChildren
public boolean isHasChildren() -
updateHierarchy
public void updateHierarchy() -
markAsFound
public void markAsFound(boolean keepChildrenVisible) -
resetFoundList
public void resetFoundList() -
getSearchList
-
shiftHierarchy
public void shiftHierarchy(int offset) - Parameters:
offset- value added to the hierarchy level of this node and all descendants
-
getRootNode
- Returns:
- Root node
-
getParentNode
-
setParentNode
-
getSubEntryList
-
setSubEntryList
-
getOrderNumber
-
setOrderNumber
-
getHierarchyLevel
-
setHierarchyLevel
-
getId
-
setId
-
getLabel
-
setLabel
-
getTopstructPi
-
setTopstructPi
-
getLogId
-
setLogId
-
isSearchHit
public boolean isSearchHit() -
setSearchHit
public void setSearchHit(boolean searchHit) -
getNodeType
-
setNodeType
-
isDisplaySearch
public boolean isDisplaySearch() -
setDisplaySearch
public void setDisplaySearch(boolean displaySearch) -
setDisplaySearch
public void setDisplaySearch(boolean displaySearch, boolean recursive) - Parameters:
displaySearch- the display-in-search-results flag to setrecursive- if true, apply the flag to all descendant nodes as well
-
isAccessAllowed
public boolean isAccessAllowed()Checks whether access to the given node is allowed due to set access conditions.- Returns:
- true if access granted; false otherwise
-
isImageAccessAllowed
public boolean isImageAccessAllowed()Checks whether access to the given node is allowed due to set access conditions.- Returns:
- true if access granted; false otherwise
-
isValid
public boolean isValid() -
setValid
public void setValid(boolean valid) -
getDescriptionLevel
-
setDescriptionLevel
-
getUnitdate
-
setUnitdate
-
getAccessConditions
-
setAccessConditions
-
isHasChild
public boolean isHasChild() -
getAssociatedRecordPi
-
setAssociatedRecordPi
-
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- if true, this node is appended at the end of the list- Returns:
- List
-
isContainsImage
public boolean isContainsImage() -
setContainsImage
public void setContainsImage(boolean containsImage) -
getDoc
public org.apache.solr.common.SolrDocument getDoc() -
isChildrenFound
public boolean isChildrenFound() -
setChildrenFound
public void setChildrenFound(boolean childrenFound) -
isChildrenLoaded
public boolean isChildrenLoaded() -
setChildrenLoaded
public void setChildrenLoaded(boolean childrenLoaded) -
equals
-
hashCode
public int hashCode() -
toString
-