Examples of Category


Examples of com.philip.journal.home.bean.Category

                while (branch.getParent() != null && branch.getParent().getBranchId() != 0) { // NOPMD by r39
                    categoryDesc.insert(0, branch.getParent().getName() + " > ");
                    branch = branch.getParent();
                }
                retval.add(new Category(nextBranch.getBranchId(), categoryDesc.toString())); // NOPMD by r39
            }
        }
        return retval;
    }
View Full Code Here

Examples of com.rometools.rome.feed.atom.Category

        final List<SyndCategory> sCats = syndFeed.getCategories();
        final List<Category> aCats = new ArrayList<Category>();
        if (sCats != null) {
            for (final SyndCategory sCat : sCats) {
                final Category aCat = new Category();
                aCat.setTerm(sCat.getName());
                // TODO: aCat.setLabel(sCat.getLabel());
                aCat.setScheme(sCat.getTaxonomyUri());
                aCats.add(aCat);
            }
        }
        if (!aCats.isEmpty()) {
            aFeed.setCategories(aCats);
View Full Code Here

Examples of com.rometools.rome.feed.rss.Category

        if (!eCats.isEmpty()) {

            cats = new ArrayList<Category>();
            for (final Element eCat : eCats) {

                final Category cat = new Category();

                // getRSSNamespace()); DONT KNOW WHY DOESN'T WORK
                final String domain = eCat.getAttributeValue("domain");
                if (domain != null) {
                    cat.setDomain(domain);
                }

                cat.setValue(eCat.getText());

                cats.add(cat);

            }
        }
View Full Code Here

Examples of com.skyline.wo.model.Category

    List<Article> articles = articleService.getArticleByOwnerId(page, userid, authority);
    mav.addObject("ARTICLES", articles);
    mav.setViewName(ViewPaths.ARTICLE_LISTARTICLE);
    mav.addObject("OWNER_ID", userid);
    List<Category> categories = categoryService.getCategoryByOwnerId(userid);
    Category category = new Category();
    category.setId(Long.valueOf(0));
    category.setCategoryName("全部日志");
    categories.add(0, category);
    mav.addObject("CATEGORIES", categories);
    mav.addObject("AUTHORITY", authority);
    mav.addObject("CURRENT_CATEGORY", Long.valueOf(0));
    mav.addObject("page", page);
View Full Code Here

Examples of com.softserve.academy.food.entity.Category

                Category.class, id);
    }

    //TODO delete
    public void delete(int id) {
        Category object = (Category) sessionFactory.getCurrentSession().load(
                Category.class, id);
        if (null != object) {
            sessionFactory.getCurrentSession().delete(object);
        }
    }
View Full Code Here

Examples of com.sparc.knappsack.components.entities.Category

    @PreAuthorize("hasAccessToCategory(#id, #userAgentInfo.applicationType) or hasRole('ROLE_ADMIN')")
    @RequestMapping(value = "/categories/{id}", method = RequestMethod.GET)
    public String displayApplicationsForCategory(@PathVariable Long id, Model model, UserAgentInfo userAgentInfo) {
        checkRequiredEntity(categoryService, id);

        Category category = categoryService.get(id);

        model.addAttribute("selectedCategory", categoryService.createCategoryModel(category, true));

        User user = userService.getUserFromSecurityContext();
        List<ApplicationModel> applicationModels = userService.getApplicationModelsForUser(user, userAgentInfo.getApplicationType(), category.getId());
        model.addAttribute("applications", applicationModels);

        return "category_resultsTH";
    }
View Full Code Here

Examples of com.sun.syndication.feed.atom.Category

            if (cats.getScheme() != null) {
                catsElem.setAttribute("scheme", cats.getScheme()); //, AtomService.ATOM_PROTOCOL);
            }
            // Loop to create <atom:category> elements
            for (Iterator catIter = cats.getCategories().iterator(); catIter.hasNext();) {
                Category cat = (Category) catIter.next();
                Element catElem = new Element("category", AtomService.ATOM_FORMAT);
                catElem.setAttribute("term", cat.getTerm()); //, AtomService.ATOM_FORMAT);
                if (cat.getScheme() != null) { // optional
                    catElem.setAttribute("scheme", cat.getScheme()); //, AtomService.ATOM_FORMAT);
                }
                if (cat.getLabel() != null) { // optional
                    catElem.setAttribute("label", cat.getLabel()); //, AtomService.ATOM_FORMAT);
                }
                catsElem.addContent(catElem);
            }
            element.addContent(catsElem);
        }
View Full Code Here

Examples of com.sun.syndication.feed.rss.Category

    }

    protected List createSyndCategories(List rssCats) {
        List syndCats = new ArrayList();
        for (int i=0;i<rssCats.size();i++) {
            Category rssCat = (Category) rssCats.get(i);
            SyndCategory sCat = new SyndCategoryImpl();
            sCat.setTaxonomyUri(rssCat.getDomain());
            sCat.setName(rssCat.getValue());
            syndCats.add(sCat);
        }
        return syndCats;
    }
View Full Code Here

Examples of com.swinarta.sunflower.core.model.Category

    p.setShortDescription(shortDescription);
    p.setScallable(scallable);
    p.setConsignment(consignment);
    p.setDeleteInd(false);

    Category category = coreManager.getCategory(categoryId);
    p.setCategory(category);
   
    try {
      Product savedProduct = coreManager.save(Product.class, p);
           
View Full Code Here

Examples of com.testdomain.Category

  public void testNestedProperties() throws Exception {
    List list = sqlMap.queryForList("getFish", null);
    assertEquals(1, list.size());

    Category cat = (Category) list.get(0);
    assertEquals("FISH", cat.getCategoryId());
    assertEquals("Fish", cat.getName());
    assertNotNull("Expected product list.", cat.getProductList());
    assertEquals(4, cat.getProductList().size());

    Product product = (Product) cat.getProductList().get(0);
    assertEquals(2, product.getItemList().size());
  }
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.