Open Fire Room Creation

Hi,

I want to devlop a openfire plugin, which allow me to create room using api on the user login.

and user will have access to a particular room in that login. A new room will assign in the new login.

Can anyone help me . Is it possible in openfire.