Class InternalEntityUtils

java.lang.Object
com.atlassian.crowd.util.InternalEntityUtils

public class InternalEntityUtils extends Object
  • Field Details

  • Method Details

    • truncateValue

      public static String truncateValue(String value)
      Truncates the given value so that it will conform with database constraints. Fields are limited to 255 characters. Values longer than 255 characters are truncated to 252 first characters with "..." concatenated in the end.
      Parameters:
      value - value to be truncated
      Returns:
      value that has maximum of 255 charactersn
    • validateLength

      public static void validateLength(String value)
      Ensures that the given string is not longer than 255 characters.
      Parameters:
      value - value to be validated