public class KernelServicesWsValidation extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CANCEL_TRANSACTION_FAILED |
static String |
DISPLAY_MESSAGE_FAILED |
static String |
GET_TRANSACTION_RESULT_FAILED |
static String |
START_TRANSACTION_FAILED |
Constructor and Description |
---|
KernelServicesWsValidation() |
Modifier and Type | Method and Description |
---|---|
static String |
checkAndGetId(Object id)
Checks if id of the property is correctly set.
|
static void |
checkOwner(com.kobil.ssms.kernel.logic.property.MiniPropertyOwner owner)
Checks if propertyOwner is correctly set.
|
static void |
validateBinaryValue(byte[] binaryValue) |
static void |
validateKey(String key) |
static void |
validateKeyWithoutNullEmpty(String key) |
static void |
validateNotNull(String parameter,
String parameterName,
javax.persistence.EntityManager em) |
static void |
validatePropertyFlags(KrnProperty krnProperty)
Check and refuse invalid property flag combinations
code was copied from MS7++-AsmServicesWs.validatePropertyFlags(AstProperty) |
static void |
validatePropertyParams(int flags,
short type,
byte[] binaryValue) |
static void |
validateStringValue(String stringValue) |
public static final String DISPLAY_MESSAGE_FAILED
public static final String START_TRANSACTION_FAILED
public static final String CANCEL_TRANSACTION_FAILED
public static final String GET_TRANSACTION_RESULT_FAILED
public static void validateNotNull(String parameter, String parameterName, javax.persistence.EntityManager em) throws KernelServicesWs.KernelServicesWSFault
public static void validateKey(String key) throws KernelServicesWs.KernelServicesWSFault
public static void validateKeyWithoutNullEmpty(String key) throws KernelServicesWs.KernelServicesWSFault
public static void validateBinaryValue(byte[] binaryValue) throws KernelServicesWs.KernelServicesWSFault
public static void validateStringValue(String stringValue) throws KernelServicesWs.KernelServicesWSFault
public static String checkAndGetId(Object id) throws KernelServicesWs.KernelServicesWSFault
id
- The passed id must not be null and must be of class String or org.w3c.dom.Element. The string must not be empty.KernelServicesWs.KernelServicesWSFault
- ErrorCodes.PARAMETER_INVALID if something is wrong with a passed parameterpublic static void checkOwner(com.kobil.ssms.kernel.logic.property.MiniPropertyOwner owner) throws KernelServicesWs.KernelServicesWSFault
owner
- The MiniPropertyOwner
of a property.KernelServicesWs.KernelServicesWSFault
- ErrorCodes.UNKNOWN_OWNER_TYPE if the owner type is nullpublic static void validatePropertyParams(int flags, short type, byte[] binaryValue) throws KernelServicesWs.KernelServicesWSFault
public static void validatePropertyFlags(KrnProperty krnProperty) throws KernelServicesWs.KernelServicesWSFault
krnProperty
- KernelServicesWs.KernelServicesWSFault
Copyright © 2022 KOBIL Systems GmbH. All rights reserved.