java.lang.Object
org.exoplatform.documents.storage.jcr.webdav.cache.elasticsearch.entity.WebDavItemEntity

public class WebDavItemEntity extends Object
  • Constructor Details

    • WebDavItemEntity

      public WebDavItemEntity(org.exoplatform.documents.webdav.model.WebDavItem webDavItem)
    • WebDavItemEntity

      public WebDavItemEntity(String webDavPath, String jcrPath, boolean file, List<org.exoplatform.documents.webdav.model.WebDavItemProperty> properties)
  • Method Details

    • getUsernames

      public Set<String> getUsernames()
      Returns:
      the users for whom this row already holds computed properties. A user absent from it has never had this item computed against their own JCR session, so the row must be refreshed before it is served to them (CachedJcrWebDavService#isMustRefreshItem).
    • getUserProperties

      public List<WebDavItemPropertyEntity> getUserProperties(String username)
      Parameters:
      username - the reading user
      Returns:
      that user's own properties for this item, empty when the row does not hold them yet
    • toWebDavItem

      public org.exoplatform.documents.webdav.model.WebDavItem toWebDavItem()
      Returns:
      the cached item, with a null identifier: the absolute href is not persisted here and is rebuilt by CachedJcrWebDavService from the base URI of the current request. This row is keyed by the drive-relative WebDAV path only, so it is shared by the drive-list mount and the single-drive mount, which do not have the same base URI.