Class EditorUtils

java.lang.Object
sk.iway.iwcm.editor.util.EditorUtils

public class EditorUtils extends Object
  • Method Details

    • nonBreakingSpaceReplacement

      public static void nonBreakingSpaceReplacement(DocDetails editedDoc)
      V HTML kode stranky nahradi medzeru za nedelitelnu medzeru pred spojkami. Tie sa definuju v konf. premennej editorSingleCharNbsp.
      Parameters:
      editedDoc -
    • getCleanBody

      public static String getCleanBody(String data)
      Vrati orezany/ocisteny HTML kod: - definovany a - definovany konf. premennymi htmlImportStart a htmlImportEnd
      Parameters:
      data -
      Returns:
    • escapeInvalidCharacters

      public static String escapeInvalidCharacters(String text, Prop prop, List<NotifyBean> notify)
      Z textu odstrani neplatne znaky (napr. tlac strany a podobne, co sa moze nachadzat v PDF subore). Tie sa definuju v konf. premennej editorInvalidCharactersInDecFormat.
      Parameters:
      text -
      prop -
      notify -
      Returns:
    • getDataAsc

      public static String getDataAsc(String data, DocDetails editedDoc, boolean isLucene, javax.servlet.http.HttpServletRequest request)
      Vrati hodnotu pre full text vyhladavanie - stlpec data_asc v databaze
      Parameters:
      data -
      editedDoc -
      isLucene -
      request -
      Returns: