From 685e2a3e7826f2099541d36e1c323d5c5da85066 Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Thu, 12 Nov 2020 15:57:17 +0300 Subject: [PATCH] Bug 568632 Implement feature grant acquire/release One more trouble code for for expected, but not found FLoating License Access files. Signed-off-by: eparovyshnaya --- .../code/AbsentLicenseAttendantFile.java | 24 +++++++++++++++++++ .../base/diagnostic/code/package-info.java | 2 ++ .../i18n/DiagnosticCodeMessages.properties | 1 + 3 files changed, 27 insertions(+) create mode 100644 bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/AbsentLicenseAttendantFile.java diff --git a/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/AbsentLicenseAttendantFile.java b/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/AbsentLicenseAttendantFile.java new file mode 100644 index 000000000..1242526c1 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/AbsentLicenseAttendantFile.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2020 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.internal.base.diagnostic.code; + +import org.eclipse.passage.lic.internal.api.diagnostic.TroubleCode; +import org.eclipse.passage.lic.internal.base.i18n.DiagnosticCodeMessages; + +public final class AbsentLicenseAttendantFile extends TroubleCode { + + public AbsentLicenseAttendantFile() { + super(407, DiagnosticCodeMessages.getString("AbsentLicenseAttendantFile.license_expired")); //$NON-NLS-1$ + } + +} diff --git a/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/package-info.java b/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/package-info.java index 60d0a98d9..c480d9a88 100644 --- a/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/package-info.java +++ b/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/diagnostic/code/package-info.java @@ -40,6 +40,8 @@ * permissions. *
  • 406 - invalid content of attendant license package file (floating license * access file, etc)
  • + *
  • 407 - absence of an expected attendant license package file (floating + * license access file, etc)
  • * * * diff --git a/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/i18n/DiagnosticCodeMessages.properties b/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/i18n/DiagnosticCodeMessages.properties index c9e7e2f27..ecd73dc48 100644 --- a/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/i18n/DiagnosticCodeMessages.properties +++ b/bundles/org.eclipse.passage.lic.base/src/org/eclipse/passage/lic/internal/base/i18n/DiagnosticCodeMessages.properties @@ -24,3 +24,4 @@ SeveralFrameworks.explanation=Passage finds %s Framework implementations, which ServiceFailedOnMorsel.explanation=Service failed to evaluate a morsel ServiceFailedOnInfrastructureDenial.explanation=Service failed severely due to an invoked service denial. InvalidLicenseAttendantFile.license_expired=Invalid content of a license attendant file +AbsentLicenseAttendantFile.license_expired=Expected license attendant file is not found