Portlet Vs DSP page

Can anyone suggest the advantage of using portlets replacing dsp pages. We have a custom table in our implementation, where we maintain the configurable parameters. As of today, we have exposed this table content using dsp page. During our upgrade, we were getting some recommedations to replace the dsp page with portlet.

Is there a way, where we can give restricted access to the display content based on user-id in dsp pages? For a particular user-id, instead of displaying all table content in dsp have to provide access only to certain entries.

You can use wm.monitor.util:getCurrentUser (WmMonitor) to check which user is invoking a service. Create a service that calls getCurrentUser and does some validation. You can do an %ifvar% in your DSP to verify whether the user is allowed or not.

Chris