public final class UserUtil extends java.lang.Object implements UserConstants
CREDENTIALS_ATTRIBUTE_NEWPASSWORD, DEFAULT_ADMIN_ID, DEFAULT_ANONYMOUS_ID, DEFAULT_DEPTH, DEFAULT_ENABLE_RFC7613_USERCASE_MAPPED_PROFILE, DEFAULT_GROUP_PATH, DEFAULT_PASSWORD_INITIAL_CHANGE, DEFAULT_PASSWORD_MAX_AGE, DEFAULT_SYSTEM_RELATIVE_PATH, DEFAULT_USER_PATH, GROUP_PROPERTY_NAMES, MIX_REP_IMPERSONATABLE, NT_NAMES, NT_REP_AUTHORIZABLE, NT_REP_AUTHORIZABLE_FOLDER, NT_REP_GROUP, NT_REP_MEMBER_REFERENCES, NT_REP_MEMBER_REFERENCES_LIST, NT_REP_MEMBERS, NT_REP_PASSWORD, NT_REP_SYSTEM_USER, NT_REP_USER, PARAM_ADMIN_ID, PARAM_ANONYMOUS_ID, PARAM_AUTHORIZABLE_ACTION_PROVIDER, PARAM_AUTHORIZABLE_NODE_NAME, PARAM_DEFAULT_DEPTH, PARAM_ENABLE_RFC7613_USERCASE_MAPPED_PROFILE, PARAM_GROUP_PATH, PARAM_OMIT_ADMIN_PW, PARAM_PASSWORD_HASH_ALGORITHM, PARAM_PASSWORD_HASH_ITERATIONS, PARAM_PASSWORD_HISTORY_SIZE, PARAM_PASSWORD_INITIAL_CHANGE, PARAM_PASSWORD_MAX_AGE, PARAM_PASSWORD_SALT_SIZE, PARAM_SUPPORT_AUTOSAVE, PARAM_SYSTEM_RELATIVE_PATH, PARAM_USER_AUTHENTICATION_FACTORY, PARAM_USER_PATH, PASSWORD_HISTORY_DISABLED_SIZE, PWD_PROPERTY_NAMES, REP_AUTHORIZABLE_ID, REP_DISABLED, REP_IMPERSONATORS, REP_MEMBERS, REP_MEMBERS_LIST, REP_PASSWORD, REP_PASSWORD_LAST_MODIFIED, REP_PRINCIPAL_NAME, REP_PWD, REP_PWD_HISTORY, USER_PROPERTY_NAMES
Modifier and Type | Method and Description |
---|---|
static <T extends Authorizable> |
castAuthorizable(Authorizable authorizable,
java.lang.Class<T> authorizableClass) |
static java.lang.String |
getAdminId(ConfigurationParameters parameters) |
static java.lang.String |
getAnonymousId(ConfigurationParameters parameters) |
static java.lang.String |
getAuthorizableId(Tree authorizableTree) |
static java.lang.String |
getAuthorizableId(Tree authorizableTree,
AuthorizableType type)
Retrieve the id from the given
authorizableTree , which must have
been verified for being a valid authorizable of the specified type upfront. |
static java.lang.String |
getAuthorizableRootPath(ConfigurationParameters parameters,
AuthorizableType type) |
static int |
getImportBehavior(ConfigurationParameters config)
Return the configured
ImportBehavior
for the given config . |
static AuthorizableType |
getType(java.lang.String primaryTypeName) |
static AuthorizableType |
getType(Tree authorizableNode) |
static boolean |
isAdmin(ConfigurationParameters parameters,
java.lang.String userId) |
static boolean |
isSystemUser(Tree authorizableTree) |
static boolean |
isType(Tree authorizableTree,
AuthorizableType type) |
public static boolean isAdmin(ConfigurationParameters parameters, java.lang.String userId)
public static java.lang.String getAdminId(ConfigurationParameters parameters)
public static java.lang.String getAnonymousId(ConfigurationParameters parameters)
public static boolean isType(Tree authorizableTree, AuthorizableType type)
public static AuthorizableType getType(Tree authorizableNode)
public static AuthorizableType getType(java.lang.String primaryTypeName)
public static boolean isSystemUser(Tree authorizableTree)
public static java.lang.String getAuthorizableRootPath(ConfigurationParameters parameters, AuthorizableType type)
public static java.lang.String getAuthorizableId(Tree authorizableTree)
public static java.lang.String getAuthorizableId(Tree authorizableTree, AuthorizableType type)
authorizableTree
, which must have
been verified for being a valid authorizable of the specified type upfront.authorizableTree
- The authorizable tree which must be of the given type
/type
- The type of the authorizable tree.AuthorizableTree
.public static <T extends Authorizable> T castAuthorizable(Authorizable authorizable, java.lang.Class<T> authorizableClass) throws AuthorizableTypeException
AuthorizableTypeException
public static int getImportBehavior(ConfigurationParameters config)
ImportBehavior
for the given config
. The default behavior in case
ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR
is not contained in the config
object is
ImportBehavior.IGNORE
config
- The configuration parameters.ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR
or ImportBehavior.IGNORE
if this
config parameter is missing."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"