public class AuthorizableUtil
extends java.lang.Object
| Constructor and Description |
|---|
AuthorizableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getFormattedName(ResourceResolver resolver,
Authorizable authorizable)
Utility to retrieve the formatted name of a user.
|
static java.lang.String |
getFormattedName(ResourceResolver resolver,
Authorizable authorizable,
java.lang.String nameDisplayOrder)
Utility to retrieve the formatted name of a user
|
static java.lang.String |
getFormattedName(ResourceResolver resolver,
java.lang.String userId)
Utility to retrieve the formatted name of a user.
|
static java.lang.String |
getFormattedName(ResourceResolver resolver,
java.lang.String userId,
java.lang.String nameDisplayOrder)
Utility to retrieve the formatted name of a user.
|
static java.lang.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 java.lang.String getName(Authorizable authorizable) throws RepositoryException
authorizable - the authorizableRepositoryException - in case of a failurepublic static java.lang.String getFormattedName(ResourceResolver resolver, java.lang.String userId)
getFormattedName(ResourceResolver, Authorizable) if possible.resolver - Resource resolver to use to get the UserPropertiesManageruserId - ID of the user to get the display name frompublic static java.lang.String getFormattedName(ResourceResolver resolver, Authorizable authorizable)
resolver - Resource resolver to use to get the UserPropertiesManagerauthorizable - the authorizablepublic static java.lang.String getFormattedName(ResourceResolver resolver, java.lang.String userId, java.lang.String nameDisplayOrder)
getFormattedName(ResourceResolver, Authorizable, String) if possible.resolver - Resource resolver to use to get the UserPropertiesManageruserId - 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".public static java.lang.String getFormattedName(ResourceResolver resolver, Authorizable authorizable, java.lang.String nameDisplayOrder)
resolver - Resource resolver to use to get the UserPropertiesManagerauthorizable - the authorizablenameDisplayOrder - Order of given, middle and family names.
Western name order should be "givenName middleName familyName",
Eastern name order should be "familyName givenName middleName"."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"