aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IUserManager.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-05-17 15:20:28 +0200
committerRobin Appelman <robin@icewind.nl>2022-05-18 03:47:34 +0200
commit6d6662ec68c8e15c4c6bfdf1c694794badd412d7 (patch)
treebe5fef3090aaadad183cf68b09694daf09c0e65b /lib/public/IUserManager.php
parent83f831c26382c648d759384b8c14cac2edc67fa4 (diff)
downloadnextcloud-server-6d6662ec68c8e15c4c6bfdf1c694794badd412d7.tar.gz
nextcloud-server-6d6662ec68c8e15c4c6bfdf1c694794badd412d7.zip
expose displayname cache trough a public interface
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/IUserManager.php')
-rw-r--r--lib/public/IUserManager.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php
index e5c220af40c..da7d477ad43 100644
--- a/lib/public/IUserManager.php
+++ b/lib/public/IUserManager.php
@@ -85,6 +85,17 @@ interface IUserManager {
public function get($uid);
/**
+ * Get the display name of a user
+ *
+ * Note that this will return the uid if the user is not found instead of throwing an exception
+ *
+ * @param string $uid
+ * @return string
+ * @since 25.0.0
+ */
+ public function getDisplayName(string $uid): string;
+
+ /**
* check if a user exists
*
* @param string $uid