Class VersionUtil

java.lang.Object
org.alfresco.repo.version.common.VersionUtil

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

    • RESERVED_PROPERTY_NAMES

      public static final String[] 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

      public static StoreRef convertStoreRef(StoreRef storeRef)
      Create Version Store Ref
      Parameters:
      storeRef - ref
      Returns:
      store ref for version store
    • convertNodeRef

      public static NodeRef convertNodeRef(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<QName,Serializable> props) throws InvalidNodeRefException
      Throws:
      InvalidNodeRefException