public class ClassicConnectorUtil extends Object implements Serializable
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).
| Constructor and Description |
|---|
ClassicConnectorUtil() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addAll(List<T> source,
Properties dest)
Generic method to add all elements from source into dest.
|
void |
checkFolderName(String name)
Check folder name.
|
void |
checkProperties(Description description,
SaFieldDescription[] fields)
Check properties.
|
void |
checkProperties(Map<String,Object> nameValuePairs,
String ddcName,
SaFieldDescription[] fields)
Check properties.
|
void |
checkProperties(SaFieldDescription[] fields,
Map<String,Object> nameValuePairs,
boolean skipMandatoryCheck,
String ddcName) |
void |
checkProperties(SaFieldDescription[] fields,
Properties props,
boolean skipMandatoryCheck,
String ddcName)
Check properties.
|
List<SaPropertyValue> |
getSAPropertyValues(String ddcname,
SaFieldDescription[] saJNIFieldDescriptionArray,
Properties namevaluePair)
Returns the SaPropertyValue Array for the given ddcname and properties.
|
boolean |
skipMandatoryCheckForFolder(Properties nameValuePairs,
String nodeType)
Skip mandatory check for folder.
|
boolean |
validatedQueryString(String hqlQuery)
Validated query string.
|
public boolean skipMandatoryCheckForFolder(Properties nameValuePairs, String nodeType)
nameValuePairs - the name value pairsnodeType - the node typepublic List<SaPropertyValue> getSAPropertyValues(String ddcname, SaFieldDescription[] saJNIFieldDescriptionArray, Properties namevaluePair) throws SaperionDataType.DataTypeConversionException
ddcname - the ddcnamesaJNIFieldDescriptionArray - the sa jni field description arraynamevaluePair - the namevalue pairSaperionDataType.DataTypeConversionException - the data type conversion exceptionpublic void checkProperties(SaFieldDescription[] fields, Properties props, boolean skipMandatoryCheck, String ddcName) throws SaSystemException
fields - the fieldsprops - the propsskipMandatoryCheck - the skip mandatory checkddcName - the ddc nameSaSystemException - the sa system exceptionpublic void checkProperties(Description description, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationException
description - the descriptionfields - the fieldsSaSystemException - the sa system exceptionSaAuthenticationException - the sa authentication exceptionpublic void checkProperties(Map<String,Object> nameValuePairs, String ddcName, SaFieldDescription[] fields) throws SaSystemException, SaAuthenticationException
nameValuePairs - metadatafields - the fieldsddcName - name of the ddcSaSystemException - the sa system exceptionSaAuthenticationException - the sa authentication exceptionpublic void checkProperties(SaFieldDescription[] fields, Map<String,Object> nameValuePairs, boolean skipMandatoryCheck, String ddcName) throws SaSystemException
SaSystemExceptionpublic void checkFolderName(String name) throws SaFolderNameException
name - the nameSaFolderNameException - the sa folder name exceptionpublic boolean validatedQueryString(String hqlQuery) throws SaSystemException
hqlQuery - the hql querySaSystemException - the sa system exceptionpublic final <T> void addAll(List<T> source, Properties dest)
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.