* @param activityTimestamp imestamp
*/
public UserActivityLog (final String activityMessage, final String activityType, final User activityUser, final Calendar activityTimestamp) {
+ // Call other constructor
+ this(activityType, activityUser, activityTimestamp);
+
+ // Set message
this.activityMessage = activityMessage;
+ }
+
+ /**
+ * Constructor with type, user and timestamp
+ * <p>
+ * @param activityType Type
+ * @param activityUser User instance
+ * @param activityTimestamp imestamp
+ */
+ public UserActivityLog (final String activityType, final User activityUser, final Calendar activityTimestamp) {
+ // Set all values
this.activityType = activityType;
this.activityUser = activityUser;
this.activityTimestamp = activityTimestamp;