package devopsdistilled.operp.client.items.controllers.impl;

import javax.inject.Inject;

import org.springframework.context.ApplicationContext;

import devopsdistilled.operp.client.items.controllers.CategoryController;
import devopsdistilled.operp.client.items.models.CategoryModel;
import devopsdistilled.operp.client.items.panes.controllers.CreateCategoryPaneController;
import devopsdistilled.operp.server.data.entity.items.Category;

public class CategoryControllerImpl implements CategoryController {

	@Inject
	private ApplicationContext context;

	@Inject
	private CategoryModel categoryModel;

	@Override
	public void create() {
		CreateCategoryPaneController createCategoryPaneController = context
				.getBean(CreateCategoryPaneController.class);
		createCategoryPaneController.init();
	}

	@Override
	public void edit(Category entity) {
		// TODO Auto-generated method stub

	}

	@Override
	public void list() {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(Category category) {
		categoryModel.deleteAndUpdateModel(category);
	}
}

@@ -360,32 +360,120 @@
 PaneController;%0A
+import devopsdistilled.operp.client.items.panes.controllers.EditCategoryPaneController;%0A
 import devopsdis
@@ -925,55 +925,178 @@
 ory 
-entity) %7B%0A%09%09// TODO Auto-generated method stub%0A
+category) %7B%0A%09%09EditCategoryPaneController editCategoryPaneController = context%0A%09%09%09%09.getBean(EditCategoryPaneController.class);%0A%09%09editCategoryPaneController.init(category);
 %0A%09%7D%0A

Define edit(category)