setCreateBehaviour
last analyzed

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
c 0
b 0
f 0
loc 2
1
package easytests.common.controllers;
2
3
import org.springframework.stereotype.Controller;
4
import org.springframework.ui.Model;
5
6
7
/**
8
 * @author malinink
9
 */
10
@Controller
11
public abstract class AbstractCrudController extends AbstractPersonalController {
12
13
    protected static void setCreateBehaviour(Model model) {
14
        model.addAttribute("create", true);
15
    }
16
17
    protected static void setUpdateBehaviour(Model model) {
18
        model.addAttribute("update", true);
19
    }
20
}
21