From: Roland Häder Date: Fri, 26 Aug 2016 12:25:45 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8703b2244ed9884d6237e46a3908370df064086;p=juser-activity-core.git Continued a bit: - added another constructor --- diff --git a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java index f96e689..4f02151 100644 --- a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java +++ b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java @@ -236,6 +236,22 @@ public class UserActivityLog implements LogableUserActivity { this.activityPrincipalName = principalName; } + /** + * Consctructor with type, user, timestamp and principal name + *

+ * @param activityType Type + * @param activityUser User instance + * @param activityTimestamp imestamp + * @param principalName Principal name + */ + public UserActivityLog (final String activityType, final User activityUser, final Calendar activityTimestamp, final String principalName) { + // Call other constructor + this(activityType, activityUser, activityTimestamp); + + // Set principal name + this.activityPrincipalName = principalName; + } + @Override public boolean equals (final Object object) { if (this == object) {