/** * 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; }
while (i.hasNext()) { try { ((I_CmsSynchronizeModification)i.next()).modifyVfs(m_cms, newFolder, fsFile); } catch (CmsSynchronizeException e1) { break;
while (i.hasNext()) { try { ((I_CmsSynchronizeModification)i.next()).modifyFs(m_cms, vfsFile, fsFile); } catch (CmsSynchronizeException e) { if (LOG.isWarnEnabled()) {
while (i.hasNext()) { try { i.next().modifyVfs(m_cms, newFolder, fsFile); } catch (CmsSynchronizeException e1) { break;
while (i.hasNext()) { try { i.next().modifyFs(m_cms, vfsFile, fsFile); } catch (CmsSynchronizeException e) { if (LOG.isWarnEnabled()) {
while (i.hasNext()) { try { ((I_CmsSynchronizeModification)i.next()).modifyVfs(m_cms, newFile, fsFile); } catch (CmsSynchronizeException e) { break;
/** * 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; }
while (i.hasNext()) { try { i.next().modifyVfs(m_cms, newFile, fsFile); } catch (CmsSynchronizeException e) { break;
while (i.hasNext()) { try { i.next().modifyVfs(m_cms, vfsFile, fsFile); } catch (CmsSynchronizeException e) { if (LOG.isInfoEnabled()) {
while (i.hasNext()) { try { ((I_CmsSynchronizeModification)i.next()).modifyVfs(m_cms, vfsFile, fsFile); } catch (CmsSynchronizeException e) { if (LOG.isInfoEnabled()) {