Class StorageItem

java.lang.Object
org.codelibs.fess.storage.StorageItem

public class StorageItem extends Object
Represents a storage item (file or directory).
  • Constructor Details

    • StorageItem

      public StorageItem(String name, String path, boolean directory, long size, ZonedDateTime lastModified, String encodedId)
      Creates a new StorageItem instance.
      Parameters:
      name - the name of the item
      path - the path of the item
      directory - true if this item is a directory
      size - the size of the item in bytes
      lastModified - the last modified timestamp
      encodedId - the base64-encoded ID of the item
  • Method Details

    • getName

      public String getName()
      Returns the name of the item.
      Returns:
      the item name
    • getPath

      public String getPath()
      Returns the path of the item.
      Returns:
      the item path
    • isDirectory

      public boolean isDirectory()
      Returns whether this item is a directory.
      Returns:
      true if this item is a directory, false otherwise
    • getSize

      public long getSize()
      Returns the size of the item in bytes.
      Returns:
      the item size
    • getLastModified

      public ZonedDateTime getLastModified()
      Returns the last modified timestamp.
      Returns:
      the last modified timestamp
    • getEncodedId

      public String getEncodedId()
      Returns the base64-encoded ID of the item.
      Returns:
      the encoded ID