@Service @Transactional public class LastModificationDateManagement extends Object
The crawl-last-modification dates are similar to the last-modification dates of the entities but usually are also updated by other operations. For example the last-modification date of a topic is updated when the title, alias, description, the create system notes flag and/or the tag assignment is modified. The crawl-last-modification date of the topic is also updated if the topic access rights are changed.
Constructor and Description |
---|
LastModificationDateManagement() |
Modifier and Type | Method and Description |
---|---|
Date |
getAttachmentCrawlLastModificationDate(Long attachmentId)
Get the crawl-last-modification date of the given attachment.
|
<T> List<T> |
getAttachmentCrawlLastModificationDates(LastModificationDateFactory<T> lastModificationDateFactory)
Get the crawl-last-modification dates of all attachments which are assigned to a note.
|
Date |
getNoteCrawlLastModificationDate(Long noteId)
Get the crawl-last-modification date of the given note.
|
<T> List<T> |
getNoteCrawlLastModificationDates(LastModificationDateFactory<T> lastModificationDateFactory)
Get the crawl-last-modification dates of all published notes.
|
Date |
getTopicCrawlLastModificationDate(Long topicId)
Get the crawl-last-modification date of the given topic.
|
<T> List<T> |
getTopicCrawlLastModificationDates(LastModificationDateFactory<T> lastModificationDateFactory)
Get the crawl-last-modification dates of all topics.
|
public Date getAttachmentCrawlLastModificationDate(Long attachmentId) throws AuthorizationException, AttachmentNotFoundException
attachmentId
- the ID of the attachmentAuthorizationException
- in case the current user is not allowed to read the note of the attachmentAttachmentNotFoundException
- in case the attachment does not exist or is not yet publishedpublic <T> List<T> getAttachmentCrawlLastModificationDates(LastModificationDateFactory<T> lastModificationDateFactory) throws AuthorizationException
T
- the type of object to be returned that holds the informationlastModificationDateFactory
- factory that creates objects that holds the last modification date information and
will return it as listAuthorizationException
- in case the current user is not the internal system userpublic Date getNoteCrawlLastModificationDate(Long noteId) throws AuthorizationException, NoteNotFoundException
noteId
- the ID of the noteAuthorizationException
- in case the current user is not allowed to read the noteNoteNotFoundException
- in case the note does not existpublic <T> List<T> getNoteCrawlLastModificationDates(LastModificationDateFactory<T> lastModificationDateFactory) throws AuthorizationException
T
- the type of object to be returned that holds the informationlastModificationDateFactory
- factory that creates objects that holds the last modification date information and
will return it as listAuthorizationException
- in case the current user is not the internal system userpublic Date getTopicCrawlLastModificationDate(Long topicId) throws AuthorizationException, BlogNotFoundException
topicId
- the ID of the topicAuthorizationException
- in case the current user has no read access to the topicBlogNotFoundException
- in case the topic does not existpublic <T> List<T> getTopicCrawlLastModificationDates(LastModificationDateFactory<T> lastModificationDateFactory) throws AuthorizationException
T
- the type of object to be returned that holds the informationlastModificationDateFactory
- factory that creates objects that holds the last modification date information and
will return it as listAuthorizationException
- in case the current user is not the internal system userCopyright © 2019 Communote team. All rights reserved.