I'm new with Alfresco and had readed a lot of documentation. I'm trying to build some library/api to my software to access the part of storage and management of files / folders of the Alfresco. (Integration with other systems)
Now I am using the Alfresco client (https://github.com/Alfresco/alfresco-client-sdk) but I don't know if it is the best solution because my project is in Java. Readed about Java Public API but no mention of where I can get it (is the all in one maven archetype sdk?), and how to install.
Can somebody give to me an expalanation and links to access Java Public API to create / manage content and if it have access to folder rules like document auto transformation (xls>pdf, etc.)?
In those documents you can find several ways of using Alfresco from outside Alfresco.
If you want to use Alfresco from inside Alfresco (deploying extensions to the product), you can develop Repository or Share artifacts. It's not required to use the Java Public API, but you can start learning at
In resume, I need to create an external integration with my system, to use Alfresco for document storage (a LOT of), with folders by area. I will need use document transformations and compression. I have some questions to better understand:
1) Alfresco has any built-in file compression?
2) I've understand only that i have the 2 options, REST API and CMIS for external implementation, that is all?
3) About Alfresco Maven SDK, is for internal extensions only and it is the Public Java API or are different things?
1) Storing compressed files in Alfresco is not a regular approach, as you cannot extract metadata or apply transformation operations on them. Probably is better to store compressed files on a plain filesystem. Anyway, Alfresco can compress the files for you by applying a folder rule and an action.
2) For external integration, you can use REST API (proprietary) or CMIS API (standard). You can use also any of the protocols available (FTP, CIFS, WebDAV, SMTP, IMAP).
3) Alfresco SDK is only for internal extensions and is where the Public Java API is available
As Angel pointed out, compressed files should not be stored in Alfresco, but Alfresco itself can store the files managed within the Repository as compressed files in its backing storage (a plain filesystem by default). This is done via so called Content Stores, which are pluggable. In one of my addons I provide a compressing content store to actually perform "compression at rest".
I've readed about your implementations and it seems very interesting. I've compiled the maven project, generated the AMP but it is with some problem, maybe a wrong name? I've put properties example to generate simpleContentStores AMP:
Cannot find Alfresco Repository on this server.(Does this application have access to alfresco-global.properties? Does this application have cross-context permissions?)
What information i need provide to get this code work?
The project's wiki is a good place to start. Though since you apparently have an error starting up the Repository, I'd advise to first look in the alfresco.log file for any obvious errors that can be obtained from the output.