2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.action;
24 import org.openecomp.sdc.action.types.Action;
25 import org.openecomp.sdc.action.types.ActionArtifact;
26 import org.openecomp.sdc.action.types.OpenEcompComponent;
28 import java.util.List;
31 * Created by uttamp on 7/1/2016.
34 public interface ActionManager {
35 public Action createAction(Action action, String user);
37 public Action updateAction(Action action, String user);
39 public void deleteAction(String actionInvariantUuId, String user);
41 public List<Action> getFilteredActions(String filterType, String filterValue);
43 public List<OpenEcompComponent> getOpenEcompComponents();
45 public List<Action> getActionsByActionInvariantUuId(String invariantId);
47 public Action getActionsByActionUuId(String actionUuId);
49 public Action checkout(String invariantUuId, String user);
51 public void undoCheckout(String invariantUuId, String user);
53 public Action checkin(String invariantUuId, String user);
55 public Action submit(String invariantUuId, String user);
57 public ActionArtifact uploadArtifact(ActionArtifact data, String actionInvariantUuId,
60 public ActionArtifact downloadArtifact(String actionUuId, String artifactUuId);
62 public void deleteArtifact(String actionInvariantUuId, String artifactUuId, String user);
64 public void updateArtifact(ActionArtifact data, String actionInvariantUuId, String user);