Class TurAemCommonsUtils
Object
TurAemCommonsUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddItemInExistingAttribute(String attributeValue, Map<String, Object> attributes, String attributeName) static @NotNull List<TurSNJobAttributeSpec> castSpecToJobSpec(List<TurSNAttributeSpec> turSNAttributeSpecList) static booleanstatic voidstatic Optional<TurAemObject> getAemObject(String url, TurAemSourceContext turAemSourceContext, boolean cached) static List<TurSNAttributeSpec> getDefinitionFromModel(List<TurSNAttributeSpec> turSNAttributeSpecList, Map<String, Object> targetAttrMap) static @NotNull DategetDeltaDate(TurAemObject aemObject) static Optional<JSONObject> getInfinityJson(String url, TurAemSourceContext turAemSourceContext, boolean cached) static voidgetJsonNodeToComponent(JSONObject jsonObject, StringBuilder components) static LocalegetLocaleByPath(TurAemSourceContext turAemSourceContext, String path) static LocalegetLocaleFromAemObject(TurAemSourceContext turAemSourceContext, TurAemObject aemObject) static LocalegetLocaleFromContext(TurAemSourceContext turAemSourceContext, TurCmsContext context) static StringgetPropertyValue(Object property) getResponseBody(String url, TurAemSourceContext turAemSourceContext, boolean cached) static <T> Optional<T> getResponseBody(String url, TurAemSourceContext turAemSourceContext, Class<T> clazz, boolean cached) getSiteName(JSONObject jsonSite) static booleanhasProperty(JSONObject jsonObject, String property) static booleanisResponseBodyJSONArray(String responseBody) static booleanisResponseBodyJSONObject(String responseBody) static TurCmsTargetAttrValueMaprunCustomClassFromContentType(TurCmsModel turCmsModel, TurAemObject aemObject, TurAemSourceContext turAemSourceContext)
-
Field Details
-
JCR_CONTENT
- See Also:
-
JCR_TITLE
- See Also:
-
-
Method Details
-
runCustomClassFromContentType
public static TurCmsTargetAttrValueMap runCustomClassFromContentType(TurCmsModel turCmsModel, TurAemObject aemObject, TurAemSourceContext turAemSourceContext) -
addFirstItemToAttribute
-
getDeltaDate
-
getDefinitionFromModel
public static List<TurSNAttributeSpec> getDefinitionFromModel(List<TurSNAttributeSpec> turSNAttributeSpecList, Map<String, Object> targetAttrMap) -
getSiteName
-
checkIfFileHasNotImageExtension
-
addItemInExistingAttribute
-
castSpecToJobSpec
@NotNull public static @NotNull List<TurSNJobAttributeSpec> castSpecToJobSpec(List<TurSNAttributeSpec> turSNAttributeSpecList) -
getLocaleByPath
-
getLocaleFromAemObject
public static Locale getLocaleFromAemObject(TurAemSourceContext turAemSourceContext, TurAemObject aemObject) -
getAemObject
public static Optional<TurAemObject> getAemObject(String url, TurAemSourceContext turAemSourceContext, boolean cached) -
getInfinityJson
public static Optional<JSONObject> getInfinityJson(String url, TurAemSourceContext turAemSourceContext, boolean cached) -
hasProperty
-
getPropertyValue
-
isResponseBodyJSONArray
-
isResponseBodyJSONObject
-
getResponseBody
public static <T> Optional<T> getResponseBody(String url, TurAemSourceContext turAemSourceContext, Class<T> clazz, boolean cached) -
getResponseBody
public static Optional<String> getResponseBody(String url, TurAemSourceContext turAemSourceContext, boolean cached) -
getJsonNodeToComponent
-
getLocaleFromContext
public static Locale getLocaleFromContext(TurAemSourceContext turAemSourceContext, TurCmsContext context) -
cleanCache
public static void cleanCache()
-