Package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.utilities
Interface OMRSRepositoryPropertiesHelper
- All Known Subinterfaces:
OMRSRepositoryHelper
- All Known Implementing Classes:
OMRSArchiveHelper
,OMRSRepositoryContentHelper
,OMRSRepositoryPropertiesUtilities
public interface OMRSRepositoryPropertiesHelper
OMRSRepositoryHelper provides methods to repository connectors and repository event mappers to help
them build valid type definitions (TypeDefs), entities and relationships. It is a facade to the
repository content manager which holds an in memory cache of all the active TypeDefs in the local server.
OMRSRepositoryHelper's purpose is to create an object that the repository connectors and event mappers can
create, use and discard without needing to know how to connect to the repository content manager.
-
Method Summary
Modifier and TypeMethodDescriptionaddBooleanMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Boolean> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addBooleanPropertyMapToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Boolean> mapValues, String methodName) Add the supplied property map to an instance properties object.addBooleanPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, boolean propertyValue, String methodName) Add the supplied property to an instance properties object.addDateMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Date> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addDatePropertyMapToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Date> mapValues, String methodName) Add the supplied property map to an instance properties object.addDatePropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Date propertyValue, String methodName) If the supplied property is not null, add it to an instance properties object.addDoubleMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Double> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addDoublePropertyMapToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Double> mapValues, String methodName) Add the supplied property map to an instance properties object.addDoublePropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, double propertyValue, String methodName) Add the supplied property to an instance properties object.addEnumPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, String attributeTypeGUID, String attributeTypeName, int ordinal, String symbolicName, String description, String methodName) Add the supplied property to an instance properties object.addFloatPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, float propertyValue, String methodName) Add the supplied property to an instance properties object.addIntMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Integer> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addIntPropertyMapToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Integer> mapValues, String methodName) Add the supplied property map to an instance properties object.addIntPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, int propertyValue, String methodName) Add the supplied property to an instance properties object.addLongMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Long> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addLongPropertyMapToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Long> mapValues, String methodName) Add the supplied property map to an instance properties object.addLongPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, long propertyValue, String methodName) Add the supplied property to an instance properties object.addMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, Object> mapValues, String methodName) Add the supplied map property to an instance properties object.addObjectPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Object propertyValue, String methodName) If the supplied property is not null, add it to an instance properties object.addPropertyMapToInstance
(String sourceName, InstanceProperties properties, Map<String, Object> mapValues, String methodName) Add the supplied property map to an instance properties object.addStringArrayPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, List<String> arrayValues, String methodName) If the supplied array property is not null, add it to an instance properties object.addStringArrayStringMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, List<String>> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addStringMapPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, String> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object.addStringPropertyMapToInstance
(String sourceName, InstanceProperties properties, String propertyName, Map<String, String> mapValues, String methodName) Add the supplied property map to an instance properties object.addStringPropertyToInstance
(String sourceName, InstanceProperties properties, String propertyName, String propertyValue, String methodName) If the supplied property is not null, add it to an instance properties object.getBooleanMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.boolean
getBooleanProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or false if property is not found.getDateMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.getDateProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found.getDoubleMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.int
getEnumPropertyOrdinal
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Retrieve the ordinal value from an enum property.getInstancePropertiesAsMap
(InstanceProperties instanceProperties) Convert an instance properties object into a map.getIntegerMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.int
getIntProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found.getLongMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.long
getLongProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found.getMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.getMapProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found.getSearchPropertiesFromInstanceProperties
(String sourceName, InstanceProperties properties, MatchCriteria matchCriteria) Convert the provided instance properties and match criteria into an equivalent SearchProperties object.getStringArrayProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a string array property and extracts its values.getStringArrayStringMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.getStringMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.getStringProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found.removeBooleanMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.boolean
removeBooleanProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or false if property is not found.removeDateMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.removeDateProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found.removeDoubleMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.int
removeEnumPropertyOrdinal
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Retrieve the ordinal value from an enum property and then delete it from the propertiesremoveIntegerMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.int
removeIntProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found.removeLongMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.long
removeLongProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found.removeMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.removeStringArrayProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a string array property and extracts its values.removeStringArrayStringMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.removeStringMapFromProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.removeStringProperty
(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found.
-
Method Details
-
getStringProperty
String getStringProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found. If the property is not a string property then a logic exception is thrown- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
removeStringProperty
String removeStringProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found. If the property is found, it is removed from the InstanceProperties structure. If the property is not a string property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
getEnumPropertyOrdinal
int getEnumPropertyOrdinal(String sourceName, String propertyName, InstanceProperties properties, String methodName) Retrieve the ordinal value from an enum property.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- int ordinal or -1 if not found
-
removeEnumPropertyOrdinal
int removeEnumPropertyOrdinal(String sourceName, String propertyName, InstanceProperties properties, String methodName) Retrieve the ordinal value from an enum property and then delete it from the properties- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- int ordinal or -1 if not found
-
getMapProperty
InstanceProperties getMapProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
getStringMapFromProperty
Map<String,String> getStringMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeStringMapFromProperty
Map<String,String> removeStringMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getBooleanMapFromProperty
Map<String,Boolean> getBooleanMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeBooleanMapFromProperty
Map<String,Boolean> removeBooleanMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getLongMapFromProperty
Map<String,Long> getLongMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeLongMapFromProperty
Map<String,Long> removeLongMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getDateMapFromProperty
Map<String,Date> getDateMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeDateMapFromProperty
Map<String,Date> removeDateMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getDoubleMapFromProperty
Map<String,Double> getDoubleMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeDoubleMapFromProperty
Map<String,Double> removeDoubleMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getIntegerMapFromProperty
Map<String,Integer> getIntegerMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeIntegerMapFromProperty
Map<String,Integer> removeIntegerMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getStringArrayStringMapFromProperty
Map<String,List<String>> getStringArrayStringMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeStringArrayStringMapFromProperty
Map<String,List<String>> removeStringArrayStringMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getMapFromProperty
Map<String,Object> getMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
removeMapFromProperty
Map<String,Object> removeMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a property from an instance that is of type map and then converts its values into a Java map. If the property is found, it is removed from the InstanceProperties structure. If the property is not a map property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- values of the propertymethodName
- method of caller- Returns:
- map property value or null
-
getInstancePropertiesAsMap
Convert an instance properties object into a map.- Parameters:
instanceProperties
- packed properties- Returns:
- properties stored in Java map
-
getStringArrayProperty
List<String> getStringArrayProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a string array property and extracts its values. If the property is not an array property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- all the properties of the instancemethodName
- method of caller- Returns:
- array property value or null
-
removeStringArrayProperty
List<String> removeStringArrayProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Locates and extracts a string array property and extracts its values. If the property is found, it is removed from the InstanceProperties structure. If the property is not an array property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested map propertyproperties
- all the properties of the instancemethodName
- method of caller- Returns:
- array property value or null
-
getIntProperty
int getIntProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found. If the property is not an int property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
removeIntProperty
int removeIntProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found. If the property is found, it is removed from the InstanceProperties structure. If the property is not an int property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
getLongProperty
long getLongProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found. If the property is not an int property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
removeLongProperty
long removeLongProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or 0 if property is not found. If the property is found, it is removed from the InstanceProperties structure. If the property is not an int property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
getDateProperty
Date getDateProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found. If the property is not a date property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
removeDateProperty
Date removeDateProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or null if property is not found. If the property is found, it is removed from the InstanceProperties structure. If the property is not a date property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
getBooleanProperty
boolean getBooleanProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or false if property is not found. If the property is not a boolean property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
removeBooleanProperty
boolean removeBooleanProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName) Return the requested property or false if property is not found. If the property is found, it is removed from the InstanceProperties structure. If the property is not a boolean property then a logic exception is thrown.- Parameters:
sourceName
- source of callpropertyName
- name of requested propertyproperties
- properties from the instance.methodName
- method of caller- Returns:
- string property value or null
-
addObjectPropertyToInstance
InstanceProperties addObjectPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Object propertyValue, String methodName) If the supplied property is not null, add it to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addStringPropertyToInstance
InstanceProperties addStringPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, String propertyValue, String methodName) If the supplied property is not null, add it to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addIntPropertyToInstance
InstanceProperties addIntPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, int propertyValue, String methodName) Add the supplied property to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addLongPropertyToInstance
InstanceProperties addLongPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, long propertyValue, String methodName) Add the supplied property to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addDoublePropertyToInstance
InstanceProperties addDoublePropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, double propertyValue, String methodName) Add the supplied property to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addFloatPropertyToInstance
InstanceProperties addFloatPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, float propertyValue, String methodName) Add the supplied property to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addDatePropertyToInstance
InstanceProperties addDatePropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Date propertyValue, String methodName) If the supplied property is not null, add it to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addBooleanPropertyToInstance
InstanceProperties addBooleanPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, boolean propertyValue, String methodName) Add the supplied property to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertypropertyValue
- value of propertymethodName
- calling method name- Returns:
- instance properties object.
-
addEnumPropertyToInstance
InstanceProperties addEnumPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, String attributeTypeGUID, String attributeTypeName, int ordinal, String symbolicName, String description, String methodName) Add the supplied property to an instance properties object. If the instance property object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to may be null.propertyName
- name of propertyattributeTypeGUID
- unique identifier of the enum typeattributeTypeName
- unique name of the enum typeordinal
- numeric value of propertysymbolicName
- String value of propertydescription
- String description of property valuemethodName
- calling method name- Returns:
- instance properties object.
-
addStringArrayPropertyToInstance
InstanceProperties addStringArrayPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, List<String> arrayValues, String methodName) If the supplied array property is not null, add it to an instance properties object. The supplied array is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertyarrayValues
- contents of the arraymethodName
- calling method name- Returns:
- instance properties object.
-
addMapPropertyToInstance
InstanceProperties addMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Object> mapValues, String methodName) Add the supplied map property to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addStringMapPropertyToInstance
InstanceProperties addStringMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, String> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addBooleanMapPropertyToInstance
InstanceProperties addBooleanMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Boolean> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addDateMapPropertyToInstance
InstanceProperties addDateMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Date> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addLongMapPropertyToInstance
InstanceProperties addLongMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Long> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addDoubleMapPropertyToInstance
InstanceProperties addDoubleMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Double> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addIntMapPropertyToInstance
InstanceProperties addIntMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Integer> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addStringArrayStringMapPropertyToInstance
InstanceProperties addStringArrayStringMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, List<String>> mapValues, String methodName) If the supplied map property is not null, add it to an instance properties object. The supplied map is stored as a single property in the instances properties. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addPropertyMapToInstance
InstanceProperties addPropertyMapToInstance(String sourceName, InstanceProperties properties, Map<String, Object> mapValues, String methodName) throws InvalidParameterExceptionAdd the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.mapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
- Throws:
InvalidParameterException
- invalid property value
-
addStringPropertyMapToInstance
InstanceProperties addStringPropertyMapToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, String> mapValues, String methodName) Add the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addBooleanPropertyMapToInstance
InstanceProperties addBooleanPropertyMapToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Boolean> mapValues, String methodName) Add the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addDatePropertyMapToInstance
InstanceProperties addDatePropertyMapToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Date> mapValues, String methodName) Add the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addLongPropertyMapToInstance
InstanceProperties addLongPropertyMapToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Long> mapValues, String methodName) Add the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addDoublePropertyMapToInstance
InstanceProperties addDoublePropertyMapToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Double> mapValues, String methodName) Add the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
addIntPropertyMapToInstance
InstanceProperties addIntPropertyMapToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String, Integer> mapValues, String methodName) Add the supplied property map to an instance properties object. Each of the entries in the map is added as a separate property in instance properties unless it is null. If the instance properties object supplied is null, a new instance properties object is created.- Parameters:
sourceName
- name of callerproperties
- properties object to add property to, may be null.propertyName
- name of propertymapValues
- contents of the mapmethodName
- calling method name- Returns:
- instance properties object.
-
getSearchPropertiesFromInstanceProperties
SearchProperties getSearchPropertiesFromInstanceProperties(String sourceName, InstanceProperties properties, MatchCriteria matchCriteria) Convert the provided instance properties and match criteria into an equivalent SearchProperties object.- Parameters:
sourceName
- name of the callerproperties
- properties object to convertmatchCriteria
- match criteria to apply- Returns:
- SearchProperties object.
-