Examples of updateDescription()


Examples of org.drools.repository.ModuleItem.updateDescription()

            //Rename:
            if (!existingModuleItem.getTitle().equalsIgnoreCase(module.getTitle())) {
                rulesRepository.renameModule(existingModuleItem.getUUID(), module.getTitle());
            }
           
            existingModuleItem.updateDescription(module.getDescription());
           
            /* TODO: add more updates to package item from JSON */
            existingModuleItem.checkin(module.getMetadata().getCheckinComment());
            rulesRepository.save();
        } catch (RuntimeException e) {
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateDescription()

            if (!existingModuleItem.getTitle().equalsIgnoreCase(entry.getTitle())) {
                rulesRepository.renameModule(existingModuleItem.getUUID(), entry.getTitle());
            }

            if (entry.getSummary() != null) {
                existingModuleItem.updateDescription(entry.getSummary());
            }
           
            // TODO: support LastContributor
            if (entry.getAuthor() != null) {
            }
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateDescription()

            //Rename:
            if (!existingModuleItem.getTitle().equalsIgnoreCase(module.getTitle())) {
                rulesRepository.renameModule(existingModuleItem.getUUID(), module.getTitle());
            }
           
            existingModuleItem.updateDescription(module.getDescription());
           
            /* TODO: add more updates to package item from JSON */
            existingModuleItem.checkin(module.getMetadata().getCheckinComment());
            rulesRepository.save();
        } catch (Exception e) {
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateDescription()

                moduleItem );
        updateCategoryRules( data,
                moduleItem );

        moduleItem.updateExternalURI( data.getExternalURI() );
        moduleItem.updateDescription( data.getDescription() );
        moduleItem.archiveItem( data.isArchived() );
        moduleItem.updateBinaryUpToDate( false );
        if(!data.getFormat().equals("")) {
            moduleItem.updateFormat(data.getFormat());
        }
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateDescription()

                moduleItem );
        updateCategoryRules( data,
                moduleItem );

        moduleItem.updateExternalURI( data.getExternalURI() );
        moduleItem.updateDescription( data.getDescription() );
        moduleItem.archiveItem( data.isArchived() );
        moduleItem.updateBinaryUpToDate( false );
        if(!data.getFormat().equals("")) {
            moduleItem.updateFormat(data.getFormat());
        }
View Full Code Here

Examples of org.drools.repository.ModuleItem.updateDescription()

        while ( iterations < maxIteration ) {
            iterations++;

            if ( iterations % 50 == 0 ) {
                ModuleItem pkg1 = rulesRepository.loadModule("testHeadOOME");
                pkg1.updateDescription(System.currentTimeMillis() + "");
                pkg1.checkin("a change");
                //rulesRepository.logout(); // Breaks lifecycle of test
            }

            //fm.setRepository( new RulesRepository(TestEnvironmentSessionHelper.getSession()));
View Full Code Here

Examples of org.drools.repository.PackageItem.updateDescription()

            p.checkout();
            // TODO: support rename package.
            // p.updateTitle(entry.getTitle());

            if (entry.getSummary() != null) {
                p.updateDescription(entry.getSummary());
            }
            // TODO: support LastContributor
            if (entry.getAuthor() != null) {
            }
View Full Code Here

Examples of org.drools.repository.PackageItem.updateDescription()

    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public void updatePackageFromJAXB(@PathParam("packageName") String packageName, Package p) {
        try {
            PackageItem item = repository.loadPackage(packageName);
            item.checkout();
            item.updateDescription(p.getDescription());
            item.updateTitle(p.getTitle());
            /* TODO: add more updates to package item from JSON */
            item.checkin(p.getCheckInComment());
            repository.save();
        } catch (Exception e) {
View Full Code Here

Examples of org.drools.repository.PackageItem.updateDescription()

        ServiceImplementation impl = getServiceImplementation();
        RulesRepository repo = impl.getRulesRepository();

        PackageItem pkg = repo.loadPackage( nm );
        pkg.updateDescription( System.currentTimeMillis() + "" );
        pkg.checkin( "a change" );
        repo.logout();

    }
View Full Code Here

Examples of org.drools.repository.PackageItem.updateDescription()

    private void updatePackage(String nm) throws Exception {
        System.err.println( "---> Updating the package " );
        RulesRepository repo = new RulesRepository( session );
        PackageItem pkg = repo.loadPackage( nm );
        pkg.updateDescription( System.currentTimeMillis() + "" );
        pkg.checkin( "a change" );
        repo.logout();

    }
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.