David Jencks wrote:
I have some doubt this code in PortletPermission is correct:

    public boolean implies(Permission permission)
    {
        // The permission must be an instance
        // of the PortletPermission.
        if (!(permission instanceof PortletPermission))
        {
            return false;
        }

        String name = getName();
        if (name != null)
        {
            int index = name.indexOf('*');
            if (index > -1)
            {
boolean test = permission.getName().startsWith (name.substring(0, index));
//I THINK THIS IS WRONG!

Its looking for permissions like "PortletApplicationName::*"
so that you can create portlet permissions for an entire portlet application as well as by specific name


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

Reply via email to