Changeset 77205be for src/main/java/edu/gjoko/schedlr/controllers
- Timestamp:
- 12/26/23 18:50:43 (11 months ago)
- Branches:
- master
- Children:
- 1413ee2
- Parents:
- 950fa0d
- Location:
- src/main/java/edu/gjoko/schedlr/controllers
- Files:
-
- 3 added
- 1 deleted
- 3 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/controllers/AdministrationController.java
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 8 8 9 9 import javax.servlet.http.HttpServletRequest; 10 import java.security.Principal;11 10 12 11 @Controller 13 public class Admin Controller {12 public class AdministrationController { 14 13 15 14 @GetMapping(path = "/admin") 16 public String getAdminPageTemplate(Model model , HttpServletRequest request) {15 public String getAdminPageTemplate(Model model) { 17 16 return "admin"; 18 17 } 19 18 20 19 @GetMapping(path = "/business_admin") 21 public String getBusinessAdminPageTemplate(Model model , HttpServletRequest request) {22 Authentication authentication = SecurityContextHolder.getContext().getAuthentication();23 String currentPrincipalName = authentication.getName();20 public String getBusinessAdminPageTemplate(Model model) { 21 return "business_admin"; 22 } 24 23 25 return "business_admin"; 24 @GetMapping(path = "/customer_admin") 25 public String getCustomerAdminPageTemplate(Model model) { 26 return "customer_admin"; 26 27 } 27 28 -
Property mode
changed from
-
src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/java/edu/gjoko/schedlr/controllers/LoginController.java
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/java/edu/gjoko/schedlr/controllers/RegisterController.java
-
Property mode
changed from
100644
to100755
-
Property mode
changed from
-
src/main/java/edu/gjoko/schedlr/controllers/rest/BusinessApi.java
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 2 2 3 3 import edu.gjoko.schedlr.entity.Business; 4 import edu.gjoko.schedlr.entity.BusinessType;5 4 import edu.gjoko.schedlr.services.BusinessService; 6 5 import lombok.AllArgsConstructor; … … 13 12 @RequestMapping("api/business") 14 13 @AllArgsConstructor 15 public class Business Controller{14 public class BusinessApi { 16 15 17 final BusinessService businessService;16 private final BusinessService businessService; 18 17 19 18 @PostMapping 20 public void getBusinessTypes(@RequestBody Business business) {19 public void saveBusiness(@RequestBody Business business) { 21 20 businessService.saveBusiness(business); 22 21 } … … 40 39 @GetMapping(path = "/{businessTypeId}") 41 40 public List<Business> getBusinessesByBusinessType(@PathVariable("businessTypeId") Long id) { 42 BusinessType businessType = new BusinessType(); 43 businessType.setId(id); 44 return businessService.findByBusinessTypeAndActiveStatus(businessType); 41 return businessService.findByBusinessTypeAndActiveStatus(id); 45 42 } 46 43 } -
Property mode
changed from
-
src/main/java/edu/gjoko/schedlr/controllers/rest/NomenclatureApi.java
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 13 13 @RequestMapping("api/nomenclatures") 14 14 @AllArgsConstructor 15 public class Nomenclature Controller{15 public class NomenclatureApi { 16 16 17 17 private final NomenclaturesService nomenclaturesService; -
Property mode
changed from
-
src/main/java/edu/gjoko/schedlr/controllers/rest/UserApi.java
-
Property mode
changed from
100644
to100755
r950fa0d r77205be 1 1 package edu.gjoko.schedlr.controllers.rest; 2 2 3 import edu.gjoko.schedlr.entity.Business;4 3 import lombok.AllArgsConstructor; 5 4 import org.springframework.web.bind.annotation.GetMapping; … … 8 7 9 8 import javax.servlet.http.HttpServletRequest; 10 import java.util.List;11 9 12 10 @RestController 13 11 @RequestMapping("api/user") 14 12 @AllArgsConstructor 15 public class User Controller{13 public class UserApi { 16 14 17 15 @GetMapping(path = "/me") -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.