Return the classified hash id.
It's an sha1 hash

@param Document $document
@return string
166049
protected function getHashId(Document $document, $sm) 
	{
		$main = $sm->get('neobazaar.service.main');
		$documentRepository = $main->getDocumentEntityRepository();
		return $documentRepository->getEncryptedId($document->getDocumentId());
	}
1222802
private function getQueryForDocument(object $document) : array
    {
        $id = $this->uow->getDocumentIdentifier($document);
        $id = $this->class->getDatabaseIdentifierValue($id);

        $shardKeyQueryPart = $this->getShardKeyQuery($document);
        return array_merge(['_id' => $id], $shardKeyQueryPart);
    }
654749
public function getSHA1()
    {
        try {
            $array = func_get_args();
            sort($array, SORT_STRING);

            return sha1(implode($array));
        } catch (BaseException $e) {
            throw new EncryptionException($e->getMessage(), EncryptionException::ERROR_CALC_SIGNATURE);
        }
    }
620486
public static function getDocRoot(): string
    {
        $result = '.';
        $root = Arr::key('DOCUMENT_ROOT', $_SERVER, true);

        if ($root) {
            $result = $root;
        }

        $result = FS::clean($result);
        $result = FS::real($result);

        if (!$result) {
            $result = FS::real('.'); // @codeCoverageIgnore
        }

        return $result;
    }
499103
public function serialize(Document $document)
    {
        return [
            'id' => $document->getUuid(),
            'type' => $document->getType(),
            'data' => Document::DOCUMENT_TYPE_RESOURCE === $document->getType() ?
                $this->resourceSerializer->serialize($document->getData()) :
                $document->getData(),
            'drop' => $document->getDrop()->getUuid(),
            'user' => $document->getUser() ? $this->userSerializer->serialize($document->getUser()) : null,
            'dropDate' => $document->getDropDate() ? $document->getDropDate()->format('Y-m-d H:i') : null,
            'toolDocuments' => $this->getToolDocuments($document),
        ];
    }
1028245
private function getIdForIdentityMap($document)
    {
        $class = $this->dm->getClassMetadata(get_class($document));

        if ($class->getIndex() === null) {
            $id = spl_object_hash($document);
        } else {
            $id = $class->createIdentifier($document)->getSerialized();
        }

        return $id;
    }
948700
public function getHash()
	{
		if ($this->hash == null) {
			$this->requestBody();
			$this->hash = sha1_file($this->bodyTempFile);
		}
		return $this->hash;
	}
1294102
public function getUrl($document)
    {
        $environment = $document->getEnvironment();

        return $environment->getUrl() . '.' . $this->kernel->getFileExtension();
    }
1259941
function getPath(\DOMDocument $document)
    {
        $name = $document->documentElement->localName;
        if (empty($this->version)) {
            $this->loadVersion($document);
        }
        $path = $this->getFullPath($name);

        return $path;
    }
359566
public function getTfIdf(DocumentAbstract $document, $token, $mode = 1)
    {
        return $this->getTermFrequency($document, $token, $mode) * $this->getIdf($token);
    }
1303304
def marker_index_document_id(self):
        
        params = '%s:%s:%s' % (self.index, self.doc_type, self.update_id)
        return hashlib.sha1(params.encode('utf-8')).hexdigest()
1306778
protected function getDate(Document $document) 
	{
		if(null === $document->getDateEdit()) {
			return $document->getDateInsert()->format('Y-m-d H:i:s');
		}
		
		return $document->getDateEdit()->format('Y-m-d H:i:s');
	}
1207145
public function getNormalizedIdentifier($document)
    {
        if (is_scalar($document)) {
            throw new \InvalidArgumentException('Invalid argument, object or null required');
        }

        // the document is not managed
        if (!$document || !$this->getDocumentManager()->contains($document)) {
            return;
        }

        $values = $this->getIdentifierValues($document);

        return $values[0];
    }
512224
public function getNodeForDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);
        $this->assertDocumentExists($document);

        return $this->nodeMap[$this->documentNodeMap[$oid]];
    }
767981
protected function getHideMobile(Document $document) 
	{
		foreach($document->getMetadata() as $meta) {
			if('hidemobile' == $meta->getKey()) {
				$v = $meta->getValue();
				return $v;
				break;
			}
		}
		
		return false;
	}
62050
protected function getUserHashId(Document $document, $sm) 
	{
		$user = $document->getUser();
		$main = $sm->get('neobazaar.service.main');
		$userRepository = $main->getUserEntityRepository();
		//$this->userIdNoHash = $user->getUserId(); // we do not want to give this info
		
		return $userRepository->getEncryptedId($user->getUserId());
	}
931729
protected function getAddress(Document $document, $sm) 
	{
		$firstCategory = null === $this->category ? 
			$this->getCategory($document) : $this->category;
		
		$key = null === $this->hashId ? 
			$this->getHashId($document, $sm) : $this->hashId;
		
		$slug = null === $this->slug ? 
			$this->getSlug($document) : $this->slug;
		
		$url = $sm->get('ControllerPluginManager')->get('Url');
		return $url->fromRoute('DocumentRegexClassified/title/id', array(
					'category' => $firstCategory,
					'title' => $slug,
					'id' => $key
				), array('force_canonical' => true));
	}