src/main/java/application/rest/v1/KAppNavEndpoint.java
// the known values from the config, false otherwise.
the known values from the config, false otherwise.
the known values from the config false otherwise .
protected static boolean hasKnownStatus(JsonObject statusObj, KAppNavConfig config) {
        final JsonElement valueObj = statusObj.get(VALUE_PROPERTY_NAME);
        if (valueObj != null && valueObj.isJsonPrimitive()) {
            final String value = valueObj.getAsString();
            if ( Logger.isDebugEnabled()) { 
                Logger.log(className, "hasKnownStatus", Logger.LogType.DEBUG, "value:" + value);
            } 
            if (config.isKnownStatus(value) || value != null) {
                return true;
            } 
        }
        return false;
    }
protected static boolean hasKnownStatus ( JsonObject statusObj , KAppNavConfig config ) { final JsonElement valueObj = statusObj . get ( VALUE_PROPERTY_NAME ) ; if ( valueObj != null && valueObj . isJsonPrimitive ( ) ) { final String value = valueObj . getAsString ( ) ; if ( Logger . isDebugEnabled ( ) ) { Logger . log ( className , "hasKnownStatus" , Logger . LogType . DEBUG , "value:" + value ) ; } if ( config . isKnownStatus ( value ) || value != null ) { return true ; } } return false ; }
the known values from the config, false otherwise.
the known values from the config false otherwise .
// return true if value not null or config contain status value