public static String createOdataFilterForTags ( String tagName , String tagValue ) { if ( tagName == null ) { return null ; } else if ( tagValue == null ) { return String . format ( "tagname eq '%s'" , tagName ) ; } else { return String . format ( "tagname eq '%s' and tagvalue eq '%s'" , tagName , tagValue ) ; } }
Creates an Odata filter string that can be used for filtering list results by tags .