cancel
Showing results for 
Search instead for 
Did you mean: 

Importing groups

rguinko
Champ in-the-making
Champ in-the-making
Hi!
I am trying to import a group to Alfresco by using bootstrap. Here are my files :
group.xml
<?xml version="1.0" encoding="UTF-8"?>
  <view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
          xmlns:cm="http://www.alfresco.org/model/content/1.0"
          xmlns:sys="http://www.alfresco.org/model/system/1.0"
          xmlns:usr="http://www.alfresco.org/model/user/1.0"
          xmlns:app="http://www.alfresco.org/model/application/1.0">
    
     <usr:authorityContainer view:childName="usr:GROUP_RG">
       <view:aspects>
         <sys:referenceable></sys:referenceable>
       </view:aspects>
       <viewSmiley Tongueroperties>
         <sys:store-protocol>user</sys:store-protocol>
         <cm:name>GROUP_RG</cm:name>
         <sys:node-uuid>GROUP_RG</sys:node-uuid>
         <usr:authorityName>GROUP_RG</usr:authorityName>
         <sys:store-identifier>alfrescoUserStore</sys:store-identifier>
       </viewSmiley Tongueroperties>
       <view:associations></view:associations>
     </usr:authorityContainer>

  </view:view>

group-context.xml
<bean id="_RG_bootstrapGroups" class="org.alfresco.repo.module.ImporterModuleComponent" parent="module.baseComponent">
       <property name="moduleId" value="_RG" />
       <property name="name" value="_RG_Import" />
       <property name="description" value="This module will import _RG group" />
       <property name="sinceVersion" value="1.0" />       
       <property name="appliesFromVersion" value="1.0" /> 
       <property name="importer" ref="userBootstrap"/>
       <property name="bootstrapViews">
           <list>
               <props>
                   <prop key="path">/${alfresco_user_store.system_container.childname}/sys:authorities</prop>
                   <prop key="location">alfresco/module/_RG/group.xml</prop>
               </props>
           </list>
       </property>
   </bean>

group and group-context.xml are contained in my amp file. When I update my war and launc alfresco I get a lot of errors…
Hope someone could help me solve this problem.
Thank you.
3 REPLIES 3

dinger
Champ in-the-making
Champ in-the-making
What errors are you getting?

Rob

rguinko
Champ in-the-making
Champ in-the-making
here is the error :
ERROR [repo.module.ModuleComponentHelper] Le composant '_RG_bootstrapGroups' appartient à un module non trouvé 'AMF' (In english : ' _RG_bootstrapGroups ' component belongs to a module ' _RG ' that is not found)

Thank you for your help

alcibiade
Champ in-the-making
Champ in-the-making
You should insert the name of your amp module in the moduleId property:

You wrote:
<property name="moduleId" value="_RG" />

Instead, use:
<property name="moduleId" value="myModuleName" />

This should do it.