Examples of Category


Examples of org.b3log.solo.model.feed.atom.Category

                entry.setAuthor(authorName);

                final String tagsString = article.getString(Article.ARTICLE_TAGS_REF);
                final String[] tagStrings = tagsString.split(",");
                for (int j = 0; j < tagStrings.length; j++) {
                    final Category catetory = new Category();
                    entry.addCatetory(catetory);
                    final String tag = tagStrings[j];
                    catetory.setTerm(tag);
                }
            }

            renderer.setContent(feed.toString());
        } catch (final Exception e) {
View Full Code Here

Examples of org.beangle.ems.security.Category

        return redirect("admin", "info.save.failure");
      }
    }
    Long categoryId = getLong("removeCategoryId");
    if (null != categoryId) {
      Category category = entityDao.get(Category.class, categoryId);
      if (null != category) {
        try {
          entityDao.remove(category);
        } catch (Exception e) {
          return redirect("admin", "info.remove.failure");
View Full Code Here

Examples of org.blueoxygen.postila.entity.Category

            businessPartner = bp.get(cbBusinessPartner.getSelectedIndex());
            } else {
            businessPartner = null;
            }
           
            Category category = new Category();
            if(!cat.isEmpty()){
            category = cat.get(cbCategory.getSelectedIndex());
            } else {
            category = null;
             }
View Full Code Here

Examples of org.broadleafcommerce.core.catalog.domain.Category

        Customer customer = customerService.saveCustomer(createNamedCustomer());

        Order order = orderService.createNamedOrderForCustomer("Boxes Named Order", customer);
       
        Product newProduct = addTestProduct("Cube Box", "Boxes");       
        Category newCategory = newProduct.getDefaultCategory();
       
        order = orderService.addItem(order.getId(),
                new OrderItemRequestDTO(newProduct.getId(), newProduct.getDefaultSku().getId(), newCategory.getId(), 2),
                true);

        return order;
    }
View Full Code Here

Examples of org.cfeclipse.cfml.dialogs.objects.Category

       
         
      //Now create the tabs initially:
        Iterator tabIter = cl.getCategories().iterator();
        while(tabIter.hasNext()){
          Category cat = (Category)tabIter.next();
          TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
          tabItem.setText(cat.getName());
         
          //Layout for the fields in this tab
          GridLayout gl = new GridLayout();
        gl.numColumns = 2;
       
        //composite, field and label
        Composite mainContents = new Composite(tabFolder, SWT.NONE);
          mainContents.setLayout(gl);   
         
          //Loop through the category getting the parameters
          Iterator tagIter = cat.getParams().iterator();
          while(tagIter.hasNext()){
            Parameter pr = (Parameter)tagIter.next();
            String labelname = pr.getName() + " : ";
          if(pr.isRequired()){
            labelname = pr.getName() + " *: ";
View Full Code Here

Examples of org.dmlite.model.component.category.Category

   */
  public Questions getCategoryQuestions(String categoryName) {
    Questions categoryQuestions = null;
    Categories categories = (Categories) getDomainModel().getEntry(
        "Categories");
    Category category = categories.getCategory(categoryName);
    if (category != null) {
      categoryQuestions = getCategoryQuestions(category.getOid());
    }
    return categoryQuestions;
  }
View Full Code Here

Examples of org.drools.guvnor.server.jaxrs.jaxb.Category

    public static final QName STATE = new QName(NS, "state");
    public static final QName FORMAT = new QName(NS, "format");
    public static final QName CATEGORIES = new QName(NS, "categories");

    public static Category toCategory(CategoryItem categoryItem, UriInfo uriInfo) {
        Category category = new Category();
        category.setPath(categoryItem.getFullPath());
        category.setRefLink(uriInfo.getBaseUriBuilder()
                .path("/categories/{categoryPath}")
                .build(categoryItem.getFullPath()));
        // TODO https://issues.jboss.org/browse/GUVNOR-1802
//        category.setRefLink(uriInfo.getBaseUriBuilder()
//                .path("categories").segment(categoryItem.getFullPath())
View Full Code Here

Examples of org.dyno.visual.swing.base.ExtensionRegistry.Category

          }
        }
      }
    }
    String defaultId = sorting.getDefaultCategory();
    Category category = sorting.getCategories().get(defaultId);
    for (String refid : propertyConfigs.keySet()) {
      if (references.get(refid) == null) {
        references.put(refid, refid);
        IConfigurationElement prop = propertyConfigs.get(refid);
        if (prop != null) {
          references.put(refid, refid);
          IWidgetPropertyDescriptor property = createProperty(prop, beanClass);
          property.setCategory(category.getName());
          property.setFilterFlags(category.getFilters());
          propdesc.add(property);
        }
      }
    }
    Component widget = getWidget();
View Full Code Here

Examples of org.eclipse.bpmn2.Category

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.CATEGORY: {
            Category category = (Category) theEObject;
            T result = caseCategory(category);
            if (result == null)
                result = caseRootElement(category);
            if (result == null)
                result = caseBaseElement(category);
View Full Code Here

Examples of org.eclipse.core.commands.Category

       */
      final String tooltip = readOptional(element, ATT_TOOLTIP);

      // Define the command.
      command = commandService.getCommand(commandId);
      final Category category = commandService.getCategory(null);
      final String name = LegacyActionTools.removeAcceleratorText(Action
          .removeMnemonics(label));
      command.define(name, tooltip, category, null);

      // TODO Decide the command state.
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.