02-20-2017 01:22 AM
I know there is a way to add tags to a file by getting a list of the tags with name and id, and then add it as properties to a document.
But I have a problem on finding the jar file for the following import:
import org.alfresco.service.cmr.tagging;
I looked all over the places but couldn't find it.
My first thought is deprecated or removed as functionality from Java API.
Can someone help me get this jar file?
Thank you.
02-21-2017 07:12 AM
You Need the alfresco-repository-XX.jar which you can get by including a Maven dependency on the org.alfresco:alfresco-repository artifact in your POM (assuming you are using e.g. the Alfresco SDK).
02-22-2017 01:06 AM
Indeed Axel, I checked it on Maven online dependencies, but I couldn't find it. I got the Alfresco Core and other repositories, but seems that library is not included in those packages. I don't know where else to look for this library. I also checked Download alfresco-core-2.2.0.jar : alfresco « a « Jar File Download for the jar files, but again this library for tagging is not included.
Looks like I got to a dead end.
Any help is truly appreciated.
Thank you.
02-22-2017 02:52 AM
I said you needed the alfresco-repository-XX.jar and you checked the alfresco-core-XX.jar of an extremely old version? Why did you not look in the Alfresco repository? Sources like java2s are unofficial and may have extremely varying degrees of quality anyway - they should not exist at all if people didn't blindly follow Google search results.
02-22-2017 03:56 AM
Thank you Axel, it looked like I had an outdated version. You opened up my eyes.
I appreciate your help. Desperation made me trust Google's first page results.
Thank you again.
Regards,
Dan.
Explore our Alfresco products with the links below. Use labels to filter content by product module.