Tabnine Logo
PublisherCoreService.createPublishLog
Code IndexAdd Tabnine to your IDE (free)

How to use
createPublishLog
method
in
org.eclipse.dirigible.core.publisher.service.PublisherCoreService

Best Java code snippets using org.eclipse.dirigible.core.publisher.service.PublisherCoreService.createPublishLog (Showing top 1 results out of 315)

origin: org.eclipse.dirigible/dirigible-core-publisher

/**
 * Publish resource.
 *
 * @param entry
 *            the entry
 * @throws SynchronizationException
 *             the synchronization exception
 */
private void publishResource(Map.Entry<String, String> entry) throws SynchronizationException {
  String sourceLocation = entry.getKey();
  String targetLocation = entry.getValue();
  IResource sourceResource = getRepository().getResource(sourceLocation);
  IResource targetResource = getRepository().getResource(targetLocation);
  if (targetResource.exists()) {
    java.util.Date lastModified = targetResource.getInformation().getModifiedAt();
    if ((lastModified == null) || (currentRequestTime.getTime() > lastModified.getTime())) {
      targetResource.setContent(sourceResource.getContent());
    }
  } else {
    getRepository().createResource(targetLocation, sourceResource.getContent());
  }
  try {
    publishCoreService.createPublishLog(sourceResource.getPath(), targetResource.getPath());
  } catch (PublisherException e) {
    throw new SynchronizationException(e);
  }
}
org.eclipse.dirigible.core.publisher.servicePublisherCoreServicecreatePublishLog

Popular methods of PublisherCoreService

  • createPublishRequest
  • getLatestPublishLog
  • getPublishLogs
  • getPublishRequest
  • getPublishRequestsAfter
  • removePublishLog
  • removePublishRequest

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now