<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Limit number of downloads in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/limit-number-of-downloads/m-p/253156#M206286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could implement a policy component that allows you to define a new business logic that could be triggered at low level in any Alfresco services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each service in Alfresco is based on policies that are similar to events and you can inject your behaviour, or logic, (using the Java API or the Javascript API) inside one of these specific business "moments". The service that allows you to implement your case is the ContentService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information about policy components are described at the following address:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Policy_Component" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Policy_Component&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You also can take a look at the sample "SDK CustomAspect" that you find in the Alfresco SDK, that shows how to implement a custom behaviour using policies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this specific case you could add a new custom behaviour (implemented using a policy component) that starts to count all the user request, when the counter is equal to the limit, then you want to not serve the download request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The download request could be matched with one of the policies of the ContentService of Alfresco that is OnContentReadPolicy defined in the interface ContentServicePolicies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 14:43:50 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2012-02-09T14:43:50Z</dc:date>
    <item>
      <title>Limit number of downloads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-number-of-downloads/m-p/253155#M206285</link>
      <description>Hi there!I hope that I am in the right place here to post this question:Is there a way how I can limit the number of downloads per user or even better per role? Let's say I want to limit the number of documents that a user can download within a given period of time (for example: consumer role may do</description>
      <pubDate>Thu, 19 Jan 2012 10:25:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-number-of-downloads/m-p/253155#M206285</guid>
      <dc:creator>edgy</dc:creator>
      <dc:date>2012-01-19T10:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Limit number of downloads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-number-of-downloads/m-p/253156#M206286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could implement a policy component that allows you to define a new business logic that could be triggered at low level in any Alfresco services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each service in Alfresco is based on policies that are similar to events and you can inject your behaviour, or logic, (using the Java API or the Javascript API) inside one of these specific business "moments". The service that allows you to implement your case is the ContentService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information about policy components are described at the following address:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Policy_Component" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Policy_Component&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You also can take a look at the sample "SDK CustomAspect" that you find in the Alfresco SDK, that shows how to implement a custom behaviour using policies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this specific case you could add a new custom behaviour (implemented using a policy component) that starts to count all the user request, when the counter is equal to the limit, then you want to not serve the download request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The download request could be matched with one of the policies of the ContentService of Alfresco that is OnContentReadPolicy defined in the interface ContentServicePolicies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 14:43:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-number-of-downloads/m-p/253156#M206286</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2012-02-09T14:43:50Z</dc:date>
    </item>
  </channel>
</rss>

