Class ExternalPropertiesDelegator

    • Constructor Detail

      • ExternalPropertiesDelegator

        public ExternalPropertiesDelegator​(MetamergeConfig mc)
        Deprecated.
    • Method Detail

      • getSaveNeeded

        public boolean getSaveNeeded()
        Deprecated.
        Gets the saveNeeded flag of the ExternalPropertiesConfig object
        Specified by:
        getSaveNeeded in interface ExternalPropertiesConfig
        Returns:
        The saveNeeded value
      • loadData

        public void loadData()
                      throws java.lang.Exception
        Deprecated.
        This method reads the external properties into memory for subseqent use. This is typically done automatically by the hosting MetamergeConfig object when this object is requested.
        Specified by:
        loadData in interface ExternalPropertiesConfig
        Throws:
        java.lang.Exception - if the operation does not succeed
      • saveData

        public void saveData()
                      throws java.lang.Exception
        Deprecated.
        This method writes back the data to the external file.
        Specified by:
        saveData in interface ExternalPropertiesConfig
        Throws:
        java.lang.Exception - if the operation does not succeed
      • getKeys

        public java.util.List<java.lang.String> getKeys​(int level)
        Deprecated.
        This method returns the combined set of property names in all extprop objects
        Specified by:
        getKeys in interface BaseConfiguration
        Overrides:
        getKeys in class BaseConfigurationImpl
        Parameters:
        level - can have these values:
      • ONE_LEVEL - only simple key/value items are returned.
      • SUBTREE - all keys are returned regardless of whether they are complex (TreeMap) or simple (String, Boolean, Integer, Vector ).
      • RECURSIVE - inherited keys are returned as well.
      • Returns:
        The list of keys.
      • getParameter

        public java.lang.Object getParameter​(java.lang.Object name)
        Deprecated.
        Description copied from class: BaseConfigurationImpl
        Returns the value for a given config item. This method will call inherited object's getParameter if this object does not contain the named value. In case of returning an inherited value, the value from the inherited object will be cloned. It is up to the user to create a key/value local to this object by calling one of the setParameter methods.
        Specified by:
        getParameter in interface BaseConfiguration
        Overrides:
        getParameter in class BaseConfigurationImpl
        Parameters:
        name - The parameter name
        Returns:
        The parameter value
      • getContainerForKey

        @Deprecated
        public ExternalPropertiesConfig getContainerForKey​(java.lang.Object name)
        Deprecated.
        Always returns null
        Returns null
      • getDefaultExternalPropertyObject

        @Deprecated
        public ExternalPropertiesConfig getDefaultExternalPropertyObject()
        Deprecated.
        Always returns null
        Returns null
      • getNamedXP

        public TDIPropertyStore getNamedXP​(java.lang.String name)
        Deprecated.
        Returns the extern property config named name
      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        Deprecated.
        Specified by:
        compare in interface java.util.Comparator
      • getFilePath

        public java.lang.String getFilePath()
        Deprecated.
        Gets the filePath attribute of the ExternalPropertiesConfig object
        Specified by:
        getFilePath in interface ExternalPropertiesConfig
        Returns:
        The filePath value
      • setFilePath

        public void setFilePath​(java.lang.String path)
        Deprecated.
        Sets the filePath attribute of the ExternalPropertiesConfig object
        Specified by:
        setFilePath in interface ExternalPropertiesConfig
        Parameters:
        path - The new filePath value
      • getPassword

        public java.lang.String getPassword()
        Deprecated.
        Returns the password used when opening an encrypted file. This method always returns null for security reasons.
        Specified by:
        getPassword in interface ExternalPropertiesConfig
      • setPassword

        public void setPassword​(java.lang.String password)
        Deprecated.
        Sets the password used when opening an encrypted file
        Specified by:
        setPassword in interface ExternalPropertiesConfig
      • getCipher

        public java.lang.String getCipher()
        Deprecated.
        Returns the Cipher algorithm used when reading/writing an encrypted file
        Specified by:
        getCipher in interface ExternalPropertiesConfig
      • setCipher

        public void setCipher​(java.lang.String cipher)
        Deprecated.
        Sets the Cipher algorithm used when reading/writing an encrypted file
        Specified by:
        setCipher in interface ExternalPropertiesConfig
      • getEncrypted

        public boolean getEncrypted()
        Deprecated.
        Gets the encrypted flag of the ExternalPropertiesConfig object
        Specified by:
        getEncrypted in interface ExternalPropertiesConfig
        Returns:
        The encrypted value
      • setEncrypted

        public void setEncrypted​(boolean encrypted)
        Deprecated.
        Sets the encrypted flag of the ExternalPropertiesConfig object
        Specified by:
        setEncrypted in interface ExternalPropertiesConfig
        Parameters:
        encrypted - The new encrypted value
      • mergeData

        @Deprecated
        public void mergeData​(java.lang.String path)
                       throws java.lang.Exception
        Deprecated.
        Use a named ExternalProperties object instead of this call
        This method merges the contents of a file into the current list of properties.
        Specified by:
        mergeData in interface ExternalPropertiesConfig
        Parameters:
        path - The file path to load properties from
        Throws:
        java.lang.Exception - Always, use a named ExternalProperties object instead of this call