step.automation.packages.AutomationPackageContext Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (C) 2020, exense GmbH
*
* This file is part of STEP
*
* STEP is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* STEP is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with STEP. If not, see .
******************************************************************************/
package step.automation.packages;
import step.core.objectenricher.ObjectEnricher;
import step.resources.ResourceManager;
import java.util.Map;
import java.util.Objects;
public class AutomationPackageContext {
public static final String PLAN_ACCESSOR = "planAccessor";
public static final String FUNCTION_ACCESSOR = "functionAccessor";
private ResourceManager resourceManager;
private AutomationPackageArchive automationPackageArchive;
private AutomationPackageContent packageContent;
private ObjectEnricher enricher;
private String uploadedPackageFileResource;
private final Map extensions;
public final AutomationPackageOperationMode operationMode;
public AutomationPackageContext(AutomationPackageOperationMode operationMode, ResourceManager resourceManager, AutomationPackageArchive automationPackageArchive,
AutomationPackageContent packageContent,
ObjectEnricher enricher, Map extensions) {
this.operationMode = Objects.requireNonNull(operationMode);
this.resourceManager = resourceManager;
this.automationPackageArchive = automationPackageArchive;
this.packageContent = packageContent;
this.enricher = enricher;
this.extensions = extensions;
}
public ResourceManager getResourceManager() {
return resourceManager;
}
public void setResourceManager(ResourceManager resourceManager) {
this.resourceManager = resourceManager;
}
public AutomationPackageArchive getAutomationPackageArchive() {
return automationPackageArchive;
}
public String getUploadedPackageFileResource() {
return uploadedPackageFileResource;
}
public void setUploadedPackageFileResource(String uploadedPackageFileResource) {
this.uploadedPackageFileResource = uploadedPackageFileResource;
}
public ObjectEnricher getEnricher() {
return enricher;
}
public void setAutomationPackageArchive(AutomationPackageArchive automationPackageArchive) {
this.automationPackageArchive = automationPackageArchive;
}
public void setEnricher(ObjectEnricher enricher) {
this.enricher = enricher;
}
public Map getExtensions() {
return extensions;
}
public AutomationPackageContent getPackageContent() {
return packageContent;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy