001/* 002 * Copyright 2020 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.core.migration.action.data.impl; 017 018import org.apache.avalon.framework.configuration.Configuration; 019import org.apache.avalon.framework.configuration.ConfigurationException; 020 021import org.ametys.core.migration.version.Version; 022 023/** 024 * Datas for manual upgrades, contains only one comment that will be logged 025 */ 026public class ManualActionData extends AbstractActionData 027{ 028 /** 029 * Create the Upgrade based on the upgrade xml line 030 * Must contains id and type 031 * May contain restartAfter, component and/or file 032 * @param versionNumber version number of the action 033 * @param version version concerned by this upgrade 034 * @param comment Comment about this action 035 * @param from if this actions is the equivalent of multiple actions, this is the version id just before the 1st action impacted by this action 036 * @param type type of actions, this is the version id just before the 1st action impacted by this action 037 * @param pluginName name of the plugin containing the extension 038 * @param configuration the extension upgrade line to add 039 * @throws ConfigurationException id or type missing 040 */ 041 public ManualActionData(String versionNumber, Version version, String comment, String from, String type, String pluginName, Configuration configuration) throws ConfigurationException 042 { 043 super(versionNumber, version, comment, from, type, pluginName, configuration); 044 } 045}