Package com.saperion.util
Class ClassicConnectorUtil
- java.lang.Object
-
- com.saperion.util.ClassicConnectorUtil
-
- All Implemented Interfaces:
java.io.Serializable
public class ClassicConnectorUtil extends java.lang.Object implements java.io.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 operationOperation
.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassicConnectorUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
addAll(java.util.List<T> source, java.util.Properties dest)
Generic method to add all elements from source into dest.void
checkFolderName(java.lang.String name)
Check folder name.void
checkProperties(SaFieldDescription[] fields, java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, boolean skipMandatoryCheck, java.lang.String ddcName)
void
checkProperties(SaFieldDescription[] fields, java.util.Properties props, boolean skipMandatoryCheck, java.lang.String ddcName)
Check properties.void
checkProperties(Description description, SaFieldDescription[] fields)
Check properties.void
checkProperties(java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, java.lang.String ddcName, SaFieldDescription[] fields)
Check properties.java.util.List<SaPropertyValue>
getSAPropertyValues(java.lang.String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, java.util.Properties namevaluePair)
Returns the SaPropertyValue Array for the given ddcname and properties.boolean
skipMandatoryCheckForFolder(java.util.Properties nameValuePairs, java.lang.String nodeType)
Skip mandatory check for folder.boolean
validatedQueryString(java.lang.String hqlQuery)
Validated query string.
-
-
-
Method Detail
-
skipMandatoryCheckForFolder
public boolean skipMandatoryCheckForFolder(java.util.Properties nameValuePairs, java.lang.String nodeType)
Skip mandatory check for folder.- Parameters:
nameValuePairs
- the name value pairsnodeType
- the node type- Returns:
- true, if successful
-
getSAPropertyValues
public java.util.List<SaPropertyValue> getSAPropertyValues(java.lang.String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, java.util.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, java.util.Properties props, boolean skipMandatoryCheck, java.lang.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(java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, java.lang.String ddcName, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationException
Check 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, java.util.Map<java.lang.String,java.lang.Object> nameValuePairs, boolean skipMandatoryCheck, java.lang.String ddcName) throws SaSystemException
- Throws:
SaSystemException
-
checkFolderName
public void checkFolderName(java.lang.String name) throws SaFolderNameException
Check folder name.- Parameters:
name
- the name- Throws:
SaFolderNameException
- the sa folder name exception
-
validatedQueryString
public boolean validatedQueryString(java.lang.String hqlQuery) throws SaSystemException
Validated query string.- Parameters:
hqlQuery
- the hql query- Returns:
- true, if successful
- Throws:
SaSystemException
- the sa system exception
-
addAll
public final <T> void addAll(java.util.List<T> source, java.util.Properties dest)
Generic method to add all elements from source into dest.
-
-