public boolean voteDown ( ParaObject obj , String voterid ) { if ( obj == null || StringUtils . isBlank ( voterid ) ) { return false ; } return getEntity ( invokePatch ( obj . getType ( ) . concat ( "/" ) . concat ( obj . getId ( ) ) , Entity . json ( Collections . singletonMap ( "_votedown" , voterid ) ) ) , Boolean . class ) ; }
Downvote an object and register the vote in DB .