1 package org.openecomp.sdc.be.components.impl.instance;
3 import org.openecomp.sdc.be.dao.api.ActionStatus;
4 import org.openecomp.sdc.be.model.Component;
5 import org.openecomp.sdc.be.model.ComponentInstance;
7 public interface OnChangeVersionOperation {
10 * A side effect operation to execute when a component instance version was changed from {@code prevVersion} to {@code newVersion}
11 * @param container the container which contains the instance which is version was changed
12 * @param prevVersion the previous version of the component instance.
13 * @param newVersion the new version of the component instance.
14 * @return the status of the operation
16 ActionStatus onChangeVersion(Component container, ComponentInstance prevVersion, ComponentInstance newVersion);