1

decreased visibility of group-fields -> adapted tests and GroupService

This commit is contained in:
Christoph
2020-03-06 21:30:58 +01:00
parent fb3a94cf04
commit e05c6f4e3a
4 changed files with 44 additions and 44 deletions

View File

@ -12,14 +12,13 @@ import java.util.Map;
@EqualsAndHashCode(callSuper=false)
@Getter
public class Group extends Aggregate {
long id;
String title;
String description;
List<User> members;
Map<User, Role> roles;
private String title;
private String description;
private List<User> members;
private Map<User, Role> roles;
private void applyEvent(CreateGroupEvent event){
this.id = event.getGroup_id();
public Group(CreateGroupEvent event) {
super(event.getGroup_id());
this.title = event.getGroupTitle();
this.description = event.getGroupDescription();
this.members = new ArrayList<>();