tomcat/shared/classes/alfresco/extension
folder create a spring context XML file called custom-web-context.xml
. If you already have this extension file, then add the bean shown below to the existing file.org.alfresco.documentlibrary.file-previewed
and org.alfresco.documentlibrary.file-downloaded
and remove them from the list for the documentLibraryActivitySummaryProcessor
bean definition.<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns='http://www.springframework.org/schema/beans'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd'>
<bean id='documentLibraryActivitySummaryProcessor' class='org.alfresco.rest.api.impl.activities.BaseActivitySummaryProcessor'>
<property name='registry' ref='activitySummaryParser' />
<property name='eventTypes'>
<list>
<value>org.alfresco.documentlibrary.files-added</value>
<value>org.alfresco.documentlibrary.files-updated</value>
<value>org.alfresco.documentlibrary.files-deleted</value>
<value>org.alfresco.documentlibrary.file-added</value>
<value>org.alfresco.documentlibrary.file-created</value>
<value>org.alfresco.documentlibrary.file-deleted</value>
<value>org.alfresco.documentlibrary.file-liked</value>
<value>org.alfresco.documentlibrary.inline-edit</value>
<value>org.alfresco.documentlibrary.folder-liked</value>
<value>org.alfresco.documentlibrary.folder-added</value>
<value>org.alfresco.documentlibrary.folder-deleted</value>
<value>org.alfresco.documentlibrary.folders-added</value>
<value>org.alfresco.documentlibrary.folders-deleted</value>
</list>
</property>
</bean>
</beans>
tomcat/shared/classes/alfresco/extension/subsystems/ActivitiesFeed/default/default
and create a file called custom-activities-feed-context.xml
. This specifically overrides configuration for the ActivitiesFeed sub-system. A sub-system in Alfresco is a powerful and highly configurable component that can be enabled/disabled and tweaked at run-time - however because of this flexibility comes some complexity with the configuration - which is why we have the strange looking folder path - see this wiki page for more info.<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns='http://www.springframework.org/schema/beans'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd'>
<bean id='feedModelBuilderPrototype' class='org.alfresco.repo.activities.feed.DefaultActivitiesFeedModelBuilder' scope='prototype'>
<property name='ignoredActivityTypes'>
<set>
<value>org.alfresco.documentlibrary.file-previewed</value>
<value>org.alfresco.documentlibrary.file-downloaded</value>
</set>
</property>
</bean>
</beans>
<config>
<filter-range>
<filter type='today' label='today' />
<filter type='7' label='7days' />
<filter type='14' label='14days' />
<filter type='28' label='28days' />
</filter-range>
<filter-type>
<filter type='mine' label='mine' />
<filter type='others' label='others' />
<filter type='all' label='all' />
<filter type='following' label='following' />
</filter-type>
<filter-activities>
<filter type='org.alfresco.profile.status-changed,org.alfresco.comments.comment-created,org.alfresco.comments.comment-updated,org.alfresco.documentlibrary.file-updated,org.alfresco.documentlibrary.file-added,org.alfresco.documentlibrary.files-added,org.alfresco.documentlibrary.files-deleted,org.alfresco.documentlibrary.files-updated,org.alfresco.documentlibrary.file-deleted,org.alfresco.documentlibrary.inline-edit,org.alfresco.wiki.page-created,org.alfresco.wiki.page-edited,org.alfresco.wiki.page-renamed,org.alfresco.wiki.page-deleted,org.alfresco.blog.post-created,org.alfresco.blog.post-updated,org.alfresco.blog.post-deleted,org.alfresco.site.user-joined,org.alfresco.site.user-left,org.alfresco.site.user-role-changed' label='allItems' />
<filter type='org.alfresco.profile.status-changed' label='statusItems' />
<filter type='org.alfresco.comments.comment-created,org.alfresco.comments.comment-updated' label='commentItems' />
<filter type='org.alfresco.documentlibrary.file-updated,org.alfresco.documentlibrary.file-added,org.alfresco.documentlibrary.files-added,org.alfresco.documentlibrary.files-deleted,org.alfresco.documentlibrary.files-updated,org.alfresco.documentlibrary.file-deleted,org.alfresco.documentlibrary.inline-edit,org.alfresco.wiki.page-created,org.alfresco.wiki.page-edited,org.alfresco.wiki.page-renamed,org.alfresco.wiki.page-deleted,org.alfresco.blog.post-created,org.alfresco.blog.post-updated,org.alfresco.blog.post-deleted' label='contentItems' />
<filter type='org.alfresco.site.user-joined,org.alfresco.site.user-left,org.alfresco.site.user-role-changed' label='membershipItems' />
</filter-activities>
</config>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.