]> git.mxchange.org Git - juser-activity-core.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Fri, 26 Aug 2016 12:25:45 +0000 (14:25 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 26 Aug 2016 12:25:45 +0000 (14:25 +0200)
- added another constructor

src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java

index f96e689a06acf21061f9cf43f8e9f2ef7f361ab2..4f02151bc1700bbaf3cfcceb63b7cf8b4667427e 100644 (file)
@@ -236,6 +236,22 @@ public class UserActivityLog implements LogableUserActivity {
                this.activityPrincipalName = principalName;
        }
 
+       /**
+        * Consctructor with type, user, timestamp and principal name
+        * <p>
+        * @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) {