cancel
Showing results for 
Search instead for 
Did you mean: 

manipulate file content

developer_resea
Champ in-the-making
Champ in-the-making
Hello,

     I know that Alfresco can search the contents of a file but I have the next doubt: is possible manipulate, modify or restrict some part of the contents of a file using Alfresco or with some configuration or extension?

Thanks and regards,
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
Yes, you could implement your own custom action or custom behaviour dedicated to parse contents and change the body of the content internally.
This type of changes could be implemented using policies interfaces related to the services of the Alfresco API.

Alfresco Java API consists of a group of Spring beans that are based on policies that are events that could be extended to bind your own custom behaviour.

The behaviour can be written using the Alfresco Java API or the Alfresco Javascript API:
http://wiki.alfresco.com/wiki/Policy_Component

Custom Actions:
http://wiki.alfresco.com/wiki/Custom_Actions
Hope this helps.

developer_resea
Champ in-the-making
Champ in-the-making
Hello Piergiorgio, thanks for your answer.

     According to the information that I have reviewed: My requirement is possible but is not simple with Alfresco. In my case would have to maintain a database for metadata of the contents (title, structure, paragraphs, etc) for editing content with the "Component Policies" of Alfresco and this would be a problem when updating versions of Alfresco.

     However, for simple cases the "component policies" could be very useful. In the link http://wiki.alfresco.com/wiki/Services_Framework#Component_Policies there is examples of policies for Node component and CheckOutCheckIn component but there is not for the content. Where I can find information about the events supported to define policies on the content in Alfresco?

     Does anyone have any example or tutorial for implementing policies in alfresco?

Thanks in advance,