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

org.exoplatform.services.jcr.webdav.command.proppatch
Class PropPatchResponseEntity

java.lang.Object
  extended by org.exoplatform.services.jcr.webdav.command.proppatch.PropPatchResponseEntity
All Implemented Interfaces:
javax.ws.rs.core.StreamingOutput

public class PropPatchResponseEntity
extends Object
implements javax.ws.rs.core.StreamingOutput

Created by The eXo Platform SAS. Author : Vitaly Guly

Version:
$Id: $

Field Summary
protected static Set<QName> NON_REMOVING_PROPS
          The list of properties that can-not be removed.
protected static Set<QName> READ_ONLY_PROPS
          The list of properties that can-not be changed.
 
Constructor Summary
PropPatchResponseEntity(WebDavNamespaceContext nsContext, javax.jcr.Node node, URI uri, List<org.exoplatform.common.util.HierarchicalProperty> setList, List<org.exoplatform.common.util.HierarchicalProperty> removeList)
          Constructor.
 
Method Summary
 javax.jcr.Node getContentNode()
          Gets the content node.
protected  Map<String,Set<org.exoplatform.common.util.HierarchicalProperty>> getPropStat()
          Performs manipulations with properties and returns the list of corresponding statuses.
 void write(OutputStream outStream)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NON_REMOVING_PROPS

protected static final Set<QName> NON_REMOVING_PROPS
The list of properties that can-not be removed.


READ_ONLY_PROPS

protected static final Set<QName> READ_ONLY_PROPS
The list of properties that can-not be changed.

Constructor Detail

PropPatchResponseEntity

public PropPatchResponseEntity(WebDavNamespaceContext nsContext,
                               javax.jcr.Node node,
                               URI uri,
                               List<org.exoplatform.common.util.HierarchicalProperty> setList,
                               List<org.exoplatform.common.util.HierarchicalProperty> removeList)
Constructor.

Parameters:
nsContext - namespace context
node - node
uri - iru
setList - list of properties to set
removeList - list of properties to remove
Method Detail

write

public void write(OutputStream outStream)
           throws IOException

Specified by:
write in interface javax.ws.rs.core.StreamingOutput
Throws:
IOException

getPropStat

protected Map<String,Set<org.exoplatform.common.util.HierarchicalProperty>> getPropStat()
Performs manipulations with properties and returns the list of corresponding statuses.

Returns:
map with the list of properties statuses

getContentNode

public javax.jcr.Node getContentNode()
                              throws javax.jcr.RepositoryException
Gets the content node.

Returns:
content node
Throws:
javax.jcr.RepositoryException - Repository exception.

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

Copyright © 2014 eXo Platform SAS. All Rights Reserved.