Examples of findById()


Examples of com.lgx8.gateway.service.IGatewayService.findById()

   
    if("main".equals(type))
    {
      String newsId = request.getParameter("newsId");
     
      News news = gatewayService.findById(Integer.parseInt(newsId));
     
      root.put("news", news);
     
      News upnews = gatewayService.findUpNewsByCurrId(newsType, Integer.parseInt(newsId));
     
View Full Code Here

Examples of com.mossle.api.user.UserConnector.findById()

                .getBean(UserConnector.class);

        TaskEntity taskEntity = new TaskEntity();
        taskEntity.setId(delegateTask.getId());
        taskEntity.setName(delegateTask.getName());
        taskEntity.setAssigneeWithoutCascade(userConnector.findById(
                delegateTask.getAssignee()).getDisplayName());
        taskEntity.setVariableLocal("initiator",
                getInitiator(userConnector, delegateTask));
        logger.debug("initiator : {}", delegateTask.getVariable("initator"));
        logger.debug("variables : {}", delegateTask.getVariables());
View Full Code Here

Examples of com.mossle.bpm.graph.Graph.findById()

                historicActivityInstanceEntity.getId());

        Graph graph = new ActivitiHistoryGraphBuilder(
                historicTaskInstanceEntity.getProcessInstanceId()).build();

        Node node = graph.findById(historicActivityInstanceEntity.getId());

        if (!checkCouldRollback(node)) {
            logger.info("cannot rollback {}", taskId);

            return 2;
View Full Code Here

Examples of com.nevernote.service.UsersService.findById()

    List<Notes> all = ns.findAll();
    List<Notes> userNotes = new ArrayList<Notes>();
    System.out.println("***************I did get the right ID, right?**************");
    System.out.println(id);
   
    Users target = us.findById(id);
   
    System.out.println("***************this should be the right user**************");
    if(target==null){
      System.out.println("ARGH!!! NO USER FOUND!!! F-ING NULL?");
    }else{
View Full Code Here

Examples of com.sishuok.mvc.service.UserService.findById()

            //Mockito请参考 http://stamen.iteye.com/blog/1470066
            UserService userService = Mockito.mock(UserService.class);
            User user = new User();
            user.setId(1L);
            user.setName("zhang");
            Mockito.when(userService.findById(Mockito.any(Long.class))).thenReturn(user);
            return userService;
//            return new UserServiceImpl(); //此处也可以返回真实的UserService实现
        }
    }
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.Tree.findById()

                // get this from the parent ResourceTreeNode as resource.parentResource may not be set with
                // anything more than the id.
                Resource parentResource = resource.getParentResource();
                String parentResourceNodeId = ResourceTreeNode.idOf(parentResource);
                Tree tree = treeGrid.getTree();
                TreeNode parentResourceNode = tree.findById(parentResourceNodeId);
                if (null != parentResourceNode) {
                    parentResource = ((ResourceTreeNode) parentResourceNode).getResource();
                    resource.setParentResource(parentResource);
                }
                if (null == parentResource.getName()) {
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.Tree.findById()

                    key = String.valueOf(currentlySelectedBundleGroupId) + '_'; // all keys start with the parent group ID
                }

                key += view.getPath();

                TreeNode node = theTree.findById(key);

                // special case code to handle a "deployments" path. the path structure does not mirror the
                // tree structure, so we may have to manually force the "destinations" folder to open.
                if (node == null) {
                    if (key.endsWith("deployments")) {
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.Tree.findById()

                // special case code to handle a "deployments" path. the path structure does not mirror the
                // tree structure, so we may have to manually force the "destinations" folder to open.
                if (node == null) {
                    if (key.endsWith("deployments")) {
                        String tempKey = key.replace("deployments", "destinations");
                        node = theTree.findById(tempKey);
                    }
                }

                if (node != null) {
                    // open the node, this will force a fetch of child data if necessary
View Full Code Here

Examples of com.tcs.hrr.dao.UserDAO.findById()

  }

  @Test
  public void testFindById() {
    UserDAO ud = (UserDAO)ctx.getBean("userDaO");
    User t_User = (User)ud.findById(1);
    System.out.println("testFindById : "+t_User.getName()+"/"+t_User.getPassword());
  }


}
View Full Code Here

Examples of com.tcs.hrr.dao.UserDAO.findById()

  }

  @Test
  public void testFindById() {
    UserDAO ud = (UserDAO)ctx.getBean("userDaO");
    User t_User = (User)ud.findById(1);
    System.out.println("testFindById : "+t_User.getName()+"/"+t_User.getPassword());
  }
 
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.