當前位置: 首頁>>代碼示例>>Java>>正文


Java UserListsServiceImpl類代碼示例

本文整理匯總了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();
}
 
開發者ID:Slenderware,項目名稱:SlenderRestAPI-Maven,代碼行數:10,代碼來源:UsersRestImpl.java

示例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();
}
 
開發者ID:Slenderware,項目名稱:SlenderRestAPI-Maven,代碼行數:10,代碼來源:UsersRestImpl.java

示例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();
}
 
開發者ID:Slenderware,項目名稱:SlenderRestAPI-Maven,代碼行數:10,代碼來源:UsersRestImpl.java

示例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");
}
 
開發者ID:Slenderware,項目名稱:SlenderRestAPI-Maven,代碼行數:9,代碼來源:UsersServiceTest.java

示例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");
}
 
開發者ID:Slenderware,項目名稱:SlenderRestAPI-Maven,代碼行數:9,代碼來源:UsersServiceTest.java


注:本文中的slender.services.core.users.impl.UserListsServiceImpl類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。