cancel
Showing results for 
Search instead for 
Did you mean: 

createMissingPeople - Enabling/Disabling

robbieosullivan
Champ in-the-making
Champ in-the-making
Hi,

I want to turn off the feature that creates missing people dynamically.

This is in PersonServiceImpl where the getPerson() method tries to get the person node for the user specified. If the property createMissingPeople is true then a person node will be created for that user.

If createMissingPeople is false then a person node is not created and a NoSuchPersonException exception is generated.

createMissingPeople is set in the following file ../repository/config/alfresco/authentication-services-context.xml


        <property name="createMissingPeople">
           <value>${server.transaction.allow-writes}</value>
        </property>

This property is set in the following file  ../repository/config/domian/transaction.properties

This property is also referenced by ../repository/config/alfresco/core-services-context.xml in the following section:

    <!– transaction service –>
    <bean id="transactionComponent" class="org.alfresco.repo.transaction.TransactionComponent">
        <property name="transactionManager">
            <ref bean="transactionManager" />
        </property>
        <property name="allowWrite">
            <value>${server.transaction.allow-writes}</value>
        </property>
    </bean>

Just wanted to check what impact setting this value to false would have on the transactionComponent bean.
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

Set the property in authentication-services-context.xml

If you set server.transaction.allow-writes in transaction.properties you wil make the repo read only! The deafult behaviour is set so  you can create people if the repo is writable and not if it is read only.

Hope this helps.

Regards

Andy

robbieosullivan
Champ in-the-making
Champ in-the-making
Andy,

Cheers for the reply. Just hard coding thie value did the trick.

Regards,
Robbie
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.