Class Item

java.lang.Object
nl.knaw.dans.layerstore.Item

public class Item extends Object
A file or directory in the layer store. It may be represented by multiple ItemRecords in the database, one for each layer that contains the item. Note that to obtain the current (i.e., latest) content of a File item, you need to retrieve the ItemRecord with the highest layerId.
  • Method Details

    • builder

      public static Item.ItemBuilder builder()
    • getPath

      public String getPath()
      The path of the item. The path is relative to the root of the ItemStore. Note that directory paths should not end with a slash.
    • getType

      public Item.Type getType()
      The type of the item.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object