Commit ada92584 authored by Liang Ding's avatar Liang Ding

🏗 #12515 移除 Repository 层接口

parent d93e378b
......@@ -93,12 +93,6 @@ public class UserMgmtService {
@Inject
private OptionMgmtService optionMgmtService;
/**
* User query service.
*/
@Inject
private UserQueryService userQueryService;
/**
* Tries to login with cookie.
*
......@@ -126,12 +120,7 @@ public class UserMgmtService {
break;
}
final JSONObject userResult = userQueryService.getUser(userId);
if (null == userResult) {
break;
}
final JSONObject user = userResult.getJSONObject(User.USER);
JSONObject user = userRepository.get(userId);
if (null == user) {
break;
}
......
......@@ -22,13 +22,12 @@ import org.b3log.latke.repository.Transaction;
import org.b3log.solo.AbstractTestCase;
import org.b3log.solo.model.ArchiveDate;
import org.b3log.solo.model.Article;
import org.b3log.solo.repository.ArchiveDateArticleRepository;
import org.json.JSONObject;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* {@link ArchiveDateArticleRepositoryImpl} test case.
* {@link ArchiveDateArticleRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Dec 31, 2011
......
......@@ -29,7 +29,7 @@ import org.testng.annotations.Test;
import java.util.List;
/**
* {@link ArchiveDateRepositoryImpl} test case.
* {@link ArchiveDateRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.2, Jul 20, 2017
......
......@@ -32,7 +32,7 @@ import java.util.Date;
import java.util.List;
/**
* {@link ArticleRepositoryImpl} test case.
* {@link ArticleRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.4, Sep 16, 2018
......
......@@ -26,7 +26,7 @@ import org.testng.Assert;
import org.testng.annotations.Test;
/**
* {@link CategoryRepositoryImpl} test case.
* {@link CategoryRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Apr 12, 2017
......
......@@ -29,7 +29,7 @@ import java.util.Date;
import java.util.List;
/**
* {@link ArticleRepositoryImpl} test case.
* {@link ArticleRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.2, Sep 16, 2018
......
......@@ -26,7 +26,7 @@ import org.testng.Assert;
import org.testng.annotations.Test;
/**
* {@link LinkRepositoryImpl} test case.
* {@link LinkRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Dec 29, 2011
......
......@@ -27,7 +27,7 @@ import org.testng.Assert;
import org.testng.annotations.Test;
/**
* {@link OptionRepositoryImpl} test case.
* {@link OptionRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Apr 19, 2013
......
......@@ -29,7 +29,7 @@ import org.testng.annotations.Test;
import java.util.List;
/**
* {@link PageRepositoryImpl} test case.
* {@link PageRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.3, Sep 22, 2017
......
......@@ -22,7 +22,7 @@ import org.b3log.solo.repository.PluginRepository;
import org.testng.annotations.Test;
/**
* {@link PluginRepositoryImpl} test case.
* {@link PluginRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Dec 31, 2011
......
......@@ -30,7 +30,7 @@ import org.json.JSONObject;
import org.testng.annotations.Test;
/**
* {@link TagArticleRepositoryImpl} test case.
* {@link TagArticleRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Dec 30, 2011
......
......@@ -30,7 +30,7 @@ import org.json.JSONObject;
import org.testng.annotations.Test;
/**
* {@link TagRepositoryImpl} test case.
* {@link TagRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Dec 30, 2011
......
......@@ -26,14 +26,13 @@ import org.b3log.latke.repository.Query;
import org.b3log.latke.repository.Transaction;
import org.b3log.solo.AbstractTestCase;
import org.b3log.solo.model.UserExt;
import org.b3log.solo.repository.UserRepository;
import org.json.JSONArray;
import org.json.JSONObject;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* {@link UserRepositoryImpl} test case.
* {@link UserRepository} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.0.2, Oct 17, 2015
......@@ -43,7 +42,7 @@ public final class UserRepositoryImplTestCase extends AbstractTestCase {
/**
* Tests.
*
*
* @throws Exception exception
*/
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment