Class UserActivity
java.lang.Object
io.goobi.viewer.model.security.user.UserActivity
- Author:
- florian
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUserActivity
(UserActivity.ActivityType type, String label, LocalDateTime date, boolean update) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals if label and type are equalgetDate()
static UserActivity
getFromBookmark
(Bookmark bookmark) static UserActivity
static UserActivity
static UserActivity
getFromComment
(Comment comment) static UserActivity
getFromCommentUpdate
(Comment comment) static UserActivity
getFromSearch
(Search search) getLabel()
getType()
int
hashCode()
Build from label and typeboolean
isUpdate()
-
Field Details
-
MAX_LABEL_LENGTH
public static final int MAX_LABEL_LENGTH- See Also:
-
LABEL_TRUNCATE_SUFFIX
- See Also:
-
-
Constructor Details
-
UserActivity
public UserActivity(UserActivity.ActivityType type, String label, LocalDateTime date, boolean update) - Parameters:
type
-label
-date
-update
-
-
-
Method Details
-
getFromComment
-
getFromCommentUpdate
-
getFromCampaignAnnotation
-
getFromCampaignAnnotationUpdate
-
getFromBookmark
-
getFromSearch
-
getType
- Returns:
- the type
-
getLabel
- Returns:
- the label
-
getDate
- Returns:
- the date
-
isUpdate
public boolean isUpdate()- Returns:
- the update
-
equals
Equals if label and type are equal -
hashCode
public int hashCode()Build from label and type
-