Package org.drools.repository

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


            if (!existingPackage.getTitle().equalsIgnoreCase(entry.getTitle())) {
                repository.renamePackage(existingPackage.getUUID(), entry.getTitle());
            }

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


            //Rename:
            if (!existingPackage.getTitle().equalsIgnoreCase(newPackage.getTitle())) {
                repository.renamePackage(existingPackage.getUUID(), newPackage.getTitle());
            }           

            existingPackage.updateDescription(newPackage.getDescription());

            /* TODO: add more updates to package item from JSON */
            String checkInComment = "";
            if (newPackage.getCheckInComment() != null) {
                checkInComment = newPackage.getCheckInComment();
View Full Code Here

        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

                                                      true ),
                                  convertMapToString( data.catRules,
                                                      false ) );

        item.updateExternalURI( data.externalURI );
        item.updateDescription( data.description );
        item.archiveItem( data.archived );
        item.updateBinaryUpToDate( false );
        this.ruleBaseCache.remove( data.uuid );
        item.checkin( data.description );
View Full Code Here

                                         item );
        updateCategoryRules( data,
                             item );

        item.updateExternalURI( data.externalURI );
        item.updateDescription( data.description );
        item.archiveItem( data.archived );
        item.updateBinaryUpToDate( false );
        RuleBaseCache.getInstance().remove( data.uuid );
        item.checkin( data.description );
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.