Class AssetUtils

java.lang.Object
org.opennms.pris.util.AssetUtils

public class AssetUtils extends Object
Utility methods for normalizing asset field values before they are stored in a requisition.
  • Method Details

    • assetStringCleaner

      public static String assetStringCleaner(String assetString, Integer maxSize)
      Cleans up an asset string by stripping trademark markers, abbreviating common vendor and operating-system names, collapsing runs of whitespace and truncating the result to a maximum length.
      Parameters:
      assetString - the raw asset value, may be null
      maxSize - the maximum number of characters to keep
      Returns:
      the cleaned value, or an empty string if assetString is null