]> source.dussan.org Git - sonarqube.git/commitdiff
Deploy the component ResourcePermissions on server-side
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Jul 2012 09:05:21 +0000 (11:05 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Jul 2012 09:05:44 +0000 (11:05 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissions.java
sonar-plugin-api/src/main/java/org/sonar/api/security/ResourcePermissions.java

index 67069da3a361ce783de700a4f5e036a2e9b0115a..1a3e9e21e46005cc35681fbb47579f2bc92326f9 100644 (file)
@@ -21,6 +21,7 @@ package org.sonar.plugins.core.security;
 
 import org.apache.ibatis.session.SqlSession;
 import org.sonar.api.BatchExtension;
+import org.sonar.api.ServerExtension;
 import org.sonar.api.config.Settings;
 import org.sonar.api.resources.Resource;
 import org.sonar.api.security.DefaultGroups;
@@ -32,7 +33,7 @@ import org.sonar.core.user.*;
 /**
  * @since 3.2
  */
-public class DefaultResourcePermissions implements ResourcePermissions, BatchExtension {
+public class DefaultResourcePermissions implements ResourcePermissions, BatchExtension, ServerExtension {
 
   private final Settings settings;
   private final MyBatis myBatis;
index e63d963455deeb33faa2d70333fc3a7606ff570f..dcfc77861eae746e4e666412060ef4060635b44a 100644 (file)
@@ -20,6 +20,7 @@
 package org.sonar.api.security;
 
 import org.sonar.api.BatchComponent;
+import org.sonar.api.ServerComponent;
 import org.sonar.api.resources.Resource;
 
 /**
@@ -29,7 +30,7 @@ import org.sonar.api.resources.Resource;
  *
  * @since 3.2
  */
-public interface ResourcePermissions extends BatchComponent {
+public interface ResourcePermissions extends BatchComponent, ServerComponent {
 
   boolean hasRoles(Resource resource);