aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java/org/openecomp/sdc/be/model/CsarInfo.java
blob: 575cc68f7fdce313c7a66f5f22c89b5aa015550c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package org.openecomp.sdc.be.model;

import java.util.HashMap;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;

public class CsarInfo {
	String vfResourceName;
	User modifier;
	String csarUUID;
	Map<String, byte[]> csar;
	Map<String, String> createdNodesToscaResourceNames;
	Queue<String> cvfcToCreateQueue;
	boolean isUpdate;
	Map<String, Resource> createdNodes;
	
	public CsarInfo(String vfResourceName, User modifier, String csarUUID, Map<String, byte[]> csar, boolean isUpdate){
		this.vfResourceName = vfResourceName;
		this.modifier = modifier;
		this.csarUUID = csarUUID;
		this.csar = csar;
		this.createdNodesToscaResourceNames = new HashMap<>();
		this.cvfcToCreateQueue = new PriorityQueue<>();
		this.isUpdate = isUpdate;
		this.createdNodes  = new HashMap<>(); 
	}

	public String getVfResourceName() {
		return vfResourceName;
	}

	public void setVfResourceName(String vfResourceName) {
		this.vfResourceName = vfResourceName;
	}

	public User getModifier() {
		return modifier;
	}

	public void setModifier(User modifier) {
		this.modifier = modifier;
	}

	public String getCsarUUID() {
		return csarUUID;
	}

	public void setCsarUUID(String csarUUID) {
		this.csarUUID = csarUUID;
	}

	public Map<String, byte[]> getCsar() {
		return csar;
	}

	public void setCsar(Map<String, byte[]> csar) {
		this.csar = csar;
	}

	public Map<String, String> getCreatedNodesToscaResourceNames() {
		return createdNodesToscaResourceNames;
	}

	public void setCreatedNodesToscaResourceNames(Map<String, String> createdNodesToscaResourceNames) {
		this.createdNodesToscaResourceNames = createdNodesToscaResourceNames;
	}

	public Queue<String> getCvfcToCreateQueue() {
		return cvfcToCreateQueue;
	}

	public void setCvfcToCreateQueue(Queue<String> cvfcToCreateQueue) {
		this.cvfcToCreateQueue = cvfcToCreateQueue;
	}

	public boolean isUpdate() {
		return isUpdate;
	}

	public void setUpdate(boolean isUpdate) {
		this.isUpdate = isUpdate;
	}

	public Map<String, Resource> getCreatedNodes() {
		return createdNodes;
	}

}