public final class UserNameHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getCompleteSignature(String salutation,
String firstName,
String lastName,
String separator,
String fallback)
Get the compelte signature
|
static String |
getCompleteSignature(User user)
Get the complete signature of the user which is "'SALUATAION' 'FIRSTNAME' 'LASTNAME'".
|
static String |
getCompleteSignature(UserName profile,
String separator,
String fallback)
Get the complete signature of the profile which is "'SALUATAION' 'FIRSTNAME' 'LASTNAME'".
|
static String |
getCompleteSignature(UserName profile,
String separator,
String fallback,
boolean includeSalutation)
Get the complete signature of the profile which is "'SALUATAION' 'FIRSTNAME' 'LASTNAME'".
|
static String |
getCompleteSignature(User user,
String separator,
String fallback)
Get the complete signature of the user which is "'SALUATAION' 'FIRSTNAME' 'LASTNAME'".
|
static String |
getDefaultUserSignature(User user)
Get the default username of the user which is "'SALUATAION' 'FIRSTNAME' 'LASTNAME'".
|
static String |
getDefaultUserSignature(UserData userListItem)
Get the complete signature of the user which is "'SALUATAION' 'FIRSTNAME' 'LASTNAME'".
|
static String |
getDetailedUserSignature(String firstName,
String lastName,
String alias)
Returns the string containing "'FIRSTNAME' 'LASTNAME' ('ALIAS')".
|
static String |
getDetailedUserSignature(User user) |
static String |
getDetailedUserSignature(UserData userListItem)
Returns the string containing "'FIRSTNAME' 'LASTNAME' ('ALIAS')".
|
static String |
getSimpleDefaultUserSignature(NoteData noteListData)
Returns a simple user signature consisting of "'FIRSTNAME' 'LASTNAME'" or "'ALIAS'" in case
firstname and lastname are not defined.
|
static String |
getSimpleDefaultUserSignature(String firstName,
String lastName,
String alias)
Returns a simple user signature consisting of "'FIRSTNAME' 'LASTNAME'" or "'ALIAS'" in case
firstname and lastname are not defined.
|
static String |
getSimpleDefaultUserSignature(User user)
Returns a simple user signature consisting of "'FIRSTNAME' 'LASTNAME'" or "'ALIAS'" in case
firstname and lastname are not defined.
|
static String |
getSimpleDefaultUserSignature(UserData userListItem)
Returns a simple user signature consisting of "'FIRSTNAME' 'LASTNAME'" or "'ALIAS'" in case
firstname and lastname are not defined.
|
static String |
getSimpleDefaultUserSignature(UserProfileDetails profileDetails)
Returns a simple user signature consisting of "'FIRSTNAME' 'LASTNAME'" or "'ALIAS'" in case
firstname and lastname are not defined.
|
static String |
getUserSignature(UserData userListItem,
UserNameFormat format)
To get the signature of an user.
|
static String |
getUserSignature(UserProfileDetailListItem listItem,
UserNameFormat format)
To get the signature of an user.
|
static String |
getUserSignature(User user,
UserNameFormat format)
To get the signature of an user.
|
public static String getCompleteSignature(User user)
user
- the user to usepublic static String getCompleteSignature(User user, String separator, String fallback)
user
- the user to useseparator
- the separator to use between the elementsfallback
- the fallback in case the profile is not availablepublic static String getCompleteSignature(String salutation, String firstName, String lastName, String separator, String fallback)
salutation
- the salutationfirstName
- first namelastName
- last nameseparator
- the separator to usefallback
- a fallback if all is blankpublic static String getCompleteSignature(UserName profile, String separator, String fallback)
profile
- the profile to useseparator
- the separator to use between the elementsfallback
- the fallback in case the profile is not availablepublic static String getCompleteSignature(UserName profile, String separator, String fallback, boolean includeSalutation)
profile
- the profile to useseparator
- the separator to use between the elementsfallback
- the fallback in case the profile is not availableincludeSalutation
- whether to include the salutation into the returned signaturepublic static String getDefaultUserSignature(User user)
user
- the user to usepublic static String getDefaultUserSignature(UserData userListItem)
userListItem
- the user list item to usepublic static String getDetailedUserSignature(User user)
user
- the user to usepublic static String getDetailedUserSignature(String firstName, String lastName, String alias)
firstName
- the firstnamelastName
- the lastnamealias
- the aliaspublic static String getDetailedUserSignature(UserData userListItem)
userListItem
- the userListItem to usepublic static String getSimpleDefaultUserSignature(User user)
user
- the user to usepublic static String getSimpleDefaultUserSignature(UserProfileDetails profileDetails)
profileDetails
- object holding the user detailspublic static String getSimpleDefaultUserSignature(NoteData noteListData)
noteListData
- the user list item to usepublic static String getSimpleDefaultUserSignature(String firstName, String lastName, String alias)
firstName
- the first name of the userlastName
- the last namealias
- the aliaspublic static String getSimpleDefaultUserSignature(UserData userListItem)
userListItem
- the user list item to usepublic static String getUserSignature(User user, UserNameFormat format)
user
- the user to useformat
- the format of the user signaturepublic static String getUserSignature(UserData userListItem, UserNameFormat format)
userListItem
- the user list item to useformat
- the format of the user signaturepublic static String getUserSignature(UserProfileDetailListItem listItem, UserNameFormat format)
listItem
- the list item to useformat
- the format of the user signatureCopyright © 2019 Communote team. All rights reserved.