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 |
getFormattedName(ResourceResolver resolver,
String userId,
String nameDisplayOrder)
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
- the authorizableRepositoryException
- in case of a failurepublic 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 frompublic static String getFormattedName(ResourceResolver resolver, String userId, String nameDisplayOrder)
resolver
- Resource resolver to use to get the UserPropertiesManager
userId
- ID of the user to get the display name fromnameDisplayOrder
- Order of given, middle and family names.
Western name order should be "givenName middleName familyName",
Eastern name order should be "familyName givenName middleName"."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"