|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.plugins.builduser.utils.UsernameUtils
public final class UsernameUtils
Utility class for splitting full user name to parts.
| Method Summary | |
|---|---|
static String |
getFirstName(String fullName)
Cuts first name (first word) out from the passed string. |
static String |
getLastName(String fullName)
Cuts last name (second word) out from the passed string. |
static void |
setUsernameVars(String username,
Map<String,String> variables)
Splits username string to first & last names and sets appropriate build variables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setUsernameVars(String username,
Map<String,String> variables)
username - string with username, usually smth. like "Chuck Norris"variables - result map, where to put build variables.public static String getFirstName(String fullName)
fullName - full name -- string like "Chuck Norris"
public static String getLastName(String fullName)
fullName - full name -- string like "Chuck Norris"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||