2 * Copyright (C) 2016 Cho-Time GmbH
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jusercore.model.user.activity;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jusercore.model.user.User;
24 * POJI for logable user activity
26 * @author Roland Haeder<rhaeder@cho-time.de>
28 public interface LogableUserActivity extends Serializable {
31 * Getter for activity id
35 Long getActivityId ();
38 * Getter for activity id
40 * @param activityId Activity id
42 void setActivityId (final Long activityId);
45 * Getter for activity message (optional)
47 * @return Activity message
49 String getActivityMessage ();
52 * Setter for activity message (optional)
54 * @param activityMessage Activity message
56 void setActivityMessage (final String activityMessage);
59 * Getter for activity timestamp
61 * @return Activity timestamp
63 Calendar getActivityTimestamp ();
66 * Setter for activity timestamp
68 * @param activityTimestamp Activity timestamp
70 void setActivityTimestamp (final Calendar activityTimestamp);
73 * Getter for activity type
75 * @return Activity type
77 String getActivityType ();
80 * Setter for activity type
82 * @param activityType Activity type
84 void setActivityType (final String activityType);
87 * Getter for activity user (who did it)
89 * @return User who did activity
91 User getActivityUser ();
94 * Setter for activity user (who did it)
96 * @param activityUser User who did activity
98 void setActivityUser (final User activityUser);
101 boolean equals (final Object object);