public function getUserEffectivePermissions($loginName)
    {
        $permissions = new BasePermissions();
        $qry = new InvokeMethodQuery(
            $this->getResourcePath(),
            "GetUserEffectivePermissions",
            array(rawurlencode($loginName))
        );
        $this->getContext()->addQuery($qry,$permissions);
        return $permissions;
    }