Package org.opennms.netmgt.dao.api
Class MonitoringLocationUtils
- java.lang.Object
-
- org.opennms.netmgt.dao.api.MonitoringLocationUtils
-
public class MonitoringLocationUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MonitoringLocationUtils()
-
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.
-
-
-
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:
-
-