Examples of Category


Examples of com.alu.e3.common.logging.Category

  public static final Category toDataModel(CategoryWrapper categoryXML)
  {
    if (categoryXML == null) {
      throw new IllegalArgumentException("CategoryWrapper must not be null");
    }
    Category category = Category.fromString(categoryXML.getName());
    if (category == null) {
      throw new IllegalArgumentException("CategoryWrapper.name must be a valid Category value: " + Category.valuesList);
    }
    Category.enableCategory(category, categoryXML.getEnabled());
    return category;
View Full Code Here

Examples of com.android.tools.lint.detector.api.Category

                currentList.add(warning);
            }

            writeOverview(related, missing.size());

            Category previousCategory = null;
            for (List<Warning> warnings : related) {
                Warning first = warnings.get(0);
                Issue issue = first.issue;

                if (issue.getCategory() != previousCategory) {
View Full Code Here

Examples of com.ateam.webstore.model.Category

   
    String category = req.getParameter(Parameters.CATEGORY_ID.getId());
   
    CategoryService cs = new CategoryService();
   
    Category cat = cs.getById(Long.parseLong(category));
   
    ProductListingView pl = new ProductListingView(getMainView());
   
    pl.setProducts(service.getProductsByCategory(Long.parseLong(category)));
    l.info("displaying category: "+cat.getName());
   
    ContentView cv = new ContentView(JSP_PRODUCT_LISTING, cat.getName());
   
    pl.getContentViews().add(cv);

    return pl;
   
View Full Code Here

Examples of com.bookclub.model.Category

  }

  public void save() {
    categoryDao.save(category);

    category = new Category();
    dataTable.loadLazyData();
  }
View Full Code Here

Examples of com.castronu.joomlajavaapi.domain.Category

    public int createCategoryAndReturnCategoryId(String title, String alias, String path, int parentId) throws GenericErrorException, CategoryAlreadyExistException {
        if (getCategoryFromPath(path).size() != 0) {
            throw new CategoryAlreadyExistException(path);
        }

        Category category = aCategoryWithPath(title, alias, path, parentId);

        try {
            getHibernateTemplate().save(JoomlaDslUtils.sanytize(category));
            List<Category> categoryFromPath = getCategoryFromPath(path);
            return categoryFromPath.get(0).getId();
View Full Code Here

Examples of com.charitas.model.Category

        //List<Product> list = new ArrayList<>();
       
        Product prod = null;
        if (resultSet.next()){
           
            Category cat  = new Category();
            cat.setId(resultSet.getInt("category_id"));
            cat.setName(resultSet.getString("category_name"));
           
            prod = new Product();
            prod.setCategory(cat);
            prod.setDescription(resultSet.getString("description"));
            prod.setExpiredDate(resultSet.getDate("expireddate"));
View Full Code Here

Examples of com.clowtown.mealplanner.policy.Category

      item.setName((String)arg0);
      break;
    case CATEGORY_COLUMN:
      if(arg0 instanceof String){
        String name = (String) arg0;
        Category newcat = new Category(name);
        comboBox.addItem(newcat);
        item.setCategory(newcat);
//        data.setElementAt(newcat, arg2);
      }
      else{
View Full Code Here

Examples of com.colorfulsoftware.atom.Category

      catAttrs.add(feedDoc.buildAttribute("term", "music"));
      catAttrs.add(feedDoc.buildAttribute("scheme",
          "http://mtv.com/genere"));
      catAttrs.add(feedDoc.buildAttribute("label", "music"));
      List<Category> categories = new LinkedList<Category>();
      Category category = feedDoc.buildCategory(catAttrs, null);
      categories.add(category);

      List<Attribute> linkAttrs = new LinkedList<Attribute>();
      linkAttrs.add(feedDoc
          .buildAttribute("href", "http://www.yahoo.com"));
View Full Code Here

Examples of com.commafeed.frontend.model.Category

  @GET
  @Path("/get")
  @UnitOfWork
  @ApiOperation(value = "Get feed categories", notes = "Get all categories and subscriptions of the user", response = Category.class)
  public Response getSubscriptions(@SecurityCheck User user) {
    Category root = cache.getUserRootCategory(user);
    if (root == null) {
      log.debug("tree cache miss for {}", user.getId());
      List<FeedCategory> categories = feedCategoryDAO.findAll(user);
      List<FeedSubscription> subscriptions = feedSubscriptionDAO.findAll(user);
      Map<Long, UnreadCount> unreadCount = feedSubscriptionService.getUnreadCount(user);

      root = buildCategory(null, categories, subscriptions, unreadCount);
      root.setId("all");
      root.setName("All");
      cache.setUserRootCategory(user, root);
    }

    return Response.ok(root).build();
  }
View Full Code Here

Examples of com.darkhonor.rage.model.Category

        gevent.setPartialCredit(false);
        gevent.setTerm("Spring 2010");
        gevent.setVersion("ALL");

        Query query = em.createQuery("SELECT c FROM Category c");
        Category dbCat;
        try
        {
            dbCat = (Category) query.getSingleResult();
        } catch (NoResultException ex)
        {
            dbCat = new Category("Array");
            em.getTransaction().begin();
            em.persist(dbCat);
            em.getTransaction().commit();
        }
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.