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 TypeMethodDescriptionvoid
addSubEntry
(ArchiveEntry other) boolean
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) org.apache.solr.common.SolrDocument
getDoc()
getId()
getLabel()
getLogId()
int
hashCode()
boolean
Checks whether access to the given node is allowed due to set access conditions.boolean
boolean
boolean
boolean
boolean
boolean
boolean
Checks whether access to the given node is allowed due to set access conditions.boolean
boolean
isValid()
void
markAsFound
(boolean keepChildrenVisible) void
removeSubEntry
(ArchiveEntry other) void
void
void
setAccessConditions
(List<String> accessConditions) void
setAssociatedRecordPi
(String associatedRecordPi) void
setChildrenFound
(boolean childrenFound) void
setChildrenLoaded
(boolean childrenLoaded) void
setContainsImage
(boolean containsImage) void
setDescriptionLevel
(String descriptionLevel) void
setDisplaySearch
(boolean displaySearch) void
setDisplaySearch
(boolean displaySearch, boolean recursive) void
setHierarchyLevel
(Integer hierarchyLevel) void
void
void
void
setNodeType
(String nodeType) void
setOrderNumber
(Integer orderNumber) void
setParentNode
(ArchiveEntry parentNode) void
setSearchHit
(boolean searchHit) void
setSubEntryList
(List<ArchiveEntry> subEntryList) void
setTopstructPi
(String topstructPi) void
setUnitdate
(String unitdate) void
setValid
(boolean valid) void
shiftHierarchy
(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
-