|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.customfields.converters.UserConverterImpl
public class UserConverterImpl
Constructor Summary | |
---|---|
UserConverterImpl(UserManager userManager)
|
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)
Get the String representation of the User. |
com.atlassian.crowd.embedded.api.User |
getUser(String stringValue)
Get the User Object from the user name. |
com.atlassian.crowd.embedded.api.User |
getUserEvenWhenUnknown(String stringValue)
Get the User Object from the user name even when the user is unknown. |
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)
Get the User Object from the user name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserConverterImpl(UserManager userManager)
Method Detail |
---|
public String getString(com.atlassian.crowd.embedded.api.User user)
UserConverter
getString
in interface UserConverter
user
- the User
public String getHttpParameterValue(ApplicationUser user)
UserConverter
getHttpParameterValue
in interface UserConverter
user
- the User
public String getDbString(ApplicationUser user)
UserConverter
getDbString
in interface UserConverter
user
- the User
public com.atlassian.crowd.embedded.api.User getUser(String stringValue) throws FieldValidationException
UserConverter
getUser
in interface UserConverter
stringValue
- User name
FieldValidationException
- if the input parameter is nullpublic com.atlassian.crowd.embedded.api.User getUserEvenWhenUnknown(String stringValue) throws FieldValidationException
UserConverter
getUserEvenWhenUnknown
in interface UserConverter
stringValue
- User name
FieldValidationException
- if the input parameter is nullpublic ApplicationUser getUserFromHttpParameterWithValidation(String stringValue) throws FieldValidationException
UserConverter
getUserFromHttpParameterWithValidation
in interface UserConverter
stringValue
- presentation string representation (username)
FieldValidationException
- if no user exists with the given username#getHttpParameterValue(ApplicationUser)}
public ApplicationUser getUserFromDbString(String stringValue)
UserConverter
getUserFromDbString
in interface UserConverter
stringValue
- database string representation
#getDbString(ApplicationUser)}
public com.atlassian.crowd.embedded.api.User getUserObject(String stringValue) throws FieldValidationException
UserConverter
getUserObject
in interface UserConverter
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 |