How to embed only Alfresco Repository in individual project - alfresco

Already have implemented Alfresco CMIS to create, delete and modify files connecting to the Alfresco Community (server), but we need to include/embed the Alfresco Repository to our project, we DON'T need the share interface or REST API, only the repository.
Is is possible or there is other alternatives?

If you don't want Share, just don't deploy the Share war file. It's not necessary to run the core webapp.
Not including the rest API would be more difficult. I believe it would be possible to just include the core services, but it may be more trouble than it's worth. Why would you want to exclude the Rest API?
If you are dead set on stripping down the product, I would recommend disabling context files and commenting servlets out of the web.xml until you get a more "lightweight" version of the product.

Related

Update API specs in different business groups

In Anypoint Platform we have two business groups org1 and org2. In org1 group, I have updated the existing RAML API specification and same changes should be apply to org2 group API spec as well. Like this I have to update lot of applications. Is there any best method to update changes in one group to other?
Any tool suggest or any options in Anypoint Platform itself?
I understand that you have updated RAML files and you need to apply those changes to your Mule applications that are deployed in different business groups in Anypoint Platform.
Short answer: No, there is no existing tool to do that.
Long answer: updating files in your applications is done outside Anypoint Platform, for example in the IDE (Anypoint Studio) or whatever editor or development tools you have. In Anypoint Platform you use Runtime Manager to deploy updated applications. Runtime Manager doesn't has features to update files or any other changes inside your applications. This is a separation of concerns. Also Business Groups in Anypoint Platform are independent of each other. Each application deployed in Anypoint Platform is also independent of other deployments, even if the use the deployable file. So there is no way to say to Runtime Manager update this application file in all applications that use it. Having said that, you could probably use Anypoint Platform REST APIs and tools (like Anypoint CLI) to create your own tool to automate this kind of update, totally or partly, like when implementing a CI/CD deployment pipeline.

List Alfresco folders and documents in BonitaSoft

I'm working with version 7.6.3 of BonitSoft and intend to integrate with Alfresco version 5.2, and checked that the cmis List a folder connector no longer exists. How can I inject this list into a widget?
The Alfresco connector provided out-of-the-box in v5 won't be able to list the content of an Alfresco repo. They can only access Alfresco resources using their full path.
You would need to develop a custom connector to do so.
Please refer these questions for more information.
Bonita BPM list files and move folders in Alfresco
https://documentation.bonitasoft.com/6.x-7.2/creating-connector
Bonita integration with Alfresco

ASP.NET MVC 5 plugin framework

In my company we have to develop a ASP.NET MVC 5 web application which must have a number of plugins.
We want these plugins to have the following features.
Each plugin can be deployed in a separate folder; No need to copy plugin assembly to bin folder, the plugin files keep same structure as an ordinary website;
Dynamically install/uninstall plugin after website gets running;
Plugins share same master/layout;
I have found an article that describes a similar solution, but it depends on plugin framework which is based on OSGi.NET which is not open source.
Is there a plugin framework that has the above features?
Yes. MEF is very good.
This is example of how to build MVC website with plugins architecture:
http://www.fidelitydesign.net/?p=104
http://www.fidelitydesign.net/?p=130
I had the same task few weeks ago and now I have working solution, so ask, if you have more questions.
UPD
In my case I want users to be able to add extensions to the app without any dependencies or configuration files. All you need to do is copy extension's folder into the main project's extensions folder. Each extension might contain dlls, views (in separate views folder), content (styles, images etc). Moreover, each extension might have one or more db types support and this can be configured with just copying of files too. Also, my app contains some backend, and this backend should be extensible with the extensions too. So every extension have to tell the main application what it can offer for the frontend and for the backend.
I have spent a lot of time for this, but now it works very good.

Alfresco Rest API to download folder

I have 3 folders and 1 html file inside a folder sample in alfresco. Is their any API to download the folder sample and its content. I am not able to find anything in google surf.
Any help is appreciated. Thanks in advance.
The preferred API for working with Alfresco to upload/download content to/from folders is CMIS (see http://chemistry.apache.org to download CMIS client libraries for various languages). If you are managing content in Alfresco and are publishing it to a web server as part of a WCM content publishing process, you might look at the File Transfer Service (see http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/FSTR-intro.html).

Using Web Setup Project for multiple types of projects

I am trying to a create an installer for my web application. My solution contains several projects. They include:
Class library project (referenced by the web application)
Web Application
Windows Service
Web Services project
Database project (execute update script)
I also have an unmanaged dll (crystal reports) in my web application project, so I might have to do some editing of the registry.
I ideally want to be able to use a web setup project to install the whole solution. Can this be done? Is there a better method/solution?
The short answer is "Yes" it can be done.
Other better solution? Well, I'm not a huge fan of VS.NET's installer/setup, can be kind of bulky, 3rd parties could be better at a price. Having said that, it should be able to satisfy your requirements.

Resources