public class VersionHistoryUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LIST_VERSION_PROPERTY |
protected static org.exoplatform.services.log.Log |
log |
static String |
MAX_VERSION_PROPERTY |
static String |
MIX_DISPLAY_VERSION_NAME |
static String |
MIX_VERSIONABLE |
static String |
NT_FILE |
static String |
VERSION_SEPARATOR |
| Constructor and Description |
|---|
VersionHistoryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static javax.jcr.version.Version |
createVersion(javax.jcr.Node nodeVersioning)
Create new version and clear redundant versions
|
static void |
removeVersion(javax.jcr.Node node,
String versionName)
remove version
|
protected static final org.exoplatform.services.log.Log log
public static final String NT_FILE
public static final String MIX_VERSIONABLE
public static final String MIX_DISPLAY_VERSION_NAME
public static final String MAX_VERSION_PROPERTY
public static final String LIST_VERSION_PROPERTY
public static final String VERSION_SEPARATOR
public static javax.jcr.version.Version createVersion(javax.jcr.Node nodeVersioning)
throws Exception
nodeVersioning - Exceptionpublic static void removeVersion(javax.jcr.Node node,
String versionName)
throws javax.jcr.RepositoryException
node - root NodeversionName - version name to removejavax.jcr.RepositoryExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.