-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.java
More file actions
38 lines (28 loc) · 835 Bytes
/
Home.java
File metadata and controls
38 lines (28 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//testing
package com.appsecco.dvja.controllers;
import com.appsecco.dvja.models.Product;
import com.appsecco.dvja.services.ProductService;
import java.util.List;
public class Home extends BaseController {
private ProductService productService;
private List<Product> products;
public ProductService getProductService() {
return productService;
}
public void setProductService(ProductService productService) {
this.productService = productService;
}
public List<Product> getProducts() {
return products;
}
public void setProducts(List<Product> products) {
this.products = products;
}
public String assessment() {
products = productService.findAll();
return SUCCESS;
}
public String execute() {
return SUCCESS;
}
}