Package com.saperion.util
Class ClassicConnectorUtil
java.lang.Object
com.saperion.util.ClassicConnectorUtil
- All Implemented Interfaces:
Serializable
Utility class for ClassicConnector/RMI functions.
This utility methods are moved from the ClassicConnector class to this class to provide the available function to transaction operation
Operation.
Used on both side, Client Side (ClassicConnector) and Service Side Operation.
No static methods are used here to avoid multithreading problems in the CC context.
Each CC should use one ClassicConnectorUtil object (aggregation).
- Author:
- buw
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> voidaddAll(List<T> source, Properties dest) Generic method to add all elements from source into dest.voidcheckFolderName(String name) Check folder name.voidcheckProperties(SaFieldDescription[] fields, Map<String, Object> nameValuePairs, boolean skipMandatoryCheck, String ddcName) voidcheckProperties(SaFieldDescription[] fields, Properties props, boolean skipMandatoryCheck, String ddcName) Check properties.voidcheckProperties(Description description, SaFieldDescription[] fields) Check properties.voidcheckProperties(Map<String, Object> nameValuePairs, String ddcName, SaFieldDescription[] fields) Check properties.getSAPropertyValues(String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, Properties namevaluePair) Returns the SaPropertyValue Array for the given ddcname and properties.booleanskipMandatoryCheckForFolder(Properties nameValuePairs, String nodeType) Skip mandatory check for folder.booleanvalidatedQueryString(String hqlQuery) Validated query string.
-
Constructor Details
-
ClassicConnectorUtil
public ClassicConnectorUtil()
-
-
Method Details
-
skipMandatoryCheckForFolder
Skip mandatory check for folder.- Parameters:
nameValuePairs- the name value pairsnodeType- the node type- Returns:
- true, if successful
-
getSAPropertyValues
public List<SaPropertyValue> getSAPropertyValues(String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, Properties namevaluePair) throws SaperionDataType.DataTypeConversionException Returns the SaPropertyValue Array for the given ddcname and properties.- Parameters:
ddcname- the ddcnamesaJNIFieldDescriptionArray- the sa jni field description arraynamevaluePair- the namevalue pair- Returns:
- SaPropertyValue[]
- Throws:
SaperionDataType.DataTypeConversionException- the data type conversion exception
-
checkProperties
public void checkProperties(SaFieldDescription[] fields, Properties props, boolean skipMandatoryCheck, String ddcName) throws SaSystemException Check properties.- Parameters:
fields- the fieldsprops- the propsskipMandatoryCheck- the skip mandatory checkddcName- the ddc name- Throws:
SaSystemException- the sa system exception
-
checkProperties
public void checkProperties(Description description, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationException Check properties.- Parameters:
description- the descriptionfields- the fields- Throws:
SaSystemException- the sa system exceptionSaAuthenticationException- the sa authentication exception
-
checkProperties
public void checkProperties(Map<String, Object> nameValuePairs, String ddcName, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationExceptionCheck properties.- Parameters:
nameValuePairs- metadatafields- the fieldsddcName- name of the ddc- Throws:
SaSystemException- the sa system exceptionSaAuthenticationException- the sa authentication exception
-
checkProperties
public void checkProperties(SaFieldDescription[] fields, Map<String, Object> nameValuePairs, boolean skipMandatoryCheck, String ddcName) throws SaSystemException- Throws:
SaSystemException
-
checkFolderName
Check folder name.- Parameters:
name- the name- Throws:
SaFolderNameException- the sa folder name exception
-
validatedQueryString
Validated query string.- Parameters:
hqlQuery- the hql query- Returns:
- true, if successful
- Throws:
SaSystemException- the sa system exception
-
addAll
Generic method to add all elements from source into dest.
-