Refactoring Consolidation Service
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / merge / instance / ComponentsMergeCommand.java
1 package org.openecomp.sdc.be.components.merge.instance;
2
3 import org.openecomp.sdc.be.dao.api.ActionStatus;
4 import org.openecomp.sdc.be.model.Component;
5
6 public interface ComponentsMergeCommand {
7
8     /**
9      * encapsulates the logic of merging component inner entities from the previous component into the currently updated component
10      * @param prevComponent the old component, whose entities need to be merged
11      * @param currentComponent the new component, whose entities need to be merged
12      * @return the status of the merge process
13      */
14     ActionStatus mergeComponents(Component prevComponent, Component currentComponent);
15
16     /**
17      *
18      * @return short description of the command for logging purposes
19      */
20     String description();
21
22 }