Examples of ProjectCategory


Examples of org.blueoxygen.ramen.project.entity.ProjectCategory

      log = new LogInformation();
      log.setCreateBy(sessionCredentials.getCurrentUser().getId());
            log.setCreateDate(new Timestamp(System.currentTimeMillis()));
            getCategory().setId(null);
    } else {
      ProjectCategory temp = getCategory();
      setCategory((ProjectCategory) manager.getById(ProjectCategory.class, getCategory().getId()));
      log = getCategory().getLogInformation();
      try {
        PropertyUtils.copyProperties(getCategory(), temp);
            } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.campware.dream.om.ProjectCategory

     * wouldn't be secure.
     */
    public void doInsert(RunData data, Context context)
        throws Exception
    {
        ProjectCategory entry = new ProjectCategory();
        data.getParameters().setProperties(entry);
        entry.save();
    }
View Full Code Here

Examples of org.campware.dream.om.ProjectCategory

     * into the database.
     */
    public void doUpdate(RunData data, Context context)
        throws Exception
    {
        ProjectCategory entry = new ProjectCategory();
        data.getParameters().setProperties(entry);
        entry.setModified(true);
        entry.setNew(false);
        entry.save();
    }
View Full Code Here

Examples of org.campware.dream.om.ProjectCategory

    protected boolean getEntry(Criteria criteria, Context context)
    {
        try
        {
            ProjectCategory entry = (ProjectCategory) ProjectCategoryPeer.doSelect(criteria).get(0);
            context.put("entry", entry);
            return true;
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.focusns.model.core.ProjectCategory

        model.put("categories", categories);
        return "console/menu-items";
    }

    public String menuItem(long id, Map<String, Object> model) {
        ProjectCategory category = new ProjectCategory();
        if (id > 0) {
            category = categoryService.getCategory(id);
        }
        model.put("category", category);
        return "console/menu-item";
View Full Code Here

Examples of org.focusns.model.core.ProjectCategory

            ProjectService projectService = applicationContext.getBean(ProjectService.class);
            ProjectCategoryService projectCategoryService = applicationContext.getBean(ProjectCategoryService.class);
            ProjectFeatureService projectFeatureService = applicationContext.getBean(ProjectFeatureService.class);
            //
            Project project = projectService.getProject(projectCode);
            ProjectCategory projectCategory = projectCategoryService.getCategory(project.getCategoryId());
            //
            request.setAttribute(Keys.REQUEST_PROJECT, project);
            request.setAttribute(Keys.REQUEST_PROJECT_CATEGORY, projectCategory);
            //
            List<ProjectFeature> projectFeatures = projectFeatureService.getProjectFeatures(project.getId());
View Full Code Here

Examples of org.focusns.model.core.ProjectCategory

        return "console/site/menu-list";
    }

    @RequestMapping("/menu-edit")
    public String doEdit(@RequestParam(required = false) Long id, Model model) {
        ProjectCategory category = new ProjectCategory();
        if (id != null) {
            category = categoryService.getCategory(id);
        }
        model.addAttribute("category", category);
        //
View Full Code Here

Examples of org.focusns.model.core.ProjectCategory

    @Autowired
    private ProjectCategoryDao categoryDao;

    @Test
    public void testInsert() {
        ProjectCategory category = new ProjectCategory();
        category.setCode("People");
        category.setLabel("人员");
        //
        int count = categoryDao.insert(category);
        Assert.assertEquals(1, count);
    }
View Full Code Here

Examples of org.focusns.model.core.ProjectCategory

        Assert.assertEquals(1, count);
    }

    @Test
    public void testDelete() {
        ProjectCategory category = categoryDao.selectByCode("People");
        int count = categoryDao.delete(category.getId());
        Assert.assertEquals(1, count);
    }
View Full Code Here

Examples of org.focusns.model.core.ProjectCategory

        if(project.getModifiedBy()==null && project.getModifiedById()>0) {
            ProjectUser modifiedBy = projectUserDao.select(project.getModifiedById());
            project.setModifiedBy(modifiedBy);
        }
        if(project.getCategory()==null && project.getCategoryId()>0) {
            ProjectCategory projectCategory = projectCategoryService.getCategory(project.getCategoryId());
            project.setCategory(projectCategory);
        }
        //
        return project;
    }
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.