aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org/openecomp/sdc/be/components/merge/instance/ComponentsMergeCommand.java
blob: 5dcb1dda7906849041bc9a966d39764eb110fd94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.openecomp.sdc.be.components.merge.instance;

import org.openecomp.sdc.be.dao.api.ActionStatus;
import org.openecomp.sdc.be.model.Component;

public interface ComponentsMergeCommand {

    /**
     * encapsulates the logic of merging component inner entities from the previous component into the currently updated component
     * @param prevComponent the old component, whose entities need to be merged
     * @param currentComponent the new component, whose entities need to be merged
     * @return the status of the merge process
     */
    ActionStatus mergeComponents(Component prevComponent, Component currentComponent);

    /**
     *
     * @return short description of the command for logging purposes
     */
    String description();

}