com.jalios.jcms.webdav
Class WebdavPropertyManager

java.lang.Object
  extended by com.jalios.jcms.webdav.WebdavPropertyManager

public class WebdavPropertyManager
extends Object


Field Summary
static Map<String,Map<String,WebdavProperty>> memoryProperties
          This is an in Memory Property manager used to handle PROPPATCH even if JCMS will handle it
 
Constructor Summary
WebdavPropertyManager()
           
 
Method Summary
static void addProperty(WebdavProperty property, String resourcePath)
          Add a property for the given resource path
static void copyProperties(String sourcePath, String targetPath)
          Copy all properties from a given resource to another.
static Set<WebdavProperty> getProperties(String resourcePath)
          Return all the properties for a given resource
static WebdavProperty getProperty(WebdavProperty propertyModel, String resourcePath)
          Retrieve the in memory property instance matching the specified property model for the given resource path
static void moveProperties(String sourcePath, String targetPath)
          Move all properties from a given resource to another.
static void removeProperties(String resourcePath)
          Remove all properties for a given resource
static void removeProperty(WebdavProperty property, String resourcePath)
          Remove a property for the given resource path
static void setProperties(String resourcePath, Set<WebdavProperty> properties)
          Overrided properties for a given resource path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

memoryProperties

public static final Map<String,Map<String,WebdavProperty>> memoryProperties
This is an in Memory Property manager used to handle PROPPATCH even if JCMS will handle it

Constructor Detail

WebdavPropertyManager

public WebdavPropertyManager()
Method Detail

addProperty

public static void addProperty(WebdavProperty property,
                               String resourcePath)
Add a property for the given resource path

Parameters:
property - the property to add
resourcePath - the path of the resource

getProperty

public static WebdavProperty getProperty(WebdavProperty propertyModel,
                                         String resourcePath)
Retrieve the in memory property instance matching the specified property model for the given resource path

Parameters:
propertyModel - the property to find (its value is not used)
resourcePath - the path of the resource
Returns:
the matching property stored in memory (with the correct value)

removeProperty

public static void removeProperty(WebdavProperty property,
                                  String resourcePath)
Remove a property for the given resource path

Parameters:
property - the property to remove
resourcePath - the path of the resource

setProperties

public static void setProperties(String resourcePath,
                                 Set<WebdavProperty> properties)
Overrided properties for a given resource path

Parameters:
resourcePath - the path of the resource
properties - the Map of properties

getProperties

public static Set<WebdavProperty> getProperties(String resourcePath)
Return all the properties for a given resource

Parameters:
resourcePath - the path of the resource
Returns:
Map the map of properties

removeProperties

public static void removeProperties(String resourcePath)
Remove all properties for a given resource

Parameters:
resourcePath - the path of the resource

moveProperties

public static void moveProperties(String sourcePath,
                                  String targetPath)
Move all properties from a given resource to another.

Parameters:
sourcePath - the path of the source resource from which properties will be removed
targetPath - the path of the target resource to which properties will be added

copyProperties

public static void copyProperties(String sourcePath,
                                  String targetPath)
Copy all properties from a given resource to another.

Parameters:
sourcePath - the path of the source resource from which properties are copied
targetPath - the path of the target resource to which properties will be added


Copyright © 2001-2010 Jalios SA. All Rights Reserved.