Class GroovyUserUtil
java.lang.Object
de.uplanet.lucy.server.businesslogic.system.userv2.GroovyUserUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
validateLoginName
(IProcessingContext p_ctx, String p_loginName, String p_domainName, Object p_currentUserIdOrGuid) Checks if the given login and domain name is valid.static boolean
validateObjectName
(IProcessingContext p_ctx, Object p_containerIdOrGuid, String p_nameToCheck, Object p_currentUserIdOrGuid) Checks if the given object name is valid.validatePassword
(IProcessingContext p_ctx, String p_loginName, String p_pwd, Object p_currentUserIdOrGuid)
-
Method Details
-
validateObjectName
public static boolean validateObjectName(IProcessingContext p_ctx, Object p_containerIdOrGuid, String p_nameToCheck, Object p_currentUserIdOrGuid) Checks if the given object name is valid. (Unique)- Parameters:
p_ctx
- The processing contextp_containerIdOrGuid
- The container id or container GUID ornull
if no container set (only used on new users).p_nameToCheck
- The name to checkp_currentUserIdOrGuid
- The user GUID or user id ornull
for a new user- Returns:
true
if the object name is valid otherwisefalse
-
validateLoginName
public static boolean validateLoginName(IProcessingContext p_ctx, String p_loginName, String p_domainName, Object p_currentUserIdOrGuid) Checks if the given login and domain name is valid. (Unique)- Parameters:
p_ctx
- The processing contextp_loginName
- The login name to checkp_domainName
- The domain name to checkp_currentUserIdOrGuid
- The user GUID or user id ornull
for a new user- Returns:
true
if the login / domain name is valid otherwisefalse
-
isPasswordRequired
public static boolean isPasswordRequired() -
validatePassword
public static List<String> validatePassword(IProcessingContext p_ctx, String p_loginName, String p_pwd, Object p_currentUserIdOrGuid) - Parameters:
p_ctx
- The contextp_loginName
- The login Name (required for new Users)p_pwd
- The password to checkp_currentUserIdOrGuid
- The id or GUID of an existing user.- Returns:
- Returns
null
if password is valid otherwise an string array with error messages.
-