package org.sakaiproject.gradebookng.tool.model;

import java.io.Serializable;

import org.sakaiproject.service.gradebook.shared.GradebookInformation;

import lombok.Getter;
import lombok.Setter;

/**
 * Wrapper for the info we need for the settings. 
 * 
 */
public class GbSettings implements Serializable {

	private static final long serialVersionUID = 1L;

	@Getter @Setter 
	private GradebookInformation gradebookInformation;
	
	public GbSettings(GradebookInformation gradebookInformation) {
		this.gradebookInformation = gradebookInformation;
	}
}

@@ -71,16 +71,39 @@
 lizable;
+%0Aimport java.util.List;
 %0A%0Aimport
@@ -270,13 +270,8 @@
 ngs.
- %0A * 
 %0A */
@@ -445,16 +445,93 @@
 tion;%0A%09%0A
+%09@Getter @Setter%0A%09private List%3CGbGradingSchemaEntry%3E gradingSchemaEntries;%0A%09%0A
 %09public 
@@ -641,10 +641,11 @@
 ion;%0A%09%7D%0A
+%09%0A
 %7D
-%0A

Add out custom list to the GbSettings object we are using as the backing model. Remove the LDM. This refetches its data when the form is submitted. It also wasn't hooked up correctly to the list view meaning that updates were not cascading through. Implement the form submit listener so we can copy our list items back into the map for persisting.