From d8703b2244ed9884d6237e46a3908370df064086 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 26 Aug 2016 14:25:45 +0200 Subject: [PATCH] Continued a bit: - added another constructor --- .../model/user/activity/UserActivityLog.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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) { -- 2.39.5