merge visibility and grouptype + merge createorga and createstudent + adapt to changes + finish create refactor
This commit is contained in:
@ -6,7 +6,6 @@ import lombok.ToString;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import mops.gruppen2.domain.Group;
|
||||
import mops.gruppen2.domain.GroupType;
|
||||
import mops.gruppen2.domain.Visibility;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@ -16,15 +15,13 @@ import java.util.UUID;
|
||||
@Log4j2
|
||||
public class CreateGroupEvent extends Event {
|
||||
|
||||
private Visibility groupVisibility;
|
||||
private UUID groupParent;
|
||||
private GroupType groupType;
|
||||
|
||||
public CreateGroupEvent(UUID groupId, String userId, UUID parent, GroupType type, Visibility visibility) {
|
||||
public CreateGroupEvent(UUID groupId, String userId, UUID parent, GroupType type) {
|
||||
super(groupId, userId);
|
||||
groupParent = parent;
|
||||
groupType = type;
|
||||
groupVisibility = visibility;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -32,7 +29,6 @@ public class CreateGroupEvent extends Event {
|
||||
group.setId(groupId);
|
||||
group.setParent(groupParent);
|
||||
group.setType(groupType);
|
||||
group.setVisibility(groupVisibility);
|
||||
|
||||
log.trace("\t\t\t\t\tNeue Gruppe: {}", group.toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user