Show and hide data

I have a blog where users can login to add new articles and comments. It is written in Java and I use MySQL for my database. I want to implement a functionality where the administrator can hide or show articles. I am not sure how to accomplish that, can someone point me in the right direction.

Written in Java or Javascript?