[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / backend / openecomp-sdc-action-manager / src / main / java / org / openecomp / sdc / action / ActionManager.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.action;
22
23
24 import org.openecomp.sdc.action.errors.ActionException;
25 import org.openecomp.sdc.action.types.Action;
26 import org.openecomp.sdc.action.types.ActionArtifact;
27 import org.openecomp.sdc.action.types.OpenEcompComponent;
28
29 import java.util.List;
30
31 /**
32  * Created by uttamp on 7/1/2016.
33  */
34
35 public interface ActionManager {
36   public Action createAction(Action action, String user) throws ActionException;
37
38   public Action updateAction(Action action, String user) throws ActionException;
39
40   public void deleteAction(String actionInvariantUuId, String user) throws ActionException;
41
42   public List<Action> getFilteredActions(String filterType, String filterValue)
43       throws ActionException;
44
45   public List<OpenEcompComponent> getOpenEcompComponents() throws ActionException;
46
47   public List<Action> getActionsByActionInvariantUuId(String invariantId) throws ActionException;
48
49   public Action getActionsByActionUuId(String actionUuId) throws ActionException;
50
51   public Action checkout(String invariantUuId, String user) throws ActionException;
52
53   public void undoCheckout(String invariantUuId, String user) throws ActionException;
54
55   public Action checkin(String invariantUuId, String user) throws ActionException;
56
57   public Action submit(String invariantUuId, String user) throws ActionException;
58
59   public ActionArtifact uploadArtifact(ActionArtifact data, String actionInvariantUuId,
60                                        String user);
61
62   public ActionArtifact downloadArtifact(String actionUuId, String artifactUuId)
63       throws ActionException;
64
65   public void deleteArtifact(String actionInvariantUuId, String artifactUuId, String user)
66       throws ActionException;
67
68   public void updateArtifact(ActionArtifact data, String actionInvariantUuId, String user);
69 }
70