Author: dkatayev
Date: 2010-09-02 10:17:14 -0400 (Thu, 02 Sep 2010)
New Revision: 3049
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/PropFindCommand.java
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/dasl/SearchResultResponseEntity.java
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/deltav/report/VersionTreeResponseEntity.java
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/propfind/PropFindResponseEntity.java
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/xml/PropstatGroupedRepresentation.java
Log:
EXOJCR-935 constructor with no session added for backward compatibility
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/PropFindCommand.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/PropFindCommand.java 2010-09-02
14:07:53 UTC (rev 3048)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/PropFindCommand.java 2010-09-02
14:17:14 UTC (rev 3049)
@@ -142,11 +142,11 @@
if (request.getType().equalsIgnoreCase("allprop"))
{
- response = new PropFindResponseEntity(depth, resource, null, false, session);
+ response = new PropFindResponseEntity(depth, resource, null, false);
}
else if (request.getType().equalsIgnoreCase("propname"))
{
- response = new PropFindResponseEntity(depth, resource, null, true, session);
+ response = new PropFindResponseEntity(depth, resource, null, true);
}
else if (request.getType().equalsIgnoreCase("prop"))
{
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/dasl/SearchResultResponseEntity.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/dasl/SearchResultResponseEntity.java 2010-09-02
14:07:53 UTC (rev 3048)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/dasl/SearchResultResponseEntity.java 2010-09-02
14:17:14 UTC (rev 3049)
@@ -176,7 +176,7 @@
xmlStreamWriter.writeCharacters(URLDecoder.decode(resource.getIdentifier().toASCIIString(),
"UTF-8"));
xmlStreamWriter.writeEndElement();
- PropstatGroupedRepresentation propstat = new
PropstatGroupedRepresentation(resource, properties, false, null);
+ PropstatGroupedRepresentation propstat = new
PropstatGroupedRepresentation(resource, properties, false);
PropertyWriteUtil.writePropStats(xmlStreamWriter, propstat.getPropStats());
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/deltav/report/VersionTreeResponseEntity.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/deltav/report/VersionTreeResponseEntity.java 2010-09-02
14:07:53 UTC (rev 3048)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/deltav/report/VersionTreeResponseEntity.java 2010-09-02
14:17:14 UTC (rev 3049)
@@ -120,7 +120,7 @@
xmlStreamWriter.writeEndElement();
PropstatGroupedRepresentation propstat =
- new PropstatGroupedRepresentation(versionResource, properties, false,
null);
+ new PropstatGroupedRepresentation(versionResource, properties, false);
PropertyWriteUtil.writePropStats(xmlStreamWriter, propstat.getPropStats());
xmlStreamWriter.writeEndElement();
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/propfind/PropFindResponseEntity.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/propfind/PropFindResponseEntity.java 2010-09-02
14:07:53 UTC (rev 3048)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/propfind/PropFindResponseEntity.java 2010-09-02
14:17:14 UTC (rev 3049)
@@ -116,6 +116,11 @@
this.session = session;
}
+ public PropFindResponseEntity(int depth, Resource rootResource, Set<QName>
propertyNames, boolean propertyNamesOnly)
+ {
+ this(depth, rootResource, propertyNames, propertyNamesOnly, null);
+ }
+
/**
* {@inheritDoc}
*/
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/xml/PropstatGroupedRepresentation.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/xml/PropstatGroupedRepresentation.java 2010-09-02
14:07:53 UTC (rev 3048)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/xml/PropstatGroupedRepresentation.java 2010-09-02
14:17:14 UTC (rev 3049)
@@ -111,6 +111,11 @@
}
}
+ public PropstatGroupedRepresentation(Resource resource, Set<QName> propNames,
boolean namesOnly) throws RepositoryException
+ {
+ this(resource, propNames, namesOnly, null);
+ }
+
/**
* Returns properties statuses.
*
@@ -132,7 +137,7 @@
HierarchicalProperty prop = new HierarchicalProperty(propName);
try
{
- if (propName.equals(PropertyConstants.IS_READ_ONLY))
+ if (propName.equals(PropertyConstants.IS_READ_ONLY) && session !=
null)
{
if (isReadOnly())
{