Examples of publish()


Examples of com.esri.gpt.catalog.publication.UploadRequest.publish()

          request.verify();
          msgBroker.addSuccessMessage("catalog.publication.success.validated");
        } else {
          Publisher publisher = getSelectablePublishers().selectedAsPublisher(context,false);
          UploadRequest request = new UploadRequest(context,publisher,sFileName,sXml);
          request.publish();
          if (request.getPublicationRecord().getWasDocumentUnchanged()) {
            msgBroker.addSuccessMessage("publication.success.unchanged");
          } else if (request.getPublicationRecord().getWasDocumentReplaced()) {
            msgBroker.addSuccessMessage("publication.success.replaced");
          } else {
View Full Code Here

Examples of com.esri.gpt.catalog.publication.ValidationRequest.publish()

    EditorRequest request = new EditorRequest(context,publisher,sXml);
    request.getPublicationRecord().setUuid(getOpenDocumentUuid());
    if (asDraft) {
      request.getPublicationRecord().setApprovalStatus(MmdEnums.ApprovalStatus.draft.toString());
    }
    request.publish();
    setOpenDocumentUuid(request.getPublicationRecord().getUuid());
    if (asDraft) {
      msgBroker.addSuccessMessage("catalog.publication.success.draftSaved");
    } else {
      if (request.getPublicationRecord().getWasDocumentReplaced()) {
View Full Code Here

Examples of com.google.gwt.libideas.logging.shared.LogHandler.publish()

  public void log(Level level, String msg, String category, Throwable e) {
    if (isLoggable(level, category)) {
      for (int i = 0; i < handlers.size(); i++) {
        LogHandler handler = (LogHandler) handlers.get(i);
        if (allows(handler.getLevel(), level)) {
          handler.publish(msg, level, category, e);
        }
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.logging.client.HasWidgetsLogHandler.publish()

      gHandler.publish(record);
    } else if (!SaxonceApi.isLogHandlerExternal()) {
          HasWidgets loggingWidget = new LoggingPopup();
          HasWidgetsLogHandler hw = new HasWidgetsLogHandler(loggingWidget);
          mainLogger.addHandler(hw);
          hw.publish(record);
    }
  }

}
View Full Code Here

Examples of com.hazelcast.core.ITopic.publish()

        });
        List<Runnable> operations = new ArrayList<Runnable>();
        addOperation(operations, new Runnable() {
            public void run() {
                ITopic topic = hazelcast.getTopic("myTopic");
                topic.publish(String.valueOf(random.nextInt(100000000)));
                messagesSend.incrementAndGet();
            }
        }, 10);
        return operations;
    }
View Full Code Here

Examples of com.hlcl.rql.as.Page.publish()

    ProjectVariant projectVariant = project.getProjectVariantByName("project variant name");
    LanguageVariant languageVariant = project.getLanguageVariantByRfcLanguageId("en");

    Page currentPg = project.getPageById("34009");
    boolean withFollowingPages = false;
    currentPg.publish(withFollowingPages, projectVariant, languageVariant);
   
    currentPg.publish(withFollowingPages, projectVariant, languageVariant);
  }
}
View Full Code Here

Examples of com.lmax.disruptor.Sequenced.publish()

        final Sequenced sequencer = this.sequencer;

        for (long i = 0; i < ITERATIONS; i++)
        {
            long next = sequencer.next(batchSize);
            sequencer.publish((next - (batchSize - 1)), next);
        }

        latch.await();
        long end = System.currentTimeMillis();
        long opsPerSecond = (ITERATIONS * 1000L * batchSize) / (end - start);
View Full Code Here

Examples of com.logica.mycocktail.widgetlibrary.WidgetLibrary.publish()

        File file = new File(System.getProperty("java.io.tmpdir"),"widgetmap.wgt");
        FileOutputStream out = new FileOutputStream(file);
        W3CWidgetExporter.generateWgt(page, paramMap, out);
       
        WidgetLibrary widgetLibrary = new WookieImpl();
        widgetLibrary.publish(file);
    }
   
    private Map<String,String> transformRequestParamMap(Map<String,String[]> paramMap) {
        Map<String,String> map = new HashMap<String, String>();
        for (Map.Entry<String,String[]> entry : paramMap.entrySet()) {
View Full Code Here

Examples of com.logica.mycocktail.widgetlibrary.WookieImpl.publish()

        File file = new File(System.getProperty("java.io.tmpdir"),"widgetmap.wgt");
        FileOutputStream out = new FileOutputStream(file);
        W3CWidgetExporter.generateWgt(page, paramMap, out);
       
        WidgetLibrary widgetLibrary = new WookieImpl();
        widgetLibrary.publish(file);
    }
   
    private Map<String,String> transformRequestParamMap(Map<String,String[]> paramMap) {
        Map<String,String> map = new HashMap<String, String>();
        for (Map.Entry<String,String[]> entry : paramMap.entrySet()) {
View Full Code Here

Examples of com.netflix.eventbus.impl.EventBusImpl.publish()

            .withEventBus(eventBus)
            .withEventType(String.class)
            .withExpectedCount(1)
            .build();
       
        eventBus.publish(new String("Foo"));
        Assert.assertTrue(bridge.await(3,  TimeUnit.SECONDS));       
        Assert.assertEquals(1, bridge.getConsumeCount());
        Assert.assertEquals(0, bridge.getConsumeErrorCount());
    }  
   
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.