Class ArchiveEntry

java.lang.Object
io.goobi.viewer.model.archives.ArchiveEntry
All Implemented Interfaces:
Serializable

public class ArchiveEntry extends Object implements Serializable
Single archive tree node.
See Also:
  • Constructor Details Link icon

    • ArchiveEntry Link icon

      public ArchiveEntry(Integer order, Integer hierarchy, org.apache.solr.common.SolrDocument doc)
      Parameters:
      order -
      hierarchy -
      doc -
    • ArchiveEntry Link icon

      public ArchiveEntry(ArchiveEntry orig, ArchiveEntry parent)
      Parameters:
      orig -
      parent -
  • Method Details Link icon

    • addSubEntry Link icon

      public void addSubEntry(ArchiveEntry other)
    • removeSubEntry Link icon

      public void removeSubEntry(ArchiveEntry other)
    • reOrderElements Link icon

      public void reOrderElements()
    • getAsFlatList Link icon

      public List<ArchiveEntry> getAsFlatList(boolean ignoreDisplayChildren)
      Parameters:
      ignoreDisplayChildren -
      Returns:
      List LinkedList containing all nodes
    • isHasChildren Link icon

      public boolean isHasChildren()
    • updateHierarchy Link icon

      public void updateHierarchy()
    • markAsFound Link icon

      public void markAsFound(boolean keepChildrenVisible)
    • resetFoundList Link icon

      public void resetFoundList()
    • getSearchList Link icon

      public List<ArchiveEntry> getSearchList()
    • shiftHierarchy Link icon

      public void shiftHierarchy(int offset)
      Parameters:
      offset -
    • getRootNode Link icon

      public ArchiveEntry getRootNode()
      Returns:
      Root node
    • getParentNode Link icon

      public ArchiveEntry getParentNode()
      Returns:
      the parentNode
    • setParentNode Link icon

      public void setParentNode(ArchiveEntry parentNode)
      Parameters:
      parentNode - the parentNode to set
    • getSubEntryList Link icon

      public List<ArchiveEntry> getSubEntryList()
      Returns:
      the subEntryList
    • setSubEntryList Link icon

      public void setSubEntryList(List<ArchiveEntry> subEntryList)
      Parameters:
      subEntryList - the subEntryList to set
    • getOrderNumber Link icon

      public Integer getOrderNumber()
      Returns:
      the orderNumber
    • setOrderNumber Link icon

      public void setOrderNumber(Integer orderNumber)
      Parameters:
      orderNumber - the orderNumber to set
    • getHierarchyLevel Link icon

      public Integer getHierarchyLevel()
      Returns:
      the hierarchyLevel
    • setHierarchyLevel Link icon

      public void setHierarchyLevel(Integer hierarchyLevel)
      Parameters:
      hierarchyLevel - the hierarchyLevel to set
    • getId Link icon

      public String getId()
      Returns:
      the id
    • setId Link icon

      public void setId(String id)
      Parameters:
      id - the id to set
    • getLabel Link icon

      public String getLabel()
      Returns:
      the label
    • setLabel Link icon

      public void setLabel(String label)
      Parameters:
      label - the label to set
    • getTopstructPi Link icon

      public String getTopstructPi()
      Returns:
      the topstructPi
    • setTopstructPi Link icon

      public void setTopstructPi(String topstructPi)
      Parameters:
      topstructPi - the topstructPi to set
    • getLogId Link icon

      public String getLogId()
      Returns:
      the logId
    • setLogId Link icon

      public void setLogId(String logId)
      Parameters:
      logId - the logId to set
    • isSearchHit Link icon

      public boolean isSearchHit()
      Returns:
      the searchHit
    • setSearchHit Link icon

      public void setSearchHit(boolean searchHit)
      Parameters:
      searchHit - the searchHit to set
    • getNodeType Link icon

      public String getNodeType()
      Returns:
      the nodeType
    • setNodeType Link icon

      public void setNodeType(String nodeType)
      Parameters:
      nodeType - the nodeType to set
    • isDisplaySearch Link icon

      public boolean isDisplaySearch()
      Returns:
      the displaySearch
    • setDisplaySearch Link icon

      public void setDisplaySearch(boolean displaySearch)
      Parameters:
      displaySearch - the displaySearch to set
    • setDisplaySearch Link icon

      public void setDisplaySearch(boolean displaySearch, boolean recursive)
      Parameters:
      displaySearch -
      recursive -
    • isAccessAllowed Link icon

      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 Link icon

      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 Link icon

      public boolean isValid()
      Returns:
      the valid
    • setValid Link icon

      public void setValid(boolean valid)
      Parameters:
      valid - the valid to set
    • getDescriptionLevel Link icon

      public String getDescriptionLevel()
      Returns:
      the descriptionLevel
    • setDescriptionLevel Link icon

      public void setDescriptionLevel(String descriptionLevel)
      Parameters:
      descriptionLevel - the descriptionLevel to set
    • getUnitdate Link icon

      public String getUnitdate()
      Returns:
      the unitdate
    • setUnitdate Link icon

      public void setUnitdate(String unitdate)
    • getAccessConditions Link icon

      public List<String> getAccessConditions()
      Returns:
      the accessConditions
    • setAccessConditions Link icon

      public void setAccessConditions(List<String> accessConditions)
      Parameters:
      accessConditions - the accessConditions to set
    • isHasChild Link icon

      public boolean isHasChild()
      Returns:
      the hasChild
    • getAssociatedRecordPi Link icon

      public String getAssociatedRecordPi()
      Returns:
      the associatedRecordPi
    • setAssociatedRecordPi Link icon

      public void setAssociatedRecordPi(String associatedRecordPi)
      Parameters:
      associatedRecordPi - the associatedRecordPi to set
    • getAncestors Link icon

      public List<ArchiveEntry> 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 included
      Parameters:
      includeSelf -
      Returns:
      List
    • isContainsImage Link icon

      public boolean isContainsImage()
    • setContainsImage Link icon

      public void setContainsImage(boolean containsImage)
    • getDoc Link icon

      public org.apache.solr.common.SolrDocument getDoc()
      Returns:
      the doc
    • isChildrenFound Link icon

      public boolean isChildrenFound()
      Returns:
      the childrenFound
    • setChildrenFound Link icon

      public void setChildrenFound(boolean childrenFound)
      Parameters:
      childrenFound - the childrenFound to set
    • isChildrenLoaded Link icon

      public boolean isChildrenLoaded()
      Returns:
      the childrenLoaded
    • setChildrenLoaded Link icon

      public void setChildrenLoaded(boolean childrenLoaded)
      Parameters:
      childrenLoaded - the childrenLoaded to set
    • equals Link icon

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object