eXo JCR :: Component :: Webdav Service 1.15.4-GA

org.exoplatform.services.jcr.webdav.resource
Class ResourceUtil

java.lang.Object
  extended by org.exoplatform.services.jcr.webdav.resource.ResourceUtil

public class ResourceUtil
extends Object

Created by The eXo Platform SARL .

Version:
$Id: $
Author:
Gennady Azarenkov

Method Summary
static String generateEntityTag(javax.jcr.Node node, String lastModifiedProperty)
           
static boolean isFile(javax.jcr.Node node)
          If the node is file.
static boolean isVersion(javax.jcr.Node node)
          If the node is version.
static boolean isVersioned(javax.jcr.Node node)
          If the node is versionable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

eXo JCR :: Component :: Webdav Service 1.15.4-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.