CloudIdManager

class OC\Federation\CloudIdManager
Source:lib/private/Federation/CloudIdManager.php#38
Implements:OCP\Federation\ICloudIdManager

Properties

Methods

public OC\Federation\CloudIdManager::__construct($contactsManager)
Source:lib/private/Federation/CloudIdManager.php#42
public OC\Federation\CloudIdManager::resolveCloudId($cloudId)
Source:

lib/private/Federation/CloudIdManager.php#51

Parameters:
  • $cloudId (string)
Returns:

\OCP\Federation\ICloudId

Throws:

\InvalidArgumentException

protected OC\Federation\CloudIdManager::getDisplayNameFromContact($cloudId)
Source:lib/private/Federation/CloudIdManager.php#85
public OC\Federation\CloudIdManager::getCloudId($user, $remote)
Source:

lib/private/Federation/CloudIdManager.php#110

Parameters:
  • $user (string)
  • $remote (string)
Returns:

\OC\Federation\CloudId

protected OC\Federation\CloudIdManager::fixRemoteURL($remote)
Strips away a potential file names and trailing slashes:
all return: http://localhost
Source:

lib/private/Federation/CloudIdManager.php#137

Parameters:
  • $remote (string)
Returns:

string

public OC\Federation\CloudIdManager::isValidCloudId($cloudId)
Source:

lib/private/Federation/CloudIdManager.php#151

Parameters:
  • $cloudId (string)
Returns:

bool