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 SummaryConstructors
- 
Method SummaryModifier 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- 
ClassicConnectorUtilpublic ClassicConnectorUtil()
 
- 
- 
Method Details- 
skipMandatoryCheckForFolderSkip mandatory check for folder.- Parameters:
- nameValuePairs- the name value pairs
- nodeType- the node type
- Returns:
- true, if successful
 
- 
getSAPropertyValuespublic 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 ddcname
- saJNIFieldDescriptionArray- the sa jni field description array
- namevaluePair- the namevalue pair
- Returns:
- SaPropertyValue[]
- Throws:
- SaperionDataType.DataTypeConversionException- the data type conversion exception
 
- 
checkPropertiespublic void checkProperties(SaFieldDescription[] fields, Properties props, boolean skipMandatoryCheck, String ddcName) throws SaSystemException Check properties.- Parameters:
- fields- the fields
- props- the props
- skipMandatoryCheck- the skip mandatory check
- ddcName- the ddc name
- Throws:
- SaSystemException- the sa system exception
 
- 
checkPropertiespublic void checkProperties(Description description, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationException Check properties.- Parameters:
- description- the description
- fields- the fields
- Throws:
- SaSystemException- the sa system exception
- SaAuthenticationException- the sa authentication exception
 
- 
checkPropertiespublic void checkProperties(Map<String, Object> nameValuePairs, String ddcName, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationExceptionCheck properties.- Parameters:
- nameValuePairs- metadata
- fields- the fields
- ddcName- name of the ddc
- Throws:
- SaSystemException- the sa system exception
- SaAuthenticationException- the sa authentication exception
 
- 
checkPropertiespublic void checkProperties(SaFieldDescription[] fields, Map<String, Object> nameValuePairs, boolean skipMandatoryCheck, String ddcName) throws SaSystemException- Throws:
- SaSystemException
 
- 
checkFolderNameCheck folder name.- Parameters:
- name- the name
- Throws:
- SaFolderNameException- the sa folder name exception
 
- 
validatedQueryStringValidated query string.- Parameters:
- hqlQuery- the hql query
- Returns:
- true, if successful
- Throws:
- SaSystemException- the sa system exception
 
- 
addAllGeneric method to add all elements from source into dest.
 
-