Class AddressUtils

java.lang.Object
com.skava.address.util.AddressUtils
All Implemented Interfaces:
Serializable

public class AddressUtils extends Object implements Serializable
This is a Utility class for address which contains string validator and util methods used in this service.
See Also:
  • Constructor Details

    • AddressUtils

      public AddressUtils()
  • Method Details

    • getString

      public static String getString(String string, String defaultValue)
      Gets the string.
      Parameters:
      string - the string
      defaultValue - the default value
      Returns:
      the string
    • setTextEncryptorComponent

      public static void setTextEncryptorComponent(com.skava.core.crypto.TextEncryptorComponent component)
      domain attribute will be converted to the data representation that can be stored in a cache
      Parameters:
      valueToEncrypt - the entity attribute to be converted
    • encrypt

      public static String encrypt(String valueToEncrypt)
    • decrypt

      public static String decrypt(String valueToDecrypt)
      Data stored in database table will be converted to domain attribute
      Parameters:
      valueToDecrypt - the data from the database column to be converted
      Returns:
      converted entity attribute
    • getLong

      public static long getLong(String string, long defaultValue)
      Gets the long.
      Parameters:
      string - the string
      defaultValue - the default value
      Returns:
      the long