Package com.atlassian.crowd.util
Class InternalEntityUtils
java.lang.Object
com.atlassian.crowd.util.InternalEntityUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Function<? super InternalEntity,
String> CallsInternalEntity.getName()
on its argument, which must not be null.static final int
Maximum directory entity field size for string fields. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
MAX_ENTITY_FIELD_LENGTH
public static final int MAX_ENTITY_FIELD_LENGTHMaximum directory entity field size for string fields.- See Also:
-
GET_NAME
CallsInternalEntity.getName()
on its argument, which must not be null.
-
-
Method Details
-
truncateValue
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
Ensures that the given string is not longer than 255 characters.- Parameters:
value
- value to be validated
-