Class ResourceUtil


  • public class ResourceUtil
    extends Object
    Created by The eXo Platform SARL .
    Version:
    $Id: $
    Author:
    Gennady Azarenkov
    • Method Detail

      • isFile

        public static boolean isFile​(javax.jcr.Node node)
        If the node is file.
        Parameters:
        node - node
        Returns:
        true if node is file false if not
      • isVersion

        public static boolean isVersion​(javax.jcr.Node node)
        If the node is version.
        Parameters:
        node - node
        Returns:
        true if node is version false if not
      • isVersioned

        public static boolean isVersioned​(javax.jcr.Node node)
        If the node is versionable.
        Parameters:
        node - node
        Returns:
        true if node is versionable false if not
      • generateEntityTag

        public static String generateEntityTag​(javax.jcr.Node node,
                                               String lastModifiedProperty)
                                        throws javax.jcr.UnsupportedRepositoryOperationException,
                                               javax.jcr.RepositoryException,
                                               ParseException
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException
        javax.jcr.RepositoryException
        ParseException