From b0d93de17422c12c67bcee2f5f393f12e4b122d4 Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Thu, 13 May 2021 13:50:34 +0300 Subject: [PATCH 1/3] Bug 572650 - upgrade `licenses` domain model rearrange Personal License Pack with the use of reference and aggregating constructs Signed-off-by: eparovyshnaya --- .../model/licenses.ecore | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore b/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore index 00cf53e85..0822988cb 100644 --- a/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore +++ b/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore @@ -12,6 +12,10 @@ abstract="true" interface="true"/> + + + eType="#//PersonalLicensePack" containment="true"/> @@ -57,23 +61,10 @@ - - - - - - - - - - + + @@ -95,7 +86,7 @@ + eType="#//PersonalLicensePack" eOpposite="#//PersonalLicensePack/grants"/> - + - + + + + + + + + + From a3af76d564a6064f0bee4bd3614ac1a2d8f37f88 Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Thu, 13 May 2021 13:53:29 +0300 Subject: [PATCH 2/3] Bug 572650 - upgrade `licenses` domain model descriptors for newly created aggregators Signed-off-by: eparovyshnaya --- .../lic/licenses/CompanyRefDescriptor.java | 26 +++++++++++++++++++ .../lic/licenses/UserRefDescriptor.java | 24 +++++++++++++++++ .../core/FakeLicensePlanDescriptor.java | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/CompanyRefDescriptor.java create mode 100644 bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/UserRefDescriptor.java diff --git a/bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/CompanyRefDescriptor.java b/bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/CompanyRefDescriptor.java new file mode 100644 index 000000000..880520cb2 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/CompanyRefDescriptor.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2021 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ +package org.eclipse.passage.lic.licenses; + +/** + * @since 2.0 + */ +public interface CompanyRefDescriptor { + + String getIdentifier(); + + String getName(); + + String getInfo(); + +} diff --git a/bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/UserRefDescriptor.java b/bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/UserRefDescriptor.java new file mode 100644 index 000000000..a4d0412a7 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.licenses/src/org/eclipse/passage/lic/licenses/UserRefDescriptor.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2021 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ +package org.eclipse.passage.lic.licenses; + +/** + * @since 2.0 + */ +public interface UserRefDescriptor { + + String getIdentifier(); + + String getName(); + +} diff --git a/tests/org.eclipse.passage.loc.report.core.tests/src/org/eclipse/passage/loc/report/internal/core/FakeLicensePlanDescriptor.java b/tests/org.eclipse.passage.loc.report.core.tests/src/org/eclipse/passage/loc/report/internal/core/FakeLicensePlanDescriptor.java index 28bd89684..105266ea1 100644 --- a/tests/org.eclipse.passage.loc.report.core.tests/src/org/eclipse/passage/loc/report/internal/core/FakeLicensePlanDescriptor.java +++ b/tests/org.eclipse.passage.loc.report.core.tests/src/org/eclipse/passage/loc/report/internal/core/FakeLicensePlanDescriptor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2020 ArSysOp + * Copyright (c) 2020, 2021 ArSysOp * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at From 991d92afaf4b53c391319ebfc5702c177e61fea8 Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Thu, 13 May 2021 18:55:11 +0300 Subject: [PATCH 3/3] Bug 572650 - upgrade `licenses` domain model descriptors for newly created aggregators Signed-off-by: eparovyshnaya --- .../org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore b/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore index 0822988cb..53cc478ce 100644 --- a/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore +++ b/bundles/org.eclipse.passage.lic.licenses.ecore/model/licenses.ecore @@ -132,6 +132,7 @@ +