java.lang.Object
de.uplanet.lucy.server.businesslogic.system.userv2.GroovyUserUtil

@Scriptable public final class GroovyUserUtil extends Object
  • 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 context
      p_containerIdOrGuid - The container id or container GUID or null if no container set (only used on new users).
      p_nameToCheck - The name to check
      p_currentUserIdOrGuid - The user GUID or user id or null for a new user
      Returns:
      true if the object name is valid otherwise false
    • 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 context
      p_loginName - The login name to check
      p_domainName - The domain name to check
      p_currentUserIdOrGuid - The user GUID or user id or null for a new user
      Returns:
      true if the login / domain name is valid otherwise false
    • 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 context
      p_pwd - The password to check
      p_loginName - The login Name (required for new Users)
      p_currentUserIdOrGuid - The id or GUID of an existing user.
      Returns:
      Returns null if password is valid otherwise an string array with error messages.