clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bblf...@apache.org
Subject svn commit: r1099887 - /incubator/clerezza/trunk/parent/rdf.web.proxy/rdf.web.proxy.core/src/main/scala/org/apache/clerezza/rdf/web/proxy/WebProxy.scala
Date Thu, 05 May 2011 17:36:47 GMT
Author: bblfish
Date: Thu May  5 17:36:47 2011
New Revision: 1099887

URL: http://svn.apache.org/viewvc?rev=1099887&view=rev
Log:
fix for CLEREZZA-506 - but it feels like more thought is needed

Modified:
    incubator/clerezza/trunk/parent/rdf.web.proxy/rdf.web.proxy.core/src/main/scala/org/apache/clerezza/rdf/web/proxy/WebProxy.scala

Modified: incubator/clerezza/trunk/parent/rdf.web.proxy/rdf.web.proxy.core/src/main/scala/org/apache/clerezza/rdf/web/proxy/WebProxy.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/rdf.web.proxy/rdf.web.proxy.core/src/main/scala/org/apache/clerezza/rdf/web/proxy/WebProxy.scala?rev=1099887&r1=1099886&r2=1099887&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/rdf.web.proxy/rdf.web.proxy.core/src/main/scala/org/apache/clerezza/rdf/web/proxy/WebProxy.scala
(original)
+++ incubator/clerezza/trunk/parent/rdf.web.proxy/rdf.web.proxy.core/src/main/scala/org/apache/clerezza/rdf/web/proxy/WebProxy.scala
Thu May  5 17:36:47 2011
@@ -29,6 +29,7 @@ import org.apache.clerezza.rdf.core.acce
 import org.apache.clerezza.rdf.core.serializedform.SupportedFormat
 import org.apache.clerezza.rdf.core.serializedform.Parser
 import org.apache.clerezza.platform.typerendering.WebRenderingService
+import org.apache.clerezza.rdf.core.access.security.TcPermission
 
 
 /**
@@ -135,7 +136,13 @@ class WebProxy {
 			val g = tcManager.getMGraph(graphUriRef)
 			g
 		} catch {
-			case e: NoSuchEntityException => tcManager.createMGraph(graphUriRef)
+			case e: NoSuchEntityException => {
+				import scala.collection.JavaConversions._
+				tcManager.getTcAccessController.
+					setRequiredReadPermissionStrings(graphUriRef,
+					List(new TcPermission(Constants.CONTENT_GRAPH_URI_STRING, TcPermission.READ).toString))
+				   tcManager.createMGraph(graphUriRef)
+			}
 		}
 
 



Mime
View raw message