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 interfaceCommand whose execution includes an author as aPerson. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PersoncreateAuthorWithMailFallback(DisplayUser user, EMail eMail) Depending on the mail input, thePersonis either created by the given nullableEMailor the information fromDisplayUserif the mail remains null.static voidstatic voidsetAuthorIfNotAvailable(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.CommandWithAuthoreMail-EMail- See Also:
-
createAuthorFromSubject(EMail)
-
createAuthorWithMailFallback
Depending on the mail input, thePersonis either created by the given nullableEMailor the information fromDisplayUserif the mail remains null.- Parameters:
user-DisplayUsereMail- (nullable)EMail- Returns:
Person
-