Author: reto
Date: Tue Jul 27 08:05:50 2010
New Revision: 979575

URL: http://svn.apache.org/viewvc?rev=979575&view=rev
Log:
CLEREZZA-218: added comments

Modified:
    
incubator/clerezza/issues/CLEREZZA-218/org.apache.clerezza.platform.enrichment/src/main/java/org/apache/clerezza/platform/rdf/enrichment/EnrichmentTcProvider.java

Modified: 
incubator/clerezza/issues/CLEREZZA-218/org.apache.clerezza.platform.enrichment/src/main/java/org/apache/clerezza/platform/rdf/enrichment/EnrichmentTcProvider.java
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-218/org.apache.clerezza.platform.enrichment/src/main/java/org/apache/clerezza/platform/rdf/enrichment/EnrichmentTcProvider.java?rev=979575&r1=979574&r2=979575&view=diff
==============================================================================
--- 
incubator/clerezza/issues/CLEREZZA-218/org.apache.clerezza.platform.enrichment/src/main/java/org/apache/clerezza/platform/rdf/enrichment/EnrichmentTcProvider.java
 (original)
+++ 
incubator/clerezza/issues/CLEREZZA-218/org.apache.clerezza.platform.enrichment/src/main/java/org/apache/clerezza/platform/rdf/enrichment/EnrichmentTcProvider.java
 Tue Jul 27 08:05:50 2010
@@ -50,15 +50,14 @@ import org.apache.felix.scr.annotations.
  * containing the enrichments provided by all available services of type 
  * Enricher on the content graph.
  *
- *
- * @author reto
- */
-/* Possible performance enhancement:
  * For performance reasons EnrichmentTcProvider gets the content-graph from
  * TcManager and doesn't do access control check on every request, to prevent
- * deductions about the content of the content graph by unathorized users
+ * deductions about the content of the content graph by unauthorized users
  * the required permissions on the enrichment graph are set to those on the
  * content graph.
+ *
+ *
+ * @author reto
  */
 @Component
 @Service(WeightedTcProvider.class)
@@ -147,13 +146,28 @@ public class EnrichmentTcProvider implem
                return new EnrichmentTriples(contentGraph, enrichers);
        }
 
+       /**
+        * avtivates the component and adds the enrichment-graph to the virtual
+        * content graph
+        */
        protected void activate() {
                cgProvider.addTemporaryAdditionGraph(ENRICHMENT_GRAPH_URI);
        }
+
+       /**
+        * deactivates the compononent removing the enrichment-graph from the
+        * virtual content graph
+        */
        protected void deactivate() {
                cgProvider.removeTemporaryAdditionGraph(ENRICHMENT_GRAPH_URI);
        }
 
+       /**
+        * gets the base content-graph from tcManager and sets the permission
+        * required to access the enrichment-graph accordingly
+        *
+        * @param tcManager
+        */
        protected void bindTcManager(TcManager tcManager) {
                contentGraph = tcManager.getMGraph(Constants.CONTENT_GRAPH_URI);
                Collection<Permission> requiredReadPermissions =


Reply via email to