Class JcrDatastoreManager.DatastorePathView
- java.lang.Object
-
- org.silverpeas.core.persistence.jcr.JcrDatastoreManager.DatastorePathView
-
- Enclosing class:
- JcrDatastoreManager
public static class JcrDatastoreManager.DatastorePathView extends Object
Some data about the Path of the JCR DataStore.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DatastorePathView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Long>
getContentSize()
Gets the size, in bytes, of elements contained into Datastore path.String
getPathWithVariable()
Gets the path with $SILVERPEAS_DATA_HOME environment variable.boolean
isValid()
Indicates that the path is valid.void
notifyChanges()
-
-
-
Method Detail
-
getPathWithVariable
public String getPathWithVariable()
Gets the path with $SILVERPEAS_DATA_HOME environment variable.This is for displaying purpose.
- Returns:
- a string representing a path.
-
isValid
public boolean isValid()
Indicates that the path is valid.- Returns:
- true if valid, false otherwise.
-
getContentSize
public Optional<Long> getContentSize()
Gets the size, in bytes, of elements contained into Datastore path.If the optional is empty, that is because it has not be yet computed, but
- Returns:
- an optional size of the JCR Datastore path content.
-
notifyChanges
public void notifyChanges()
-
-