je cherche a crée un espace dans le dictionnaire
public ChildAssociationRef createNode(
NodeRef parentRef,
QName assocTypeQName,
QName assocQName,
QName nodeTypeQName,
Map<QName, Serializable> prop
)
assocTypeQName
doit avoir la valeur du
ContentModel.ASSOC_CONTAINS
assocQName
doit être un qname qui donne le nom de la relation (généralement si tu appel ton espace test tu mets:
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "test")
)
nodeTypeQName
doit être de type
ContentModel.TYPE_FOLDER
props
la liste des propriété du noeud.
Map<QName, Serializable> props = new HashMap<QName, Serializable>(1);
props.put(ContentModel.PROP_NAME, "Test");
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<import resource="classpath:alfresco/module/org.alfresco.module.logosvision/context/logosvision-bootstrap-context.xml"/>
<import resource="classpath:alfresco/module/org.alfresco.module.logosvision/context/logosvision-action-context.xml"/>
<import resource="classpath:alfresco/module/org.alfresco.module.logosvision/context/logosvision-model-context.xml"/>
</beans>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– LogoVision Model Registration –>
<bean id="lv_dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/org.alfresco.module.logosvision/model/logosvisionModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="lv:logosvisionmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>LogoVision Model</description>
<author>Filali-Ansary Vincent</author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.azurdigitalnetworks.net/model/logosvisionbase/1.0" prefix="lv"/>
</namespaces>
<types>
<type name="lv:logosvisionmodel">
<title>LogosVision Base</title>
<parent>cm:folder</parent>
</type>
</types>
<aspects>
<!– Definition of new logosvisionnable Aspect –>
<aspect name="lv:logosvisionnable">
<title>LogosVisionnable</title>
<properties>
<property name="lv:logosvision">
<title>LogosVision</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
</aspects>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– LogosVision base data bootstrap bean –>
<bean id="lv_bootstrapSpaces"
class="org.alfresco.repo.module.ImporterModuleComponent"
parent="module.baseComponent" depends-on="lv_dictionaryBootstrap">
<property name="moduleId" value="org.alfresco.module.logosvision" />
<property name="name" value="bootstrapSpaces" />
<property name="description" value="Initial data requirements" />
<property name="sinceVersion" value="1.0" />
<property name="appliesFromVersion" value="1.0" />
<property name="importer" ref="spacesBootstrap"/>
<property name="bootstrapViews">
<list>
<!– LogosVision space –>
<props>
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}</prop>
<prop key="location">alfresco/module/org.alfresco.module.logosvision/bootstrap/logosvision_space.xml</prop>
</props>
</list>
</property>
</bean>
</beans>
<cm:name>LogosVision Base</cm:name>
<?xml version="1.0" encoding="UTF-8"?>
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0">
<lv:logosvisionmodel
xmlns:act="http://www.alfresco.org/model/action/1.0"
xmlns:app="http://www.alfresco.org/model/application/1.0"
xmlns:ver="http://www.alfresco.org/model/versionstore/1.0"
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:wcm="http://www.alfresco.org/model/wcmmodel/1.0"
xmlns:wcmwf="http://www.alfresco.org/model/wcmworkflow/1.0"
xmlns:rule="http://www.alfresco.org/model/rule/1.0"
xmlns:fm="http://www.alfresco.org/model/forum/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
xmlns:alf="http://www.alfresco.org"
xmlns:d="http://www.alfresco.org/model/dictionary/1.0"
xmlns:view="http://www.alfresco.org/view/repository/1.0"
xmlns:lv="http://www.azurdigitalnetworks.net/model/logosvisionbase/1.0"
xmlns:wf="http://www.alfresco.org/model/workflow/1.0"
xmlns:usr="http://www.alfresco.org/model/user/1.0"
xmlns:cm="http://www.alfresco.org/model/content/1.0"
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
xmlns:sys="http://www.alfresco.org/model/system/1.0"
xmlns:wca="http://www.alfresco.org/model/wcmappmodel/1.0"
xmlns:bpm="http://www.alfresco.org/model/bpm/1.0"
xmlns:custom="custom.model"
xmlns:reg="http://www.alfresco.org/system/registry/1.0"
xmlns:module="http://www.alfresco.org/system/modules/1.0"
xmlns=""
view:childName="cm:LogosVision Base"
>
<view:aspects>
<app:uifacets></app:uifacets>
</view:aspects>
<view:acl>
<view:ace view:access="ALLOWED">
<view:authority>GROUP_LogosVision_Internal</view:authority>
<view:permission>Coordinator</view:permission>
</view:ace>
<view:ace view:access="ALLOWED">
<view:authority>GROUP_LogosVision_Partners</view:authority>
<view:permission>Contributor</view:permission>
</view:ace>
</view:acl>
<view:properties>
<app:icon>space-icon-pen</app:icon>
<cm:description></cm:description>
<cm:title></cm:title>
<cm:name>LogosVision Base</cm:name>
</view:properties>
</lv:logosvisionmodel>
</view:view>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.