Block uploads of certain file type to sites and folders in Alfresco 5.x

By default Alfresco does not have any restrictions on file types that can be added to the repository. Alfresco accepts .exe, .dll, .sh, .js, .cs, .java etc. So if there is a business requirement to block certain file types from being uploaded to a site of folder in Alfresco, how can we go about implementing that in simple fashion?

 

Continue reading

List all sites a particular user is member of in Alfresco 5

We have seen similar requirements many times. How do i find all the sites a particular user is a member of? One way is to write a SQL query with joins on the alf_ tables in the database. But Alfresco advises against hitting the data base directly. Instead we can use webscripts that are provided by Alfresco to get the information we need quickly.

Continue reading

Alfresco Maven SDK

Many times when we want to customize Alfresco, we tend to take the easy route and make changes to the core Alfresco .js and .xml files that are in the alfresco or share folders.  While this may be a quick fix and easy to work with, it is not advisable to do so and not recommended by Alfresco as well. The reasons are as follows.

Continue reading