public ValidationData findByMethodAndUrlAndNameAndParentId ( String method , String url , String name , Long parentId ) { if ( parentId == null ) { return this . findByMethodAndUrlAndName ( method , url , name ) . stream ( ) . filter ( d -> d . getParentId ( ) == null ) . findAny ( ) . orElse ( null ) ; } return this . findByMethodAndUrlAndName ( method , url , name ) . stream ( ) . filter ( d -> d . getParentId ( ) != null && d . getParentId ( ) . equals ( parentId ) ) . findAny ( ) . orElse ( null ) ; }
Find by method and url and name and parent id validation data .