public void updatePrivate ( int taskId , boolean priv ) { getResourceFactory ( ) . getApiResource ( "/task/" + taskId + "/private" ) . entity ( new TaskPrivate ( priv ) , MediaType . APPLICATION_JSON_TYPE ) . put ( ) ; }
Update the private flag on the given task .