CmsSynchronize
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.opencms.synchronize.CmsSynchronize (Showing top 16 results out of 315)

origin: org.opencms/opencms-core

m_syncList = readSyncList();
m_newSyncList = new HashMap<String, CmsSynchronizeList>();
    I_CmsReport.FORMAT_HEADLINE);
  syncVfsToRfs(sourcePathInVfs);
removeFromRfs(m_destinationPathInRfs);
i = settings.getSourceListInVfs().iterator();
  copyFromRfs(i.next());
writeSyncList();
origin: org.opencms/opencms-solr

action = testSyncVfs(res);
  exportToRfs(res);
} else if (action != DELETE_VFS) {
  skipResource(res);
syncVfsToRfs(m_cms.getSitePath(res));
if (action == DELETE_VFS) {
  deleteFromVfs(res);
action = testSyncVfs(res);
    exportToRfs(res);
    break;
    updateFromRfs(res);
    break;
    deleteFromVfs(res);
    break;
    skipResource(res);
origin: org.opencms/opencms-core

if (m_syncList.containsKey(translate(resourcename))) {
  CmsSynchronizeList sync = m_syncList.get(translate(resourcename));
  fsFile = getFileInRfs(sync.getResName());
origin: org.opencms/opencms-core

if (isExcluded(res[i])) {
  continue;
String vfsFile = getFilenameInVfs(res[i]);
  removeFromRfs(res[i].getAbsolutePath());
CmsSynchronizeList sync = m_syncList.get(translate(vfsFile));
  m_syncList.remove(translate(vfsFile));
origin: org.opencms/opencms-solr

File fsFile = getFileInRfs(folder);
  m_cms.readFolder(translate(folder), CmsResourceFilter.IGNORE_EXPIRATION);
} catch (CmsException e) {
  String foldername = translate(folder);
  m_report.print(org.opencms.report.Messages.get().container(
    org.opencms.report.Messages.RPT_SUCCESSION_1,
      if (!m_newSyncList.containsKey(translate(resname))) {
        importToVfs(res[i], resname, folder);
      copyFromRfs(resname + "/");
origin: org.opencms/opencms-solr

CmsSynchronizeList sync = (CmsSynchronizeList)m_syncList.get(translate(m_cms.getSitePath(res)));
  resourcename += "/";
fsFile = getFileInRfs(resourcename);
        createNewLocalFile(fsFile);
        writeFileByte(vfsFile.getContents(), fsFile);
      } catch (IOException e) {
        throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_WRITE_FILE_0));
      translate(resourcename),
      res.getDateLastModified(),
      fsFile.lastModified());
    m_newSyncList.put(translate(resourcename), syncList);
    m_syncList.remove(translate(resourcename));
    m_report.println(
      org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0),
origin: org.opencms/opencms-solr

String vfsFile = getFilenameInVfs(res[i]);
  removeFromRfs(res[i].getAbsolutePath());
CmsSynchronizeList sync = (CmsSynchronizeList)m_syncList.get(translate(vfsFile));
  m_syncList.remove(translate(vfsFile));
origin: org.opencms/opencms-solr

  /**
   * @see java.lang.Runnable#run()
   */
  @Override
  public void run() {

    I_CmsReport report = getReport();

    report.println(Messages.get().container(Messages.RPT_SYNCHRONIZE_BEGIN_0), I_CmsReport.FORMAT_HEADLINE);
    try {
      new CmsSynchronize(getCms(), m_settings, getReport());
    } catch (Throwable e) {
      m_error = e;
      report.println(e);
    }
    report.println(Messages.get().container(Messages.RPT_SYNCHRONIZE_END_0), I_CmsReport.FORMAT_HEADLINE);
  }
}
origin: org.opencms/opencms-core

File fsFile = getFileInRfs(folder);
  m_cms.readFolder(translate(folder), CmsResourceFilter.IGNORE_EXPIRATION);
} catch (CmsException e) {
  String foldername = translate(folder);
  m_report.print(org.opencms.report.Messages.get().container(
    org.opencms.report.Messages.RPT_SUCCESSION_1,
    if (isExcluded(res[i])) {
      continue;
      if (!m_newSyncList.containsKey(translate(resname))) {
        importToVfs(res[i], resname, folder);
      copyFromRfs(resname + "/");
origin: org.opencms/opencms-core

CmsSynchronizeList sync = m_syncList.get(translate(m_cms.getSitePath(res)));
  resourcename += "/";
fsFile = getFileInRfs(resourcename);
        createNewLocalFile(fsFile);
        writeFileByte(vfsFile.getContents(), fsFile);
      } catch (IOException e) {
        throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_WRITE_FILE_0));
      translate(resourcename),
      res.getDateLastModified(),
      fsFile.lastModified());
    m_newSyncList.put(translate(resourcename), syncList);
    m_syncList.remove(translate(resourcename));
    m_report.println(
      org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0),
origin: org.opencms/opencms-core

  /**
   * @see java.lang.Runnable#run()
   */
  @Override
  public void run() {

    I_CmsReport report = getReport();

    report.println(Messages.get().container(Messages.RPT_SYNCHRONIZE_BEGIN_0), I_CmsReport.FORMAT_HEADLINE);
    try {
      new CmsSynchronize(getCms(), m_settings, getReport());
    } catch (Throwable e) {
      m_error = e;
      report.println(e);
    }
    report.println(Messages.get().container(Messages.RPT_SYNCHRONIZE_END_0), I_CmsReport.FORMAT_HEADLINE);
  }
}
origin: org.opencms/opencms-core

action = testSyncVfs(res);
  exportToRfs(res);
} else if (action != DELETE_VFS) {
  skipResource(res);
syncVfsToRfs(m_cms.getSitePath(res));
if (action == DELETE_VFS) {
  deleteFromVfs(res);
action = testSyncVfs(res);
    exportToRfs(res);
    break;
    updateFromRfs(res);
    break;
    deleteFromVfs(res);
    break;
    skipResource(res);
origin: org.opencms/opencms-solr

m_syncList = readSyncList();
m_newSyncList = new HashMap();
    destPath), I_CmsReport.FORMAT_HEADLINE);
  syncVfsToRfs(sourcePathInVfs);
removeFromRfs(m_destinationPathInRfs);
i = settings.getSourceListInVfs().iterator();
  copyFromRfs((String)i.next());
writeSyncList();
origin: org.opencms/opencms-solr

if (m_syncList.containsKey(translate(resourcename))) {
  CmsSynchronizeList sync = (CmsSynchronizeList)m_syncList.get(translate(resourcename));
  fsFile = getFileInRfs(sync.getResName());
origin: org.opencms/opencms-core

CmsSynchronizeList sync = m_syncList.get(translate(resourcename));
File fsFile = getFileInRfs(sync.getResName());
  translate(resourcename),
  res.getDateLastModified(),
  fsFile.lastModified());
m_newSyncList.put(translate(resourcename), syncList);
m_syncList.remove(translate(resourcename));
vfsFile = null;
origin: org.opencms/opencms-solr

CmsSynchronizeList sync = (CmsSynchronizeList)m_syncList.get(translate(resourcename));
File fsFile = getFileInRfs(sync.getResName());
  translate(resourcename),
  res.getDateLastModified(),
  fsFile.lastModified());
m_newSyncList.put(translate(resourcename), syncList);
m_syncList.remove(translate(resourcename));
vfsFile = null;
org.opencms.synchronizeCmsSynchronize

Javadoc

Contains all methods to synchronize the VFS with the "real" FS.

Most used methods

  • <init>
    Creates a new CmsSynchronize object which automatically start the synchronization process.
  • copyFromRfs
    Copys all resources from the FS which are not existing in the VFS yet.
  • createNewLocalFile
    Creates a new file on the server FS.
  • deleteFromVfs
    Deletes a resource in the VFS and updates the synchronisation lists.
  • exportToRfs
    Exports a resource from the VFS to the FS and updates the synchronization lists.
  • getFileInRfs
    Gets the corresponding file to a resource in the VFS.
  • getFilenameInVfs
    Gets the corresponding filename of the VFS to a resource in the FS.
  • importToVfs
    Imports a new resource from the FS into the VFS and updates the synchronization lists.
  • readSyncList
    Reads the synchronization list from the last sync process form the file system and stores the inform
  • removeFromRfs
    Removes all resources in the RFS which are deleted in the VFS.
  • skipResource
    Updates the synchronization lists if a resource is not used during the synchronization process.
  • syncVfsToRfs
    Synchronizes resources from the VFS to the RFS. During the synchronization process, the following a
  • skipResource,
  • syncVfsToRfs,
  • testSyncVfs,
  • translate,
  • updateFromRfs,
  • writeFileByte,
  • writeSyncList,
  • isExcluded

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • orElseThrow (Optional)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTable (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)