Class UserActivity
java.lang.Object
io.goobi.viewer.model.security.user.UserActivity
- Author:
- florian
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserActivity(UserActivity.ActivityType type, String label, LocalDateTime date, boolean update) -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals if label and type are equalgetDate()static UserActivitygetFromBookmark(Bookmark bookmark) static UserActivitystatic UserActivitystatic UserActivitygetFromComment(Comment comment) static UserActivitygetFromCommentUpdate(Comment comment) static UserActivitygetFromSearch(Search search) getLabel()getType()inthashCode()Build from label and typebooleanisUpdate()
-
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
-