本文整理匯總了Java中slender.services.core.users.impl.UserListsServiceImpl類的典型用法代碼示例。如果您正苦於以下問題:Java UserListsServiceImpl類的具體用法?Java UserListsServiceImpl怎麽用?Java UserListsServiceImpl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UserListsServiceImpl類屬於slender.services.core.users.impl包,在下文中一共展示了UserListsServiceImpl類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getUserProjects
import slender.services.core.users.impl.UserListsServiceImpl; //導入依賴的package包/類
@POST
@Path("getUserProjects")
@Override
public Response getUserProjects(@FormParam("sessionId") String sessionId) {
UserListsService service = new UserListsServiceImpl();
List<Project> projects = service.getUserProjects(sessionId);
return Response.ok(ProjectResponse.getResponseEntity(projects)).build();
}
示例2: getUserTasks
import slender.services.core.users.impl.UserListsServiceImpl; //導入依賴的package包/類
@POST
@Path("getUserTasks")
@Override
public Response getUserTasks(@FormParam("sessionId") String sessionId) {
UserListsService service = new UserListsServiceImpl();
List<Task> tasks = service.getUserTasks(sessionId);
return Response.ok(TaskResponse.getResponseEntity(tasks)).build();
}
示例3: getUserProjectTasks
import slender.services.core.users.impl.UserListsServiceImpl; //導入依賴的package包/類
@POST
@Path("getUserProjectTasks")
@Override
public Response getUserProjectTasks(@FormParam("sessionId") String sessionId, @FormParam("projectId") Integer projectId) {
UserListsService service = new UserListsServiceImpl();
List<Task> tasks = service.getUserProjectTasks(sessionId, projectId);
return Response.ok(TaskResponse.getResponseEntity(tasks)).build();
}
示例4: testUserProjects
import slender.services.core.users.impl.UserListsServiceImpl; //導入依賴的package包/類
@Test
public void testUserProjects() {
UserListsService service = new UserListsServiceImpl();
List<Project> list = service.getUserProjects(session);
Assert.assertEquals(list.size(), 1);
Assert.assertEquals(list.get(0).getProjectName(), TestVal.fString, "getUserProjects");
}
示例5: testUserTasks
import slender.services.core.users.impl.UserListsServiceImpl; //導入依賴的package包/類
@Test
public void testUserTasks() {
UserListsService service = new UserListsServiceImpl();
List<Task> list = service.getUserTasks(session);
Assert.assertEquals(list.size(), 1);
Assert.assertEquals(list.get(0).getTaskName(), TestVal.fString, "getUserTasks");
}