com.atlassian.crowd.util
Class InternalEntityUtils
java.lang.Object
com.atlassian.crowd.util.InternalEntityUtils
public class InternalEntityUtils
- extends Object
Method Summary |
static String |
truncateValue(String value)
Truncates the given value so that it will conform with database
constraints. |
static void |
validateLength(String value)
Ensures that the given string is not longer than 255 characters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_ENTITY_FIELD_LENGTH
public static final int MAX_ENTITY_FIELD_LENGTH
- Maximum directory entity field size for string fields.
- See Also:
- Constant Field Values
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
Copyright © 2013 Atlassian. All Rights Reserved.