Blog service : Java API : Adding constraint related apis.

Have not commented out old methods, will do once this gets merged.