Alfresco Configuration

How to configure Smartfolder in Alfresco Smart Virtual Classification in Alfresco

Smart Folders basically a feature to organize all your documents or folders
to view them based on Types/properties.

First we need to enable smart folder in Alfresco - go to
shared >classes >  Add


then Restart Alfresco

Go to > My Files on top, create a folder called Documents,

 click on Manage Aspects 

and add the System Smart Folder (smf:systemConfigSmartFolder) aspect.

Go to >Edit Properties > All Properties…

Then save the properties and you will see a sub-folder called My Content.

Open the smartFoldersExample.json file stored in the Data Dictionary >Smart Folder Templates repository folder

Alfresco upload document Rule to change document name and auto apply type

In this example I am creating a rule on folder to automatically update my custom type on uploading documents and change name of document with Dynamic String.

Login to Alfresco Share >

Create any folder let’s say > MyDocs

On this folder click on Manage Rules > create new rule

When  > items are created or enter this folder  + items are updated

In Perform Action > I am adding my custom type need to apply by default on any document uploaded

On this folder and with common properties from aspect.

And also executing my custom java script mydoc.js

( create a file mydoc.js with below code and upload in Repository >Data Dictionay >Scripts

---------------------mydoc.js code----------------------------
var dbid =['sys:node-dbid'];['cm:name'] = 'DOC_' + dbid;;


Understanding default Alfresco roles:

There are a number of inbuilt roles each user can be assigned in Alfresco on a per folder basis. Permissions are inherited through sub folders unless otherwise specified.
  • Coordinator – A coordinator can do anything to the object or its children unless the permissions are set not to inherit or permission is denied.
  • Collaborator – A collaborator can do anything that an editor and a contributor can do
  • Contributor – A contributor can create content and then they have full permission on what they have created – via the permissions assigned to the owner.
  • Editor – An editor can read and write to the object; they can not create
  • Consumer – The Consumer permission allows read to everything by default.
Read AllYesYesNoYesYes
Read OwnYesYesYesYesYes
Write AllYesYesNoYesNo
Write OwnYesYesYesYesNo
Delete OwnYesYesNoNoNo
Delete AllYesNoNoNoNo

No comments:

Post a comment