Examples of update()


Examples of org.osgi.jmx.service.cm.ConfigurationAdminMBean.update()

        PropertyData<String> p1 = PropertyData.newInstance("A1", "first");
        data.put(p1.toCompositeData());
        PropertyData<Integer> p2 = PropertyData.newInstance("A2", 2);
        data.put(p2.toCompositeData());
       
        mbean.update("org.apache.aries.jmx.test.ServiceA", data);
       
        Thread.sleep(1000);
        Dictionary<String, Object> config = managedServiceA.getConfig();
        assertNotNull(config);
        assertEquals(3, config.size());
View Full Code Here

Examples of org.osgi.service.cm.Configuration.update()

      if (sr != null) {
        ConfigurationAdmin ca = (ConfigurationAdmin) bc.getService(sr);
        if (ca != null) {
          Configuration conf = ca.getConfiguration(pid);
          if (conf != null) {
            conf.update(configCollection);
          }
        }
        bc.ungetService(sr);
      }
    } catch (IOException io) {
View Full Code Here

Examples of org.owasp.dependencycheck.data.update.CachedWebDataSource.update()

        final UpdateService service = new UpdateService(serviceClassLoader);
        final Iterator<CachedWebDataSource> iterator = service.getDataSources();
        while (iterator.hasNext()) {
            final CachedWebDataSource source = iterator.next();
            try {
                source.update();
            } catch (UpdateException ex) {
                LOGGER.log(Level.WARNING,
                        "Unable to update Cached Web DataSource, using local data instead. Results may not include recent vulnerabilities.");
                LOGGER.log(Level.FINE, String.format("Unable to update details for %s", source.getClass().getName()), ex);
            }
View Full Code Here

Examples of org.paquitosoft.lml.model.dao.IDefaultDAO.update()

       
        if (PERSIST_MODE_SAVE == mode) {
            result = dao.insert(entity);
            persistAssociatedAttributes(cascadeAttributes, connection, entity, mode); // AFTER
        } else if (PERSIST_MODE_UPDATE == mode) {
            result = dao.update(entity);
            persistAssociatedAttributes(cascadeAttributes, connection, entity, mode); // AFTER
        } else if (PERSIST_MODE_DELETE == mode) {
            try {
                persistAssociatedAttributes(cascadeAttributes, connection, entity, mode); // BEFORE
                dao.remove(entity.getClass(), ModelUtilities.getEntityIdentifier(entity));
View Full Code Here

Examples of org.parosproxy.paros.db.TableAlert.update()

    // ZAP: Added updateAlertInDB
  public void updateAlertInDB(Alert alert) throws HttpMalformedHeaderException, SQLException {

      TableAlert tableAlert = getModel().getDb().getTableAlert();
      tableAlert.update(alert.getAlertId(), alert.getAlert(), alert.getRisk(),
          alert.getReliability(), alert.getDescription(), alert.getUri(),
          alert.getParam(), alert.getOtherInfo(), alert.getSolution(),
          alert.getReference(), alert.getSourceHistoryId());
  }
 
View Full Code Here

Examples of org.pdfclown.documents.Document.update()

    {
      DocumentActions documentActions = document.getActions();
      if(documentActions == null)
      {
        document.setActions(documentActions = new DocumentActions(document));
        document.update();
      }
      /*
        NOTE: This statement instructs the PDF viewer to go to page 2 on document opening.
      */
      documentActions.setOnOpen(
View Full Code Here

Examples of org.pdfclown.documents.DocumentActions.update()

            Destination.ModeEnum.Fit,
            null
            )
          )
        );
      documentActions.update();
    }
   
    // 2.2. Remote go-to.
    {
      Page page = document.getPages().get(1); // Page 2 (zero-based index).
View Full Code Here

Examples of org.pdfclown.documents.Page.update()

      Page page = document.getPages().get(1); // Page 2 (zero-based index).
      PageActions pageActions = page.getActions();
      if(pageActions == null)
      {
        page.setActions(pageActions = new PageActions(document));
        page.update();
      }
      try
      {
        /*
          NOTE: This statement instructs the PDF viewer to navigate to the given URI on page 2 opening.
View Full Code Here

Examples of org.pdfclown.documents.PageActions.update()

          new GoToURI(
            document,
            new URI("http://www.sourceforge.net/projects/clown")
            )
          );
        pageActions.update();
      }
      catch(Exception exception)
      {throw new RuntimeException(exception);}
    }
View Full Code Here

Examples of org.pdfclown.documents.contents.FontResources.update()

      // Insert the font within the resources!
      int fontIndex = fonts.size();
      do
      {name = new PdfName(String.valueOf(++fontIndex));}
      while(fonts.containsKey(name));
      fonts.put(name,value); fonts.update();
    }

    return name;
  }
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.