public void setAllowedPermissions(CmsAccessControlEntry entry) {

        CmsPermissionSetCustom p = m_permissions.get(entry.getPrincipal());
        if (p == null) {
            p = new CmsPermissionSetCustom();
            m_permissions.put(entry.getPrincipal(), p);
        }
        p.setPermissions(entry.getAllowedPermissions(), p.getDeniedPermissions());
    }
public void setAllowedPermissions ( CmsAccessControlEntry entry ) { CmsPermissionSetCustom p = m_permissions . get ( entry . getPrincipal ( ) ) ; if ( p == null ) { p = new CmsPermissionSetCustom ( ) ; m_permissions . put ( entry . getPrincipal ( ) , p ) ; } p . setPermissions ( entry . getAllowedPermissions ( ) , p . getDeniedPermissions ( ) ) ; }
Sets the allowed permissions of a given access control entry as allowed permissions in the access control list.<p>
The denied permissions are left unchanged.

@param entry the access control entry