Package sonia.scm.repository.util
Class AuthorUtil
java.lang.Object
sonia.scm.repository.util.AuthorUtil
Contains convenience methods to manage
AuthorUtil.CommandWithAuthor
classes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Command whose execution includes an author as aPerson
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Person
createAuthorWithMailFallback
(DisplayUser user, EMail eMail) Depending on the mail input, thePerson
is either created by the given nullableEMail
or the information fromDisplayUser
if the mail remains null.static void
static void
setAuthorIfNotAvailable
(AuthorUtil.CommandWithAuthor request, EMail eMail)
-
Constructor Details
-
AuthorUtil
public AuthorUtil()
-
-
Method Details
-
setAuthorIfNotAvailable
- Parameters:
request
-AuthorUtil.CommandWithAuthor
- See Also:
-
createAuthorFromSubject(EMail)
-
setAuthorIfNotAvailable
public static void setAuthorIfNotAvailable(AuthorUtil.CommandWithAuthor request, @Nullable EMail eMail) - Parameters:
request
-AuthorUtil.CommandWithAuthor
eMail
-EMail
- See Also:
-
createAuthorFromSubject(EMail)
-
createAuthorWithMailFallback
Depending on the mail input, thePerson
is either created by the given nullableEMail
or the information fromDisplayUser
if the mail remains null.- Parameters:
user
-DisplayUser
eMail
- (nullable)EMail
- Returns:
Person
-