public class ImportCockpitUtils
extends java.lang.Object
| Constructor and Description |
|---|
ImportCockpitUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CatalogVersionModel |
getCatalogVersion(java.lang.String id,
java.lang.String version)
Retrieves the catalog version with the specifies catalog id and version string.
|
static PropertyDescriptor |
getPropertyDescriptor(java.lang.String propertyQualifier) |
static boolean |
isMappingLineForPartOfAttribute(MappingLineModel mappingLineModel)
Checks if the specified mapping mappingLineModel refers to a "part of" attribute.
|
static <T> T |
readSecurelyFromXML(java.io.Reader reader,
java.lang.Class[] rootTypes)
Method allows to prevent XXE (XML External Entity Injection() attacks via xml.
|
public static CatalogVersionModel getCatalogVersion(java.lang.String id, java.lang.String version)
id - catalog idversion - public static boolean isMappingLineForPartOfAttribute(MappingLineModel mappingLineModel)
mappingLineModel - public static PropertyDescriptor getPropertyDescriptor(java.lang.String propertyQualifier)
propertyQualifier - as Stringpublic static <T> T readSecurelyFromXML(java.io.Reader reader,
java.lang.Class[] rootTypes)
throws javax.xml.bind.JAXBException,
javax.xml.stream.XMLStreamException
T - required type of resultreader - original non-secured readerrootTypes - expected typesjavax.xml.bind.JAXBExceptionjavax.xml.stream.XMLStreamExceptionCopyright © 2018 SAP SE. All Rights Reserved.