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