Class MonitoringLocationUtils


  • public class MonitoringLocationUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLocationNameOrNullIfDefault​(OnmsNode node)
      Returns the name to which the given node is associated, or null if the if node is associated to either the default location, or no location.
      static boolean isDefaultLocationName​(java.lang.String locationName)
      Returns true if the given location name is null or the system default.
      • Methods inherited from class java.lang.Object

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

      • MonitoringLocationUtils

        public MonitoringLocationUtils()
    • Method Detail

      • isDefaultLocationName

        public static boolean isDefaultLocationName​(java.lang.String locationName)
        Returns true if the given location name is null or the system default.
        Parameters:
        locationName -
        Returns:
      • getLocationNameOrNullIfDefault

        public static java.lang.String getLocationNameOrNullIfDefault​(OnmsNode node)
        Returns the name to which the given node is associated, or null if the if node is associated to either the default location, or no location.
        Parameters:
        node -
        Returns: