Examples of updateDescription()


Examples of ch.inftec.ju.util.general.DescriptorUtils.AbstractDescriptionEvaluator.updateDescription()

    Assert.assertEquals("2", d.getDescription());
   
    // Make sure evaluate is only called after call to updateDescription
    evaluatorDescription = "3";
    Assert.assertEquals("2", d.getDescription());
    descriptionEvaluator.updateDescription();
    Assert.assertEquals("3", d.getDescription());
   
    // Check event
    TestUpdateListener<Descriptor> testListener = JuEventUtils.newTestUpdateListener();
    d.getUpdateNotifier().addListener(testListener);
View Full Code Here

Examples of it.freedomotic.environment.Room.updateDescription()

            }

            for (ZoneLogic z : env.getZones()) {
                if (z instanceof Room) {
                    final Room room = (Room) z;
                    room.updateDescription();
                }
            }
        }

        //then executeCommand the super which notifies the event
View Full Code Here

Examples of it.freedomotic.plugins.gui.VariousSensorsGui.updateDescription()

                if (reply != null) {
                    String userInput = reply.getProperty("result");

                    if (userInput != null) {
                        guiHook.updateDescription("The reply to the test question is " + userInput);
                    } else {
                        guiHook.updateDescription("The user has not responded to the question within the given time");
                    }
                } else {
                    guiHook.updateDescription("Unreceived reply within given time (10 seconds)");
View Full Code Here

Examples of it.freedomotic.plugins.gui.VariousSensorsGui.updateDescription()

                    String userInput = reply.getProperty("result");

                    if (userInput != null) {
                        guiHook.updateDescription("The reply to the test question is " + userInput);
                    } else {
                        guiHook.updateDescription("The user has not responded to the question within the given time");
                    }
                } else {
                    guiHook.updateDescription("Unreceived reply within given time (10 seconds)");
                }
            }
View Full Code Here

Examples of it.freedomotic.plugins.gui.VariousSensorsGui.updateDescription()

                        guiHook.updateDescription("The reply to the test question is " + userInput);
                    } else {
                        guiHook.updateDescription("The user has not responded to the question within the given time");
                    }
                } else {
                    guiHook.updateDescription("Unreceived reply within given time (10 seconds)");
                }
            }
        }).start();
    }
View Full Code Here

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

            //Throws RulesRepositoryException if the package or asset does not exist
            AssetItem ai = repository.loadPackage(packageName).loadAsset(assetName);
            //Update asset
            ai.checkout();
            ai.updateTitle(assetEntry.getTitle());
            ai.updateDescription(assetEntry.getSummary());
            if (format != null) {
                ai.updateFormat(format);
            }
            if (assetEntry.getContent() != null) {
                ai.updateContent(assetEntry.getContent());
View Full Code Here

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

            //Throws RulesRepositoryException if the package or asset does not exist
            AssetItem ai = repository.loadPackage(packageName).loadAsset(assetName);
            /* Update asset */
            ai.checkout();
            ai.updateTitle(asset.getMetadata().getTitle());
            ai.updateDescription(asset.getDescription());
            ai.checkin(asset.getCheckInComment());
            repository.save();
        } catch (Exception e) {
            throw new WebApplicationException(e);
        }
View Full Code Here

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

        repoAsset.updateDateEffective( dateToCalendar( meta.getDateEffective() ) );
        repoAsset.updateDateExpired( dateToCalendar( meta.getDateExpired() ) );

        repoAsset.updateCategoryList( meta.getCategories() );
        repoAsset.updateDescription( asset.getDescription() );

        ContentHandler handler = ContentManager.getHandler( repoAsset.getFormat() );
        handler.storeAssetContent( asset,
                                   repoAsset );
View Full Code Here

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

            //Throws RulesRepositoryException if the package or asset does not exist
            AssetItem ai = rulesRepository.loadModule(packageName).loadAsset(assetName);
            //Update asset
            ai.checkout();
            ai.updateTitle(assetEntry.getTitle());
            ai.updateDescription(assetEntry.getSummary());
            if (format != null) {
                ai.updateFormat(format);
            }
           
            //REVISIT: What if the client really wants to set content to ""?
View Full Code Here

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

            //Throws RulesRepositoryException if the package or asset does not exist
            AssetItem ai = rulesRepository.loadModule(packageName).loadAsset(assetName);
            /* Update asset */
            ai.checkout();
            ai.updateTitle(asset.getMetadata().getTitle());
            ai.updateDescription(asset.getDescription());
            ai.checkin(asset.getCheckInComment());
            rulesRepository.save();
        } catch (Exception e) {
            throw new WebApplicationException(e);
        }
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.