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 includedgetAsFlatList(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-hierarchy-doc-
-
ArchiveEntry
- Parameters:
orig-parent-
-
-
Method Details
-
addSubEntry
-
removeSubEntry
-
reOrderElements
public void reOrderElements() -
getAsFlatList
- Parameters:
ignoreDisplayChildren-- 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-
-
getRootNode
- Returns:
- Root node
-
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
-
getTopstructPi
- Returns:
- the topstructPi
-
setTopstructPi
- Parameters:
topstructPi- the topstructPi to set
-
getLogId
- Returns:
- the logId
-
setLogId
- Parameters:
logId- the logId 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-
-
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()- 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
-
getUnitdate
- Returns:
- the unitdate
-
setUnitdate
-
getAccessConditions
- Returns:
- the accessConditions
-
setAccessConditions
- Parameters:
accessConditions- the accessConditions 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
-
isContainsImage
public boolean isContainsImage() -
setContainsImage
public void setContainsImage(boolean containsImage) -
getDoc
public org.apache.solr.common.SolrDocument getDoc()- Returns:
- the doc
-
isChildrenFound
public boolean isChildrenFound()- Returns:
- the childrenFound
-
setChildrenFound
public void setChildrenFound(boolean childrenFound) - Parameters:
childrenFound- the childrenFound to set
-
isChildrenLoaded
public boolean isChildrenLoaded()- Returns:
- the childrenLoaded
-
setChildrenLoaded
public void setChildrenLoaded(boolean childrenLoaded) - Parameters:
childrenLoaded- the childrenLoaded to set
-
equals
-
hashCode
public int hashCode() -
toString
-