Skip to content

Commit 722d8a6

Browse files
committed
Add private/public boolean to Feature Proposals
1 parent 3f31983 commit 722d8a6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/main/java/edu/tamu/app/model/FeatureProposal.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public class FeatureProposal extends AbstractIdea {
4646
@Column(nullable = false)
4747
private FeatureProposalState state;
4848

49+
@Column(nullable = false)
50+
private Boolean isPublic;
51+
4952
public FeatureProposal() {
5053
super();
5154
this.modelValidator = new FeatureProposalValidator();
@@ -77,6 +80,7 @@ private void setup() {
7780
this.ideas = new ArrayList<Idea>();
7881
this.voters = new ArrayList<User>();
7982
this.state = FeatureProposalState.IN_PROGRESS;
83+
this.isPublic = true;
8084
}
8185

8286
public List<Idea> getIdeas() {
@@ -138,4 +142,12 @@ public void setState(FeatureProposalState state) {
138142
this.state = state;
139143
}
140144

145+
public Boolean getIsPublic() {
146+
return isPublic;
147+
}
148+
149+
public void setIsPublic(Boolean isPublic) {
150+
this.isPublic = isPublic;
151+
}
152+
141153
}

0 commit comments

Comments
 (0)