public class AuthorizableUtil extends Object
Constructor and Description |
---|
AuthorizableUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getFormattedName(ResourceResolver resolver,
String userId)
Utility to retrieve the formatted name of a user
|
static String |
getName(Authorizable authorizable)
Utility to retrieve the name of an authorizable that takes deprecated
user properties such as present in older versions if CQ into account.
|
public static String getName(Authorizable authorizable) throws RepositoryException
authorizable
- RepositoryException
public static String getFormattedName(ResourceResolver resolver, String userId)
resolver
- Resource resolver to use to get the UserPropertiesManager
userId
- ID of the user to get the display name from"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"