I'm trying to programmatically determine if a user has view permission for a
named portlet and, after spending some quality time with this problem, I'm
stumped.

I'm doing this in left.jsp, but strictly using java.  I've tried this:

PortletEntry entry = (PortletEntry)
    Registry.getEntry(Registry.PORTLET, "seethisportlet");

But "entry" is always null, even though I have psml like so:

<portlets id="my-portlets">
    <metainfo>
        <title>Groovy Portlets</title>
    </metainfo>
    <security-ref parent="secure-list-v"/>
    <control name="TabControl"/>
    <controller name="TabController">
        <property name="parameter" value="pane"/>
    </controller>
    <portlets name="lotsoportlets" id="my-portlets-1">
        <metainfo>
            <title>Portlet Page</title>
        </metainfo>
        <security-ref parent="secure-list-v"/>
        <layout position="0" size="-1"/>
        <controller name="TwoColumnsLeft">
            <property name="sizes" value="66%,34%"/>
        </controller>
        <entry name="seethisportlet" id="my-portlets-1a" parent="CPortlet">
            <security-ref parent="secure-list-v"/>
            <layout position="-1" size="-1">
                <property name="column" value="0"/>
                <property name="row" value="0"/>
            </layout>
            <control name="ClearPortletControl"/>
        </entry>
    </portlets>
[etcetera]

Is this the best way to go about this?  Does anyone have any guidance on how
best to determine if a user can see a given portlet?

Thanks!

-- Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to