Class WebDavItemEntity
java.lang.Object
org.exoplatform.documents.storage.jcr.webdav.cache.elasticsearch.entity.WebDavItemEntity
-
Constructor Summary
ConstructorsConstructorDescriptionWebDavItemEntity(String webDavPath, String jcrPath, boolean file, List<org.exoplatform.documents.webdav.model.WebDavItemProperty> properties) WebDavItemEntity(org.exoplatform.documents.webdav.model.WebDavItem webDavItem) -
Method Summary
Modifier and TypeMethodDescriptiongetUserProperties(String username) org.exoplatform.documents.webdav.model.WebDavItem
-
Constructor Details
-
WebDavItemEntity
public WebDavItemEntity(org.exoplatform.documents.webdav.model.WebDavItem webDavItem) -
WebDavItemEntity
-
-
Method Details
-
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
- 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
CachedJcrWebDavServicefrom 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.
-