I_CmsSynchronizeModification
Code IndexAdd Codota to your IDE (free)

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

origin: org.opencms/opencms-solr

/**
 * Translates the resource name.  <p>
 * 
 * This is necessary since the server RFS does allow different naming 
 * conventions than the VFS.
 * 
 * @param name the resource name to be translated
 * @return the translated resource name
 */
private String translate(String name) {
  String translation = null;
  // test if an external translation should be used
  Iterator i = m_synchronizeModifications.iterator();
  while (i.hasNext()) {
    try {
      translation = ((I_CmsSynchronizeModification)i.next()).translate(m_cms, name);
    } catch (CmsSynchronizeException e) {
      if (LOG.isInfoEnabled()) {
        LOG.info(Messages.get().getBundle().key(Messages.LOG_EXTERNAL_TRANSLATION_1, name), e);
      }
      break;
    }
  }
  // if there was no external method called, do the default OpenCms 
  // RFS-VFS translation
  if (translation == null) {
    translation = m_cms.getRequestContext().getFileTranslator().translateResource(name);
  }
  return translation;
}
origin: org.opencms/opencms-solr

while (i.hasNext()) {
  try {
    ((I_CmsSynchronizeModification)i.next()).modifyVfs(m_cms, newFolder, fsFile);
  } catch (CmsSynchronizeException e1) {
    break;
origin: org.opencms/opencms-solr

while (i.hasNext()) {
  try {
    ((I_CmsSynchronizeModification)i.next()).modifyFs(m_cms, vfsFile, fsFile);
  } catch (CmsSynchronizeException e) {
    if (LOG.isWarnEnabled()) {
origin: org.opencms/opencms-core

while (i.hasNext()) {
  try {
    i.next().modifyVfs(m_cms, newFolder, fsFile);
  } catch (CmsSynchronizeException e1) {
    break;
origin: org.opencms/opencms-core

while (i.hasNext()) {
  try {
    i.next().modifyFs(m_cms, vfsFile, fsFile);
  } catch (CmsSynchronizeException e) {
    if (LOG.isWarnEnabled()) {
origin: org.opencms/opencms-solr

while (i.hasNext()) {
  try {
    ((I_CmsSynchronizeModification)i.next()).modifyVfs(m_cms, newFile, fsFile);
  } catch (CmsSynchronizeException e) {
    break;
origin: org.opencms/opencms-core

/**
 * Translates the resource name.  <p>
 *
 * This is necessary since the server RFS does allow different naming
 * conventions than the VFS.
 *
 * @param name the resource name to be translated
 * @return the translated resource name
 */
private String translate(String name) {
  String translation = null;
  // test if an external translation should be used
  Iterator<I_CmsSynchronizeModification> i = m_synchronizeModifications.iterator();
  while (i.hasNext()) {
    try {
      translation = i.next().translate(m_cms, name);
    } catch (CmsSynchronizeException e) {
      if (LOG.isInfoEnabled()) {
        LOG.info(Messages.get().getBundle().key(Messages.LOG_EXTERNAL_TRANSLATION_1, name), e);
      }
      break;
    }
  }
  // if there was no external method called, do the default OpenCms
  // RFS-VFS translation
  if (translation == null) {
    translation = m_cms.getRequestContext().getFileTranslator().translateResource(name);
  }
  return translation;
}
origin: org.opencms/opencms-core

while (i.hasNext()) {
  try {
    i.next().modifyVfs(m_cms, newFile, fsFile);
  } catch (CmsSynchronizeException e) {
    break;
origin: org.opencms/opencms-core

while (i.hasNext()) {
  try {
    i.next().modifyVfs(m_cms, vfsFile, fsFile);
  } catch (CmsSynchronizeException e) {
    if (LOG.isInfoEnabled()) {
origin: org.opencms/opencms-solr

while (i.hasNext()) {
  try {
    ((I_CmsSynchronizeModification)i.next()).modifyVfs(m_cms, vfsFile, fsFile);
  } catch (CmsSynchronizeException e) {
    if (LOG.isInfoEnabled()) {
org.opencms.synchronizeI_CmsSynchronizeModification

Javadoc

Defines methods which can be pluged into the syncronisation process between VFS and "real" FS.

Most used methods

  • modifyFs
    Possibility to modify a resource after it has benn exported or updated to the FS.
  • modifyVfs
    Possibility to modify a resource after it has been imported or updated into the VFS.
  • translate
    Translates the resource name. This is nescessary since the server FS does allow different naming con

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled

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)