Skip to content

Commit

Permalink
petalslink#3 Complete the tooling for the REST BC
Browse files Browse the repository at this point in the history
* Fix the creation wizards
* Our extensible elements require Provides and Consumes extensions to be
defined first in the ecore file
  • Loading branch information
vincent-zurczak committed Mar 3, 2019
1 parent d94ea10 commit 3609333
Show file tree
Hide file tree
Showing 17 changed files with 523 additions and 2,624 deletions.
240 changes: 48 additions & 192 deletions plugins/com.linagora.petals.services.rest/model/rest.ecore

Large diffs are not rendered by default.

37 changes: 11 additions & 26 deletions plugins/com.linagora.petals.services.rest/model/rest.genmodel
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2018, Linagora

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html

Contributors:
 EBM WebSourcing - initial API and implementation"
modelDirectory="/com.linagora.petals.services.rest/src-model" modelPluginID="com.linagora.petals.services.rest"
modelName="Rest" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
complianceLevel="7.0" copyrightFields="false" usedGenPackages="../../com.linagora.petals.services.cdk/model/cdk5.genmodel#//cdk5 platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../com.linagora.jbi.core.metamodel/model/jbi.genmodel#//jbi platform:/plugin/org.eclipse.emf.ecore/model/XMLType.genmodel#//type">
complianceLevel="7.0" copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../com.linagora.jbi.core.metamodel/model/jbi.genmodel#//jbi platform:/plugin/org.eclipse.emf.ecore/model/XMLType.genmodel#//type">
<foreignModel>rest.ecore</foreignModel>
<genPackages prefix="Rest" basePackage="com.linagora.petals.services.rest"
resource="XML" disposableProviderFactory="true" ecorePackage="rest.ecore#/">
<genPackages prefix="Rest" basePackage="com.linagora.petals.services.rest" resource="XML"
disposableProviderFactory="true" ecorePackage="rest.ecore#/">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="rest.ecore#//HttpBodyType">
<genEnumLiterals ecoreEnumLiteral="rest.ecore#//HttpBodyType/NOBODY"/>
<genEnumLiterals ecoreEnumLiteral="rest.ecore#//HttpBodyType/XML"/>
Expand Down Expand Up @@ -40,15 +40,19 @@
<genDataTypes ecoreDataType="rest.ecore#//JwtCompressionObject"/>
<genDataTypes ecoreDataType="rest.ecore#//ResponseBodyAsObject"/>
<genDataTypes ecoreDataType="rest.ecore#//RestOperationObject"/>
<genClasses ecoreClass="rest.ecore#//Condition">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//Condition/condition"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//Condition/transformation"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//Condition/orderId"/>
<genClasses ecoreClass="rest.ecore#//RestProvides">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//RestProvides/basePath"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference rest.ecore#//RestProvides/mapping"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//RestConsumes">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//RestConsumes/basePath"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference rest.ecore#//RestConsumes/mapping"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//Condition">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//Condition/condition"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//Condition/transformation"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//Condition/orderId"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//ConsumesMapping">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//ConsumesMapping/operation"/>
</genClasses>
Expand All @@ -62,21 +66,6 @@
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//ConsumesOperation/xmlTemplate"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//ConsumesOperation/onJbiResponse"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//DocumentRoot">
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/mixed"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference rest.ecore#//DocumentRoot/xMLNSPrefixMap"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference rest.ecore#//DocumentRoot/xSISchemaLocation"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/basePath"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyFromJsonMultiplePi"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyFromJsonVirtualRoot"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyToJsonAutoArray"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyToJsonAutoPrimitive"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyToJsonMultiplePi"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyToJsonNsDeclarations"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyToJsonPrettyPrint"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/httpBodyToJsonVirtualRoot"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//DocumentRoot/namespaceMapping"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//FormData">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//FormData/extractedByXpath"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//FormData/attachmentName"/>
Expand Down Expand Up @@ -126,10 +115,6 @@
<genClasses ecoreClass="rest.ecore#//Otherwise">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//Otherwise/transformation"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//RestProvides">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute rest.ecore#//RestProvides/basePath"/>
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference rest.ecore#//RestProvides/mapping"/>
</genClasses>
<genClasses ecoreClass="rest.ecore#//ProvidesMapping">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference rest.ecore#//ProvidesMapping/operation"/>
</genClasses>
Expand Down
Loading

0 comments on commit 3609333

Please sign in to comment.