jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1446074 - /jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/DatasetRef.java
Date Thu, 14 Feb 2013 09:04:48 GMT
Author: andy
Date: Thu Feb 14 09:04:48 2013
New Revision: 1446074

URL: http://svn.apache.org/r1446074
Log:
Test whether a DaatsetRef is read-only.

Modified:
    jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/DatasetRef.java

Modified: jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/DatasetRef.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/DatasetRef.java?rev=1446074&r1=1446073&r2=1446074&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/DatasetRef.java (original)
+++ jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/DatasetRef.java Thu
Feb 14 09:04:48 2013
@@ -39,4 +39,13 @@ public class DatasetRef
     
     public boolean allowTimeoutOverride         = false;
     public long maximumTimeoutOverride          = Long.MAX_VALUE;
+    
+    public boolean isReadOnly()
+    {
+        return updateEP.size() == 0 && 
+               uploadEP.size() == 0 &&
+               readWriteGraphStoreEP.size() == 0 &&
+               !allowDatasetUpdate ;
+    }
+    
 }



Mime
View raw message