Package sk.iway.iwcm.common
Class EditorToolsForCore
java.lang.Object
sk.iway.iwcm.common.EditorToolsForCore
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EditFormfillEditFormFromFile(String dir, String file, boolean alsoData, Identity user) naplni EditForm zo suboru zadaneho pomocou dir,filestatic StringgetDataAsc(String data, EditorForm ef) Pripravi data_asc pre full text hladanie (ak vkladate do DB priamo - mimo saveEditorForm)static StringgetDataAsc(String data, EditorForm ef, boolean isLucene) static StringgetDataAsc(String data, EditorForm ef, boolean isLucene, javax.servlet.http.HttpServletRequest request) static StringremoveCommandKeepLength(String html_text, String commandStart, String commandEnd) Odstrani z HTML kodu riadiace bloky typu !INCLUDE(...)!, !PARAM(...)!, pricom zachova dlzku retazcastatic StringremoveHtmlTagsKeepLength(String html_text) Remove from string html tags and keep the length of stringstatic StringrenderIncludes(String data, boolean addInternationalToEnglishSection, javax.servlet.http.HttpServletRequest request) static StringrenderIncludes(DocDetails doc, boolean addInternationalToEnglishSection, javax.servlet.http.HttpServletRequest request) static voidsetVirtualPath(EditorForm my_form) Nastavi formu virtualPath
-
Field Details
-
RENDER_DATA_SEPARATOR
-
-
Method Details
-
setVirtualPath
Nastavi formu virtualPath- Parameters:
my_form-
-
getDataAsc
public static String getDataAsc(String data, EditorForm ef, boolean isLucene, javax.servlet.http.HttpServletRequest request) -
renderIncludes
public static String renderIncludes(DocDetails doc, boolean addInternationalToEnglishSection, javax.servlet.http.HttpServletRequest request) -
renderIncludes
-
removeHtmlTagsKeepLength
Remove from string html tags and keep the length of string -
removeCommandKeepLength
public static String removeCommandKeepLength(String html_text, String commandStart, String commandEnd) Odstrani z HTML kodu riadiace bloky typu !INCLUDE(...)!, !PARAM(...)!, pricom zachova dlzku retazca -
getDataAsc
Pripravi data_asc pre full text hladanie (ak vkladate do DB priamo - mimo saveEditorForm)- Parameters:
data-ef-- Returns:
-
getDataAsc
-
fillEditFormFromFile
public static EditForm fillEditFormFromFile(String dir, String file, boolean alsoData, Identity user) naplni EditForm zo suboru zadaneho pomocou dir,file- Returns:
-