类 ExtendUtils
java.lang.Object
com.publiccms.common.tools.ExtendUtils
ExtendUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
decodeField
(Map<String, String> map, String sitePath, List<SysExtendField> extendFieldList) private static void
decodeField
(Map<String, String> map, String sitePath, Set<String> notSafeKeys, BiConsumer<SysExtendField, String> searchableConsumer, List<SysExtendField> extendFieldList) getAttributeMap
(CmsCategoryAttribute attribute) getAttributeMap
(CmsContentAttribute attribute, ContentConfigComponent.KeywordsConfig keywordsConfig) getAttributeMap
(CmsPlaceAttribute attribute) getAttributeMap
(SysUserAttribute attribute) getExtendMap
(String data) static String
getExtendString
(Map<String, String> map) static String
getExtendString
(Map<String, String> map, String sitePath, BiConsumer<SysExtendField, String> searchableConsumer, List<SysExtendField>... extendFieldListArrays) static String
getExtendString
(Map<String, String> map, String sitePath, List<SysExtendField>... extendFieldListArrays) private static String
replaceEachOnce
(String text, String[] searchList, String[] replacementList, AtomicInteger counter) static String
replaceSensitive
(String text, ContentConfigComponent.KeywordsConfig keywordsConfig) static String
replaceText
(String html, ContentConfigComponent.KeywordsConfig keywordsConfig)
-
字段详细资料
-
HTML_PATTERN
-
-
构造器详细资料
-
ExtendUtils
private ExtendUtils()
-
-
方法详细资料
-
getAttributeMap
- 参数:
attribute
-- 返回:
- extent map
-
getAttributeMap
public static Map<String,String> getAttributeMap(@Nullable CmsContentAttribute attribute, @Nullable ContentConfigComponent.KeywordsConfig keywordsConfig) - 参数:
attribute
-keywordsConfig
-- 返回:
- extent map
-
replaceEachOnce
private static String replaceEachOnce(String text, String[] searchList, String[] replacementList, AtomicInteger counter) -
replaceSensitive
public static String replaceSensitive(@Nullable String text, @Nullable ContentConfigComponent.KeywordsConfig keywordsConfig) - 参数:
text
-keywordsConfig
-- 返回:
-
replaceText
public static String replaceText(@Nullable String html, @Nullable ContentConfigComponent.KeywordsConfig keywordsConfig) - 参数:
html
-keywordsConfig
-- 返回:
-
getAttributeMap
- 参数:
attribute
-- 返回:
- extent map
-
getAttributeMap
- 参数:
attribute
-- 返回:
- extent map
-
getExtendMap
- 参数:
data
-- 返回:
- extent map
-
getExtendString
@SafeVarargs public static String getExtendString(Map<String, String> map, @Nullable String sitePath, List<SysExtendField>... extendFieldListArrays) - 参数:
map
-sitePath
-extendFieldListArrays
-- 返回:
- extend string
-
decodeField
public static void decodeField(Map<String, String> map, @Nullable String sitePath, @Nullable List<SysExtendField> extendFieldList) - 参数:
map
-sitePath
-extendFieldList
-notSafeKeys
-searchableConsumer
-
-
decodeField
private static void decodeField(Map<String, String> map, String sitePath, Set<String> notSafeKeys, BiConsumer<SysExtendField, String> searchableConsumer, List<SysExtendField> extendFieldList) - 参数:
map
-sitePath
-notSafeKeys
-searchableConsumer
-extendFieldList
-
-
getExtendString
@SafeVarargs public static String getExtendString(@Nullable Map<String, String> map, @Nullable String sitePath, @Nullable BiConsumer<SysExtendField, String> searchableConsumer, @Nullable List<SysExtendField>... extendFieldListArrays) - 参数:
map
-sitePath
-searchableConsumer
-extendFieldListArrays
-- 返回:
- extend string
-
getExtendString
-