Examples of addCategory()


Examples of org.apache.wink.common.model.synd.SyndEntry.addCategory()

        String id = defect.getId();
        entry.setId("urn:com:hp:qadefects:defect:" + id);
        entry.setTitle(new SyndText(defect.getName()));
        entry.setSummary(new SyndText(defect.getDescription()));
        entry.addAuthor(new SyndPerson(defect.getAuthor()));
        entry.addCategory(new SyndCategory("urn:com:hp:qadefects:categories:severity", defect
            .getSeverity(), null));
        entry.addCategory(new SyndCategory("urn:com:hp:qadefects:categories:status", defect
            .getStatus(), null));
        if (defect.getCreated() != null) {
            entry.setPublished(new Date(defect.getCreated().getTime()));
View Full Code Here

Examples of org.apache.wink.common.model.synd.SyndFeed.addCategory()

        syndLink.setRel(COL_LINK_REL);
        feed.addLink(syndLink);
        SyndCategory category = new SyndCategory();
        category.setScheme(COL_CATEGORY_SCHEME);
        category.setTerm(COL_CATEGORY_TERM);
        feed.addCategory(category);
        SyndPerson person = new SyndPerson();
        person.setName(COL_OWNER);
        feed.addAuthor(person);
        feed.setSubtitle(new SyndText(COL_SUB_TITLE));
        return feed;
View Full Code Here

Examples of org.cfeclipse.cfml.dialogs.objects.CategoryList.addCategory()

        if(!cl.hasCategory(pr.getCategory())){
          cat = new Category(pr.getCategory());
         
          //add the Parameter
          cat.addParameter(pr);
          cl.addCategory(cat);
        }
        else {
          cat = cl.getCategory(pr.getCategory());
          cat.addParameter(pr);
        }
View Full Code Here

Examples of org.drools.repository.AssetItem.addCategory()

        AssetItem rule3 = pkg.addAsset( "model1",
                                        "desc for model1" );
        rule3.updateFormat( AssetFormats.DRL_MODEL );
        rule3.updateContent( "declare Album1\n genre1: String \n end" );
        rule3.addCategory("testRESTCat");
        rule3.checkin( "version 1" );

        pkg.checkin( "version2" );

        //Package version 3
View Full Code Here

Examples of org.drools.repository.CategoryItem.addCategory()

        ServiceImplementation impl = restTestingBase.getServiceImplementation();
        //Package version 1(Initial version)
        PackageItem pkg = impl.getRulesRepository().createPackage( "restPackage1",
                                                                   "this is package restPackage1" );
        CategoryItem cat = impl.getRulesRepository().loadCategory( "/" );
        cat.addCategory( "testRESTCat",
                         "testRESTCat" );
       
        //Package version 2 
        DroolsHeader.updateDroolsHeader( "import com.billasurf.Board\n global com.billasurf.Person customer1",
                                         pkg );
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.columnCategories.ColumnCategoriesModel.addCategory()

    @Test
    public void rootMustBeTheFirstNodeSet() throws Exception {
        boolean caughtEx = false;
        try {
            ColumnCategoriesModel model = new ColumnCategoriesModel();
            model.addCategory(new Node("1"), "1a");
        } catch (Exception e) {
            caughtEx = true;
        }
        assertTrue(caughtEx);
    }
View Full Code Here

Examples of org.guvnor.common.services.shared.metadata.model.Metadata.addCategory()

        metadata.setExternalRelation(jcrAssetItem.getExternalRelation());
        metadata.setExternalSource(jcrAssetItem.getExternalSource());
        List<CategoryItem> jcrCategories = jcrAssetItem.getCategories();
        for (CategoryItem c : jcrCategories) {
            //System.out.format("    Metadata: addCategory... \n" + c.getFullPath());
            metadata.addCategory(c.getFullPath());
        }

        Path path = migrationPathManager.generatePathForAsset(jcrModule, jcrAssetItem);
        return metadataService.setUpAttributes(path, metadata);
View Full Code Here

Examples of org.jasig.portal.layout.dlm.remoting.registry.ChannelRegistryBean.addCategory()

    // construct a new channel registry
    ChannelRegistryBean registry = new ChannelRegistryBean();
   
    // add the root category and all its children to the registry
    ChannelCategory rootCategory = channelRegistryStore.getTopLevelChannelCategory();
    registry.addCategory(addChildren(rootCategory, allChannels, user, type));

      /*
       * uPortal historically has provided for a convention that channels
       * not in any category may potentially be viewed by users but may not
       * be subscribed to.  We'd like administrators to still be able to
View Full Code Here

Examples of org.jresearch.flexess.core.model.category.ICategoryManager.addCategory()

    pack.getEClassifiers().add(perm1);
    pack.getEClassifiers().add(perm2);
    pack.getEClassifiers().add(perm3);
   
    ICategoryManager manager = CategoryManager.getInstance();
    manager.addCategory("q1", perm1);
    assertEquals(true, manager.hasCategory("q1", perm1));
    manager.addCategory("q2", perm2);
    assertEquals(false, manager.hasCategory("q1", perm2));
    manager.addCategory("q3", perm3);
   
View Full Code Here

Examples of org.monjo.example.PojoWithListInnerObject.addCategory()

    monjoComplex.removeAll();
   
    monjoComplex.insert(pojo);
    Category otherCategory = new Category();
    otherCategory.setName("Other Category");
    pojo.addCategory(otherCategory);
   
    monjoComplex.update(pojo);   
    MonjoCursor<PojoWithListInnerObject> monjoCursor = monjoComplex.find();
    PojoWithListInnerObject complex = monjoCursor.toList().get(0);
    assertEquals(2, complex.getCategories().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.