Class OMRSRepositoryPropertiesUtilities

  • All Implemented Interfaces:
    OMRSRepositoryPropertiesHelper
    Direct Known Subclasses:
    OMRSArchiveHelper

    public class OMRSRepositoryPropertiesUtilities
    extends java.lang.Object
    implements OMRSRepositoryPropertiesHelper
    OMRSRepositoryPropertiesUtilities implements the methods to add and remove values from InstanceProperties objects as defined by the OMRSRepositoryPropertiesHelper interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addBooleanMapPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Boolean> mapValues, java.lang.String methodName)
      If the supplied map property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addBooleanPropertyMapToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Boolean> mapValues, java.lang.String methodName)
      Add the supplied property map to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addBooleanPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, boolean propertyValue, java.lang.String methodName)
      Add the supplied property to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addDatePropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Date propertyValue, java.lang.String methodName)
      If the supplied property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addEnumPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, int ordinal, java.lang.String symbolicName, java.lang.String description, java.lang.String methodName)
      Add the supplied property to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addFloatPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, float propertyValue, java.lang.String methodName)
      Add the supplied property to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addIntMapPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Integer> mapValues, java.lang.String methodName)
      If the supplied map property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addIntPropertyMapToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Integer> mapValues, java.lang.String methodName)
      Add the supplied property map to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addIntPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, int propertyValue, java.lang.String methodName)
      Add the supplied property to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addLongMapPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Long> mapValues, java.lang.String methodName)
      If the supplied map property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addLongPropertyMapToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Long> mapValues, java.lang.String methodName)
      Add the supplied property map to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addLongPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, long propertyValue, java.lang.String methodName)
      Add the supplied property to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addMapPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.Object> mapValues, java.lang.String methodName)
      If the supplied map property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addPropertyMapToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.util.Map<java.lang.String,​java.lang.Object> mapValues, java.lang.String methodName)
      Add the supplied property map to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringArrayPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.List<java.lang.String> arrayValues, java.lang.String methodName)
      If the supplied array property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringMapPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.String> mapValues, java.lang.String methodName)
      If the supplied map property is not null, add it to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringPropertyMapToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.util.Map<java.lang.String,​java.lang.String> mapValues, java.lang.String methodName)
      Add the supplied property map to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringPropertyToInstance​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String propertyName, java.lang.String propertyValue, java.lang.String methodName)
      Add the supplied property to an instance properties object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef applyPatch​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef originalTypeDef, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefPatch typeDefPatch, java.lang.String methodName)
      Returns an updated TypeDef that has had the supplied patch applied.
      java.util.Map<java.lang.String,​java.lang.Boolean> getBooleanMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.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​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or false if property is not found.
      java.util.Date getDateProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or null if property is not found.
      int getEnumPropertyOrdinal​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Retrieve the ordinal value from an enum property.
      java.util.Map<java.lang.String,​java.lang.Object> getInstancePropertiesAsMap​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
      Convert an instance properties object into a map.
      java.util.Map<java.lang.String,​java.lang.Integer> getIntegerMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.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​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or 0 if property is not found.
      java.util.Map<java.lang.String,​java.lang.Long> getLongMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
      java.util.Map<java.lang.String,​java.lang.Object> getMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getMapProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or null if property is not found.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties getSearchPropertiesFromInstanceProperties​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, MatchCriteria matchCriteria)
      Convert the provided instance properties and match criteria into an equivalent SearchProperties object.
      java.util.List<java.lang.String> getStringArrayProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String callingMethodName)
      Locates and extracts a string array property and extracts its values.
      java.util.Map<java.lang.String,​java.lang.String> getStringMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
      java.lang.String getStringProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or null if property is not found.
      protected java.util.List<java.lang.String> getUniquePropertiesList​(java.util.List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefAttribute> definedAttributes, java.util.List<java.lang.String> currentList)
      Add the list of unique properties for the type to the supplied list and return the combined results.
      java.util.Map<java.lang.String,​java.lang.Boolean> removeBooleanMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.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​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or false if property is not found.
      java.util.Date removeDateProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or null if property is not found.
      int removeEnumPropertyOrdinal​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Retrieve the ordinal value from an enum property.
      java.util.Map<java.lang.String,​java.lang.Integer> removeIntegerMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.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​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or 0 if property is not found.
      java.util.Map<java.lang.String,​java.lang.Long> removeLongMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
      java.util.Map<java.lang.String,​java.lang.Object> removeMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
      protected void removeProperty​(java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties)
      Remove the named property from the instance properties object.
      java.util.List<java.lang.String> removeStringArrayProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a string array property and extracts its values.
      java.util.Map<java.lang.String,​java.lang.String> removeStringMapFromProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
      java.lang.String removeStringProperty​(java.lang.String sourceName, java.lang.String propertyName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, java.lang.String methodName)
      Return the requested property or null if property is not found.
      void validateTypeDefPatch​(java.lang.String sourceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefPatch typeDefPatch, java.lang.String methodName)
      Verify that a TypeDefPatch is not null and is for a recognized type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • METADATA_COLLECTION_ID_PROPERTY_NAME

        public static final java.lang.String METADATA_COLLECTION_ID_PROPERTY_NAME
        See Also:
        Constant Field Values
      • METADATA_COLLECTION_NAME_PROPERTY_NAME

        public static final java.lang.String METADATA_COLLECTION_NAME_PROPERTY_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • OMRSRepositoryPropertiesUtilities

        public OMRSRepositoryPropertiesUtilities()
    • Method Detail

      • removeProperty

        protected void removeProperty​(java.lang.String propertyName,
                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties)
        Remove the named property from the instance properties object.
        Parameters:
        propertyName - name of property to remove
        properties - instance properties object to work on
      • getStringProperty

        public java.lang.String getStringProperty​(java.lang.String sourceName,
                                                  java.lang.String propertyName,
                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                  java.lang.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
        Specified by:
        getStringProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • removeStringProperty

        public java.lang.String removeStringProperty​(java.lang.String sourceName,
                                                     java.lang.String propertyName,
                                                     org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                     java.lang.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.
        Specified by:
        removeStringProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • getEnumPropertyOrdinal

        public int getEnumPropertyOrdinal​(java.lang.String sourceName,
                                          java.lang.String propertyName,
                                          org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                          java.lang.String methodName)
        Retrieve the ordinal value from an enum property.
        Specified by:
        getEnumPropertyOrdinal in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        int ordinal or -1 if not found
      • removeEnumPropertyOrdinal

        public int removeEnumPropertyOrdinal​(java.lang.String sourceName,
                                             java.lang.String propertyName,
                                             org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                             java.lang.String methodName)
        Retrieve the ordinal value from an enum property.
        Specified by:
        removeEnumPropertyOrdinal in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        int ordinal or -1 if not found
      • getMapProperty

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getMapProperty​(java.lang.String sourceName,
                                                                                                                                                         java.lang.String propertyName,
                                                                                                                                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                         java.lang.String methodName)
        Return the requested property or null if property is not found. If the property is not a map property then a logic exception is thrown
        Specified by:
        getMapProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • getStringArrayProperty

        public java.util.List<java.lang.String> getStringArrayProperty​(java.lang.String sourceName,
                                                                       java.lang.String propertyName,
                                                                       org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                       java.lang.String callingMethodName)
        Locates and extracts a string array property and extracts its values.
        Specified by:
        getStringArrayProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - all the properties of the instance
        callingMethodName - method of caller
        Returns:
        array property value or null
      • removeStringArrayProperty

        public java.util.List<java.lang.String> removeStringArrayProperty​(java.lang.String sourceName,
                                                                          java.lang.String propertyName,
                                                                          org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                          java.lang.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.
        Specified by:
        removeStringArrayProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - all the properties of the instance
        methodName - method of caller
        Returns:
        array property value or null
      • getStringMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.String> getStringMapFromProperty​(java.lang.String sourceName,
                                                                                               java.lang.String propertyName,
                                                                                               org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                               java.lang.String methodName)
        Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
        Specified by:
        getStringMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • removeStringMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.String> removeStringMapFromProperty​(java.lang.String sourceName,
                                                                                                  java.lang.String propertyName,
                                                                                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                  java.lang.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.
        Specified by:
        removeStringMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • getBooleanMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Boolean> getBooleanMapFromProperty​(java.lang.String sourceName,
                                                                                                 java.lang.String propertyName,
                                                                                                 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                 java.lang.String methodName)
        Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
        Specified by:
        getBooleanMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • removeBooleanMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Boolean> removeBooleanMapFromProperty​(java.lang.String sourceName,
                                                                                                    java.lang.String propertyName,
                                                                                                    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                    java.lang.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.
        Specified by:
        removeBooleanMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • getLongMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Long> getLongMapFromProperty​(java.lang.String sourceName,
                                                                                           java.lang.String propertyName,
                                                                                           org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                           java.lang.String methodName)
        Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
        Specified by:
        getLongMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • removeLongMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Long> removeLongMapFromProperty​(java.lang.String sourceName,
                                                                                              java.lang.String propertyName,
                                                                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                              java.lang.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.
        Specified by:
        removeLongMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • getIntegerMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Integer> getIntegerMapFromProperty​(java.lang.String sourceName,
                                                                                                 java.lang.String propertyName,
                                                                                                 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                 java.lang.String methodName)
        Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
        Specified by:
        getIntegerMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • removeIntegerMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Integer> removeIntegerMapFromProperty​(java.lang.String sourceName,
                                                                                                    java.lang.String propertyName,
                                                                                                    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                    java.lang.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.
        Specified by:
        removeIntegerMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • getMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Object> getMapFromProperty​(java.lang.String sourceName,
                                                                                         java.lang.String propertyName,
                                                                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                         java.lang.String methodName)
        Locates and extracts a property from an instance that is of type map and then converts its values into a Java map.
        Specified by:
        getMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - all the properties of the instance
        methodName - method of caller
        Returns:
        map property value or null
      • removeMapFromProperty

        public java.util.Map<java.lang.String,​java.lang.Object> removeMapFromProperty​(java.lang.String sourceName,
                                                                                            java.lang.String propertyName,
                                                                                            org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                            java.lang.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.
        Specified by:
        removeMapFromProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested map property
        properties - values of the property
        methodName - method of caller
        Returns:
        map property value or null
      • getInstancePropertiesAsMap

        public java.util.Map<java.lang.String,​java.lang.Object> getInstancePropertiesAsMap​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
        Convert an instance properties object into a map.
        Specified by:
        getInstancePropertiesAsMap in interface OMRSRepositoryPropertiesHelper
        Parameters:
        instanceProperties - packed properties
        Returns:
        properties stored in Java map
      • getIntProperty

        public int getIntProperty​(java.lang.String sourceName,
                                  java.lang.String propertyName,
                                  org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                  java.lang.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.
        Specified by:
        getIntProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • removeIntProperty

        public int removeIntProperty​(java.lang.String sourceName,
                                     java.lang.String propertyName,
                                     org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                     java.lang.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.
        Specified by:
        removeIntProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • getDateProperty

        public java.util.Date getDateProperty​(java.lang.String sourceName,
                                              java.lang.String propertyName,
                                              org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                              java.lang.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.
        Specified by:
        getDateProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • removeDateProperty

        public java.util.Date removeDateProperty​(java.lang.String sourceName,
                                                 java.lang.String propertyName,
                                                 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                 java.lang.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.
        Specified by:
        removeDateProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • getBooleanProperty

        public boolean getBooleanProperty​(java.lang.String sourceName,
                                          java.lang.String propertyName,
                                          org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                          java.lang.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
        Specified by:
        getBooleanProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • removeBooleanProperty

        public boolean removeBooleanProperty​(java.lang.String sourceName,
                                             java.lang.String propertyName,
                                             org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                             java.lang.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.
        Specified by:
        removeBooleanProperty in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - source of call
        propertyName - name of requested property
        properties - properties from the instance.
        methodName - method of caller
        Returns:
        string property value or null
      • addStringPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                      java.lang.String propertyName,
                                                                                                                                                                      java.lang.String propertyValue,
                                                                                                                                                                      java.lang.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.
        Specified by:
        addStringPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        propertyValue - value of property
        methodName - calling method name
        Returns:
        instance properties object.
      • addIntPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addIntPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                   org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                   java.lang.String propertyName,
                                                                                                                                                                   int propertyValue,
                                                                                                                                                                   java.lang.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.
        Specified by:
        addIntPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        propertyValue - value of property
        methodName - calling method name
        Returns:
        instance properties object.
      • addLongPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addLongPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                    java.lang.String propertyName,
                                                                                                                                                                    long propertyValue,
                                                                                                                                                                    java.lang.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.
        Specified by:
        addLongPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to may be null.
        propertyName - name of property
        propertyValue - value of property
        methodName - calling method name
        Returns:
        instance properties object.
      • addFloatPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addFloatPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                     org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                     java.lang.String propertyName,
                                                                                                                                                                     float propertyValue,
                                                                                                                                                                     java.lang.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.
        Specified by:
        addFloatPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to may be null.
        propertyName - name of property
        propertyValue - value of property
        methodName - calling method name
        Returns:
        instance properties object.
      • addDatePropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addDatePropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                    java.lang.String propertyName,
                                                                                                                                                                    java.util.Date propertyValue,
                                                                                                                                                                    java.lang.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.
        Specified by:
        addDatePropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to may be null.
        propertyName - name of property
        propertyValue - value of property
        methodName - calling method name
        Returns:
        instance properties object.
      • addBooleanPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addBooleanPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                       org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                       java.lang.String propertyName,
                                                                                                                                                                       boolean propertyValue,
                                                                                                                                                                       java.lang.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.
        Specified by:
        addBooleanPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        propertyValue - value of property
        methodName - calling method name
        Returns:
        instance properties object.
      • addEnumPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addEnumPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                    org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                    java.lang.String propertyName,
                                                                                                                                                                    int ordinal,
                                                                                                                                                                    java.lang.String symbolicName,
                                                                                                                                                                    java.lang.String description,
                                                                                                                                                                    java.lang.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.
        Specified by:
        addEnumPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        ordinal - numeric value of property
        symbolicName - String value of property
        description - String description of property value
        methodName - calling method name
        Returns:
        instance properties object.
      • addStringArrayPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringArrayPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                           org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                           java.lang.String propertyName,
                                                                                                                                                                           java.util.List<java.lang.String> arrayValues,
                                                                                                                                                                           java.lang.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.
        Specified by:
        addStringArrayPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        arrayValues - contents of the array
        methodName - calling method name
        Returns:
        instance properties object.
      • addMapPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addMapPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                   org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                   java.lang.String propertyName,
                                                                                                                                                                   java.util.Map<java.lang.String,​java.lang.Object> mapValues,
                                                                                                                                                                   java.lang.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.
        Specified by:
        addMapPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addStringMapPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringMapPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                         java.lang.String propertyName,
                                                                                                                                                                         java.util.Map<java.lang.String,​java.lang.String> mapValues,
                                                                                                                                                                         java.lang.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.
        Specified by:
        addStringMapPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addBooleanMapPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addBooleanMapPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                          org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                          java.lang.String propertyName,
                                                                                                                                                                          java.util.Map<java.lang.String,​java.lang.Boolean> mapValues,
                                                                                                                                                                          java.lang.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.
        Specified by:
        addBooleanMapPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addLongMapPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addLongMapPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                       org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                       java.lang.String propertyName,
                                                                                                                                                                       java.util.Map<java.lang.String,​java.lang.Long> mapValues,
                                                                                                                                                                       java.lang.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.
        Specified by:
        addLongMapPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addIntMapPropertyToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addIntMapPropertyToInstance​(java.lang.String sourceName,
                                                                                                                                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                      java.lang.String propertyName,
                                                                                                                                                                      java.util.Map<java.lang.String,​java.lang.Integer> mapValues,
                                                                                                                                                                      java.lang.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.
        Specified by:
        addIntMapPropertyToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addPropertyMapToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addPropertyMapToInstance​(java.lang.String sourceName,
                                                                                                                                                                   org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                   java.util.Map<java.lang.String,​java.lang.Object> mapValues,
                                                                                                                                                                   java.lang.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. If the instance properties object supplied is null, a new instance properties object is created.
        Specified by:
        addPropertyMapToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addStringPropertyMapToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addStringPropertyMapToInstance​(java.lang.String sourceName,
                                                                                                                                                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                         java.lang.String propertyName,
                                                                                                                                                                         java.util.Map<java.lang.String,​java.lang.String> mapValues,
                                                                                                                                                                         java.lang.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.
        Specified by:
        addStringPropertyMapToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addBooleanPropertyMapToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addBooleanPropertyMapToInstance​(java.lang.String sourceName,
                                                                                                                                                                          org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                          java.lang.String propertyName,
                                                                                                                                                                          java.util.Map<java.lang.String,​java.lang.Boolean> mapValues,
                                                                                                                                                                          java.lang.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.
        Specified by:
        addBooleanPropertyMapToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addLongPropertyMapToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addLongPropertyMapToInstance​(java.lang.String sourceName,
                                                                                                                                                                       org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                       java.lang.String propertyName,
                                                                                                                                                                       java.util.Map<java.lang.String,​java.lang.Long> mapValues,
                                                                                                                                                                       java.lang.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.
        Specified by:
        addLongPropertyMapToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • addIntPropertyMapToInstance

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties addIntPropertyMapToInstance​(java.lang.String sourceName,
                                                                                                                                                                      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                      java.lang.String propertyName,
                                                                                                                                                                      java.util.Map<java.lang.String,​java.lang.Integer> mapValues,
                                                                                                                                                                      java.lang.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.
        Specified by:
        addIntPropertyMapToInstance in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of caller
        properties - properties object to add property to, may be null.
        propertyName - name of property
        mapValues - contents of the map
        methodName - calling method name
        Returns:
        instance properties object.
      • validateTypeDefPatch

        public void validateTypeDefPatch​(java.lang.String sourceName,
                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefPatch typeDefPatch,
                                         java.lang.String methodName)
                                  throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
                                         org.odpi.openmetadata.repositoryservices.ffdc.exception.PatchErrorException
        Verify that a TypeDefPatch is not null and is for a recognized type.
        Parameters:
        sourceName - source of the request (used for logging)
        typeDefPatch - typeDefPatch to test
        methodName - calling method
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - the original typeDef or typeDefPatch is null
        org.odpi.openmetadata.repositoryservices.ffdc.exception.PatchErrorException - the typeDefPatch is invalid
      • applyPatch

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef applyPatch​(java.lang.String sourceName,
                                                                                                                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef originalTypeDef,
                                                                                                                                         org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefPatch typeDefPatch,
                                                                                                                                         java.lang.String methodName)
                                                                                                                                  throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException,
                                                                                                                                         org.odpi.openmetadata.repositoryservices.ffdc.exception.PatchErrorException
        Returns an updated TypeDef that has had the supplied patch applied. It throws an exception if any part of the patch is incompatible with the original TypeDef. For example, if there is a mismatch between the type or version that either represents.
        Parameters:
        sourceName - source of the TypeDef (used for logging)
        originalTypeDef - typeDef to update
        typeDefPatch - patch to apply
        methodName - calling method
        Returns:
        updated TypeDef
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - the original typeDef or typeDefPatch is null
        org.odpi.openmetadata.repositoryservices.ffdc.exception.PatchErrorException - the patch is either badly formatted, or does not apply to the supplied TypeDef
      • getSearchPropertiesFromInstanceProperties

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties getSearchPropertiesFromInstanceProperties​(java.lang.String sourceName,
                                                                                                                                                                               org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties,
                                                                                                                                                                               MatchCriteria matchCriteria)
        Convert the provided instance properties and match criteria into an equivalent SearchProperties object.
        Specified by:
        getSearchPropertiesFromInstanceProperties in interface OMRSRepositoryPropertiesHelper
        Parameters:
        sourceName - name of the caller
        properties - properties object to convert
        matchCriteria - match criteria to apply
        Returns:
        SearchProperties object.
      • getUniquePropertiesList

        protected java.util.List<java.lang.String> getUniquePropertiesList​(java.util.List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefAttribute> definedAttributes,
                                                                           java.util.List<java.lang.String> currentList)
        Add the list of unique properties for the type to the supplied list and return the combined results.
        Parameters:
        definedAttributes - list of attributes defined for the typedef
        currentList - current list of properties extracted from the subtypes
        Returns:
        accumulated list of properties.