Merged DEV_TEMPORARY to HEAD

18288: ENH-678: alfresco webdav does not pass litmus webdav test suite

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2010-01-27 12:56:18 +00:00
parent 3dfdf48af4
commit e2f0615f86
14 changed files with 1742 additions and 711 deletions

View File

@@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletResponse;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.service.cmr.model.FileInfo;
import org.alfresco.service.cmr.model.FileNotFoundException;
import org.alfresco.service.cmr.repository.NodeRef;
import org.dom4j.DocumentHelper;
import org.dom4j.io.XMLWriter;
import org.w3c.dom.Document;
@@ -69,6 +68,8 @@ public class PropPatchMethod extends PropFindMethod
throw new WebDAVServerException(HttpServletResponse.SC_NOT_FOUND);
}
checkNode(pathNodeInfo);
// Set the response content type
m_response.setContentType(WebDAV.XML_CONTENT_TYPE);
@@ -353,14 +354,29 @@ public class PropPatchMethod extends PropFindMethod
}
/**
* Stores information about PROPPATCH action(set or remove) an according property.
*
* @author Ivan Rybnikov
*/
private class PropertyAction
{
protected static final int SET = 0;
protected static final int REMOVE = 1;
// Property on which action should be performed
private WebDAVProperty property;
// Action
private int action;
/**
* Constructor
*
* @param action
* @param property
*/
public PropertyAction(int action, WebDAVProperty property)
{
this.action = action;