|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Internal public interface UserConverter
Converts between User objects and Strings for storage and retrieval of Custom Field values.
Method Summary | |
---|---|
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(com.atlassian.crowd.embedded.api.User user)
Deprecated. Use getHttpParameterValue(ApplicationUser) or getDbString(ApplicationUser) instead. Since v6.0. |
com.atlassian.crowd.embedded.api.User |
getUser(String stringValue)
Deprecated. Use getUserFromDbString(String) instead. Since v6.0. |
com.atlassian.crowd.embedded.api.User |
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. |
com.atlassian.crowd.embedded.api.User |
getUserObject(String stringValue)
Deprecated. Use getUser(String) instead. Since v5.0. |
Method Detail |
---|
String getString(com.atlassian.crowd.embedded.api.User user)
getHttpParameterValue(ApplicationUser)
or getDbString(ApplicationUser)
instead. Since v6.0.
user
- the User
String getHttpParameterValue(ApplicationUser user)
user
- the User
String getDbString(ApplicationUser user)
user
- the User
com.atlassian.crowd.embedded.api.User getUser(String stringValue) throws FieldValidationException
getUserFromDbString(String)
instead. Since v6.0.
stringValue
- User name
FieldValidationException
- if the input parameter is nullcom.atlassian.crowd.embedded.api.User getUserEvenWhenUnknown(String stringValue) throws FieldValidationException
getUserFromDbString(String)
instead. Since v6.0.
stringValue
- User name
FieldValidationException
- 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)}
com.atlassian.crowd.embedded.api.User getUserObject(String stringValue) throws FieldValidationException
getUser(String)
instead. Since v5.0.
stringValue
- User name
FieldValidationException
- if the input parameter is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |