public final class UserUtil extends 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_NAMESpublic static boolean isAdmin(@Nonnull ConfigurationParameters parameters, @Nonnull String userId)
@Nonnull public static String getAdminId(@Nonnull ConfigurationParameters parameters)
@Nonnull public static String getAnonymousId(@Nonnull ConfigurationParameters parameters)
public static boolean isType(@Nullable org.apache.jackrabbit.oak.api.Tree authorizableTree, @Nonnull AuthorizableType type)
@CheckForNull public static AuthorizableType getType(@Nonnull org.apache.jackrabbit.oak.api.Tree authorizableNode)
@CheckForNull public static AuthorizableType getType(@CheckForNull String primaryTypeName)
public static boolean isSystemUser(@Nullable org.apache.jackrabbit.oak.api.Tree authorizableTree)
@CheckForNull public static String getAuthorizableRootPath(@Nonnull ConfigurationParameters parameters, @Nullable AuthorizableType type)
@CheckForNull public static String getAuthorizableId(@Nonnull org.apache.jackrabbit.oak.api.Tree authorizableTree)
@Nonnull public static String getAuthorizableId(@Nonnull org.apache.jackrabbit.oak.api.Tree authorizableTree, @Nonnull 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.@CheckForNull public static <T extends Authorizable> T castAuthorizable(@Nullable Authorizable authorizable, Class<T> authorizableClass) throws AuthorizableTypeException
AuthorizableTypeExceptionpublic static int getImportBehavior(@Nonnull 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.IGNOREconfig - The configuration parameters.ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR
or ImportBehavior.IGNORE if this
config parameter is missing.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.