Writing an Administrative Portlet

The Guestbook application lets users add and view guestbook entries. The application’s back-end, however, is much more powerful. It can support many guestbooks and their associated entries. But at this point, there’s no UI to support these added features. When you create this UI, you must also make sure that only administrators can add guestbooks.

To accomplish this, you’ll create a Guestbook Admin portlet and place it in Liferay DXP’s administrative interface—specifically, within the Content menu. This way, the Guestbook Admin portlet is accessible only to Site Administrators, while users use the Guestbook portlet to create entries.

In short, this is a simple application with a simple interface:

Figure 1: The Guestbook Admin portlet lets administrators manage Guestbooks.

Figure 1: The Guestbook Admin portlet lets administrators manage Guestbooks.

If you get stuck, source code for this step is provided.

Are you ready to begin?

Let’s Go!

« Fitting it All TogetherCreating the Classes »
Was this article helpful?
2 out of 2 found this helpful