You can show/hide control panel entries by implementing the interface com.liferay.portlet.ControlPanelEntry
. This interface defines a couple of methods (isVisible
/hasAccessPermission
) that determine if a particular user sees/has access to one of the control panel entries.
The association between a portlet and its ControlPanelEntry class is defined in the liferay-portlet.xml
configuration file. To override its value, you must use the ext-plugin.
Take a look at http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd for more information (search for control-panel-entry).