com.atlassian.jira.issue.customfields.converters.UserConverter |
Known Indirect Subclasses |
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Converts between User objects and Strings for storage and retrieval of Custom Field values.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the String representation of the User to be passed to and from the database tier.
| |||||||||||
Get the String representation of the User to be passed to and from the presentation tier as an HTTP parameter.
| |||||||||||
This method is deprecated.
Use
getHttpParameterValue(ApplicationUser) or getDbString(ApplicationUser) instead. Since v6.0.
| |||||||||||
This method is deprecated.
Use
getUserFromDbString(String) instead. Since v6.0.
| |||||||||||
This method is deprecated.
Use
getUserFromDbString(String) instead. Since v6.0.
| |||||||||||
Get the User Object from its database string representation.
| |||||||||||
Get the User Object from its presentation string representation.
| |||||||||||
This method is deprecated.
Use
getUser(String) instead. Since v5.0.
|
Get the String representation of the User to be passed to and from the database tier.
user | the User |
---|
Get the String representation of the User to be passed to and from the presentation tier as an HTTP parameter.
user | the User |
---|
This method is deprecated.
Use getHttpParameterValue(ApplicationUser)
or getDbString(ApplicationUser)
instead. Since v6.0.
Get the String representation of the User.
user | the User |
---|
This method is deprecated.
Use getUserFromDbString(String)
instead. Since v6.0.
Get the User Object from the user name. This will return null if the stringValue is empty.
stringValue | User name |
---|
FieldValidationException | if the input parameter is null |
---|
This method is deprecated.
Use getUserFromDbString(String)
instead. Since v6.0.
Get the User Object from the user name even when the user is unknown. This is usefull in places where the user needs to be shown, even though they may have disappeared remotely, say from LDAP. This will return null if the stringValue is empty.
stringValue | User name |
---|
FieldValidationException | if the input parameter is null |
---|
Get the User Object from its database string representation. If a null stringValue is passed, then a null User object is returned, but it is guaranteed to return a non-null User in all other cases. This is usefull in places where the user needs to be shown, even though they may have disappeared remotely, say from LDAP.
stringValue | database string representation |
---|
Get the User Object from its presentation string representation. This will return null if the stringValue is empty.
stringValue | presentation string representation (username) |
---|
FieldValidationException | if no user exists with the given username |
---|
This method is deprecated.
Use getUser(String)
instead. Since v5.0.
Get the User Object from the user name. This will return null if the stringValue is empty.
stringValue | User name |
---|
FieldValidationException | if the input parameter is null |
---|