blob: 7d766270a15c9f0cc618e87e208df5bc15f2dccf (
plain) (
blame)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
/*******************************************************************************
* Copyright (c) 2015 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.orcs.rest.model;
import org.eclipse.osee.framework.core.data.ArtifactId;
import org.eclipse.osee.framework.core.data.BranchId;
import org.eclipse.osee.framework.core.data.TransactionId;
import org.eclipse.osee.framework.core.enums.BranchType;
/**
* @author Roberto E. Escobar
*/
public class NewBranch {
private String branchName;
private BranchId parentBranch;
private ArtifactId associatedArtifact;
private BranchType branchType;
private ArtifactId author;
private TransactionId sourceTransaction;
private String creationComment;
private int mergeAddressingQueryId;
private long mergeDestinationBranchId;
private boolean txCopyBranchType;
public String getBranchName() {
return branchName;
}
public BranchId getParentBranch() {
return parentBranch;
}
public ArtifactId getAssociatedArtifact() {
return associatedArtifact;
}
public BranchType getBranchType() {
return branchType;
}
public ArtifactId getAuthor() {
return author;
}
public TransactionId getSourceTransaction() {
return sourceTransaction;
}
public String getCreationComment() {
return creationComment;
}
public int getMergeAddressingQueryId() {
return mergeAddressingQueryId;
}
public long getMergeDestinationBranchId() {
return mergeDestinationBranchId;
}
public boolean isTxCopyBranchType() {
return txCopyBranchType;
}
public void setBranchName(String branchName) {
this.branchName = branchName;
}
public void setParentBranchId(BranchId parentBranch) {
this.parentBranch = parentBranch;
}
public void setAssociatedArtifact(ArtifactId associatedArtifact) {
this.associatedArtifact = associatedArtifact;
}
public void setBranchType(BranchType branchType) {
this.branchType = branchType;
}
public void setAuthor(ArtifactId author) {
this.author = author;
}
public void setSourceTransactionId(TransactionId sourceTransaction) {
this.sourceTransaction = sourceTransaction;
}
public void setCreationComment(String creationComment) {
this.creationComment = creationComment;
}
public void setMergeAddressingQueryId(int mergeAddressingQueryId) {
this.mergeAddressingQueryId = mergeAddressingQueryId;
}
public void setMergeDestinationBranchId(BranchId mergeDestinationBranch) {
this.mergeDestinationBranchId = mergeDestinationBranch.getId();
}
public void setTxCopyBranchType(boolean txCopyBranchType) {
this.txCopyBranchType = txCopyBranchType;
}
@Override
public String toString() {
return "NewBranch [branchName=" + branchName + ", parentBranchId=" + parentBranch + ", associatedArtifactId=" + associatedArtifact + ", branchType=" + branchType + ", authorId=" + author + ", sourceTransactionId=" + sourceTransaction + ", creationComment=" + creationComment + ", mergeAddressingQueryId=" + mergeAddressingQueryId + ", mergeDestinationBranchId=" + mergeDestinationBranchId + ", txCopyBranchType=" + txCopyBranchType + "]";
}
}
|