cancel
Showing results for 
Search instead for 
Did you mean: 

UIDBasedHomeFolderProvider in user defined space (folder)

mdaslam
Champ in-the-making
Champ in-the-making
Hi,
I have user space created with name Lincoln in company home ( Root space). I want to have folder( space) with UID in lincoln. I have tried with below configuration in authentication-services-context.xml but its not able to create it. I don't know what value should be given for the path property if the user space is created from the web client. Or Do we have to define a space in repository.properties, if so what should be the value for space configuration.



Thanks in advance, below are the configurations.

1.
<bean name="userHomesHomeFolderProvider" class="org.alfresco.repo.security.person.UIDBasedHomeFolderProvider">
        <property name="serviceRegistry">
            <ref bean="ServiceRegistry" />
        </property>
        <property name="path">
           <value>/${spaces.company_home.childname}/cm:lincoln</value>
        </property>
        <property name="storeUrl">
           <value>${spaces.store}</value>
        </property>
        <property name="homeFolderManager">
            <ref bean="homeFolderManager" />
        </property>
      <!–<property name="templatePath">
           <value>/${spaces.company_home.childname}/cm:Lincoln</value>
        </property>–>
        <property name="inheritsPermissionsOnCreate">
            <value>false</value>
        </property>
        <property name="ownerPemissionsToSetOnCreate">
            <set>
                <value>All</value>
            </set>
        </property>
        <property name="userPemissions">
            <set>
                <value>All</value>
            </set>
        </property>
    </bean>


2.  <property name="path">
           <value>/${spaces.company_home.childname}/Lincoln</value>
        </property>
1 REPLY 1

mdaslam
Champ in-the-making
Champ in-the-making
Hi All,
The above configured way is correct if a UID based folder is to be created in some space. But it creates the folder only when the User is created or imported. So, when I deleted the user and created it, was able to see the new UID based folders.

But the best way to play with spaces and assigning permissions to it is to use java script API.
http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook

Thanks,
Aslam