public function findByAnonymous($orderedToolType = 0)
    {
        $dql = "
            SELECT DISTINCT w
            FROM Claroline\CoreBundle\Entity\Workspace\Workspace w
            JOIN w.orderedTools ot
            JOIN ot.rights otr
            JOIN otr.role r
            WHERE r.name = 'ROLE_ANONYMOUS'
            AND ot.type = :type
            AND BIT_AND(otr.mask, :openValue) = :openValue
        ";
        $query = $this->_em->createQuery($dql);
        $query->setParameter('openValue', ToolMaskDecoder::$defaultValues['open']);
        $query->setParameter('type', $orderedToolType);

        return $query->getResult();
    }