10-11-2010 04:51 AM
10-11-2010 06:37 AM
10-11-2010 06:59 AM
10-11-2010 08:35 AM
10-11-2010 09:06 AM
10-11-2010 10:25 AM
I'm not sure you have to add a new property to your model. If your model inherit from the alfresco out-of-the-box cm:content model, there is alreay a cm:content property.
How do you add your files to the repository? If you use the "add content" action,
then the content of your pdf file is automatically added to the cm:content property.
if you use a java class to programmatically add new content, please see the Introduction to the Alfresco Java Content Repository API.
10-11-2010 11:45 AM
10-12-2010 03:38 AM
The binary of the PDF file is inside the cm:content property and Alfresco can search within it. So if you just add your file with the "add content" action, you should be able to search for the text which is inside the xml in your pdf file. Did you try it?
With the java content repository API, you can indeed add content with the method Node.setProperty("cm:content", "my new content") but I think you also need to specify a mimetype. I'm not sure you can put a simple string inside the cm:content property and then search for it with alfresco.
10-12-2010 04:53 AM
–
<property name="com:textContent">
<type>cm:content</type>
</property>
–
10-12-2010 05:03 AM
As i'm not skilled enough with this part of alfresco process, I can't provide more precise informations =( Hope it'll help though.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.