import org.apache.commons.lang.StringUtils;
import org.apache.ibatis.session.SqlSession;
-import org.sonar.api.ServerExtension;
import org.sonar.api.config.Settings;
import org.sonar.api.resources.Resource;
import org.sonar.api.security.DefaultGroups;
import org.sonar.api.security.ResourcePermissions;
-import org.sonar.api.task.TaskExtension;
import org.sonar.api.web.UserRole;
import org.sonar.core.permission.ComponentPermissionFacade;
import org.sonar.core.persistence.MyBatis;
/**
* @since 3.2
*/
-public class DefaultResourcePermissions implements ResourcePermissions, TaskExtension, ServerExtension {
+public class DefaultResourcePermissions implements ResourcePermissions {
private final Settings settings;
private final MyBatis myBatis;
package org.sonar.core.user;
import org.apache.ibatis.session.SqlSession;
-import org.sonar.api.ServerExtension;
-import org.sonar.api.task.TaskExtension;
+import org.sonar.api.ServerComponent;
+import org.sonar.api.task.TaskComponent;
import org.sonar.core.persistence.MyBatis;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
+
import java.util.Date;
import java.util.List;
-public class PermissionDao implements TaskExtension, ServerExtension {
+public class PermissionDao implements TaskComponent, ServerComponent {
private final MyBatis myBatis;
package org.sonar.core.user;
import org.apache.ibatis.session.SqlSession;
-import org.sonar.api.ServerExtension;
-import org.sonar.api.task.TaskExtension;
+import org.sonar.api.ServerComponent;
+import org.sonar.api.task.TaskComponent;
import org.sonar.core.persistence.MyBatis;
import java.util.List;
-public class RoleDao implements TaskExtension, ServerExtension {
+public class RoleDao implements TaskComponent, ServerComponent {
private final MyBatis mybatis;
import com.google.common.collect.Lists;
import org.apache.ibatis.session.SqlSession;
+import org.sonar.api.BatchComponent;
+import org.sonar.api.ServerComponent;
import org.sonar.api.user.UserQuery;
import org.sonar.core.persistence.MyBatis;
/**
* @since 3.2
*/
-public class UserDao {
+public class UserDao implements BatchComponent, ServerComponent {
+
private final MyBatis mybatis;
public UserDao(MyBatis mybatis) {