@Internal
public interface UserConverter
Modifier and Type | Method and Description |
---|---|
String |
getDbString(ApplicationUser user)
Get the String representation of the User to be passed to and from the database tier.
|
String |
getHttpParameterValue(ApplicationUser user)
Get the String representation of the User to be passed to and from the presentation tier as an HTTP parameter.
|
String |
getString(ApplicationUser user)
Deprecated.
Use
getHttpParameterValue(ApplicationUser) or getDbString(ApplicationUser) instead. Since v6.0. |
ApplicationUser |
getUser(String stringValue)
Deprecated.
Use
getUserFromDbString(String) instead. Since v6.0. |
ApplicationUser |
getUserEvenWhenUnknown(String stringValue)
Deprecated.
Use
getUserFromDbString(String) instead. Since v6.0. |
ApplicationUser |
getUserFromDbString(String stringValue)
Get the User Object from its database string representation.
|
ApplicationUser |
getUserFromHttpParameterWithValidation(String stringValue)
Get the User Object from its presentation string representation.
|
ApplicationUser |
getUserObject(String stringValue)
Deprecated.
Use
getUser(String) instead. Since v5.0. |
String getString(ApplicationUser user)
getHttpParameterValue(ApplicationUser)
or getDbString(ApplicationUser)
instead. Since v6.0.user
- the UserString getHttpParameterValue(ApplicationUser user)
user
- the UserString getDbString(ApplicationUser user)
user
- the UserApplicationUser getUser(String stringValue) throws FieldValidationException
getUserFromDbString(String)
instead. Since v6.0.stringValue
- User nameFieldValidationException
- if the input parameter is nullApplicationUser getUserEvenWhenUnknown(String stringValue) throws FieldValidationException
getUserFromDbString(String)
instead. Since v6.0.stringValue
- User nameFieldValidationException
- if the input parameter is nullApplicationUser getUserFromHttpParameterWithValidation(String stringValue) throws FieldValidationException
stringValue
- presentation string representation (username)FieldValidationException
- if no user exists with the given username#getHttpParameterValue(ApplicationUser)}
ApplicationUser getUserFromDbString(String stringValue)
stringValue
- database string representation#getDbString(ApplicationUser)}
ApplicationUser getUserObject(String stringValue) throws FieldValidationException
getUser(String)
instead. Since v5.0.stringValue
- User nameFieldValidationException
- if the input parameter is nullCopyright © 2002-2021 Atlassian. All Rights Reserved.