Class VersionUtil


  • public class VersionUtil
    extends Object
    Helper class containing helper methods for the versioning services.
    Author:
    Roy Wetherall
    • Field Detail

      • RESERVED_PROPERTY_NAMES

        public static final String[] RESERVED_PROPERTY_NAMES
        Reserved property names
    • Constructor Detail

      • VersionUtil

        public VersionUtil()
    • Method Detail

      • convertStoreRef

        public static org.alfresco.service.cmr.repository.StoreRef convertStoreRef​(org.alfresco.service.cmr.repository.StoreRef storeRef)
        Create Version Store Ref
        Parameters:
        storeRef - ref
        Returns:
        store ref for version store
      • convertNodeRef

        public static org.alfresco.service.cmr.repository.NodeRef convertNodeRef​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        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<org.alfresco.service.namespace.QName,​Serializable> props)
                                                 throws org.alfresco.service.cmr.repository.InvalidNodeRefException
        Throws:
        org.alfresco.service.cmr.repository.InvalidNodeRefException