Package org.alfresco.repo.version.common
Class VersionUtil
java.lang.Object
org.alfresco.repo.version.common.VersionUtil
Helper class containing helper methods for the versioning services.
- Author:
- Roy Wetherall
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidChecks that the names of the additional version properties are valid and that they do not clash with the reserved properties.static voidstatic NodeRefconvertNodeRef(NodeRef nodeRef) Convert the incomming node ref (with the version store protocol specified) to the internal representation with the workspace protocol.static StoreRefconvertStoreRef(StoreRef storeRef) Create Version Store Ref
-
Field Details
-
RESERVED_PROPERTY_NAMES
Reserved property names
-
-
Constructor Details
-
VersionUtil
public VersionUtil()
-
-
Method Details
-
checkVersionPropertyNames
public static void checkVersionPropertyNames(Collection<String> names) throws ReservedVersionNameException Checks that the names of the additional version properties are valid and that they do not clash with the reserved properties.- Parameters:
names- the property names- Throws:
ReservedVersionNameException
-
convertStoreRef
Create Version Store Ref- Parameters:
storeRef- ref- Returns:
- store ref for version store
-
convertNodeRef
Convert the incomming node ref (with the version store protocol specified) to the internal representation with the workspace protocol.- Parameters:
nodeRef- the incomming verison protocol node reference- Returns:
- the internal version node reference
-
convertFrozenToOriginalProps
public static void convertFrozenToOriginalProps(Map<QName, Serializable> props) throws InvalidNodeRefException- Throws:
InvalidNodeRefException
-