cancel
Showing results for 
Search instead for 
Did you mean: 

Deleteed nodes should not get archived?

jeyaa
Champ in-the-making
Champ in-the-making
Hi all,
If I delete any node, it's getting archived. But I dont want that. In UI I found that uncheck the "archive nodes", then its working fine. But I want to know how to do it in configuration. I have tried like this which is given in the link http://wiki.alfresco.com/wiki/Disabling_Document_Archival,

custom-repository-context.xml
<beans>
  <bean id="storeArchiveMap" class="org.alfresco.repo.node.StoreArchiveMap">
     <property name="archiveMap">
        <map>
           
        </map>
     </property>
  </bean>
</beans>

But while running the server, Null Pointer Exception occurs.

After that I have tried like giving sys:temporary. Its Working fine for my custom content model. But the folders are getting archived. I think i should add the aspect for cm:folder also. I dont know how to override the alfresco content model. So left it.:-)

Any suggesstions are welcomed. Please lemme know how to proceed?
1 REPLY 1

kzkamiya
Champ in-the-making
Champ in-the-making
I could work below extension configuration file on Alfresco 3.4.0e.

alfresco/tomcat/shared/classes/alfresco/extension/custom-repository-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
   <!– Map stores to archive stores –>
   <bean id="storeArchiveMap" class="org.alfresco.repo.node.StoreArchiveMap">
      <property name="archiveMap">
         <map>
         </map>
      </property>
      <property name="tenantService">
         <ref bean="tenantService" />
      </property>
   </bean>
</beans>