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;
/**
* @since 3.2
*/
-public class DefaultResourcePermissions implements ResourcePermissions, BatchExtension {
+public class DefaultResourcePermissions implements ResourcePermissions, BatchExtension, ServerExtension {
private final Settings settings;
private final MyBatis myBatis;
package org.sonar.api.security;
import org.sonar.api.BatchComponent;
+import org.sonar.api.ServerComponent;
import org.sonar.api.resources.Resource;
/**
*
* @since 3.2
*/
-public interface ResourcePermissions extends BatchComponent {
+public interface ResourcePermissions extends BatchComponent, ServerComponent {
boolean hasRoles(Resource resource);