build_app

This commit is contained in:
2025-12-23 03:52:36 +00:00
parent 13a85143b3
commit 05d392c0bc
215 changed files with 33278 additions and 44 deletions

View File

@@ -80,6 +80,66 @@ public class BuilderService {
// }
// ADD OTHER SERVICE
SaveDashboard("tets", "tets", "{\"dashboard\":[{\"cols\":4,\"rows\":5,\"x\":0,\"y\":0,\"name\":\"Radar Chart\",\"component\":\"Radar Chart\"}]}");
addCustomMenu( "Baddata","Baddata", "Transcations");
addCustomMenu( "Processeddata","Processeddata", "Transcations");
addCustomMenu( "Childform","Childform", "Transcations");
addCustomMenu( "District","District", "Transcations");
addCustomMenu( "State","State", "Transcations");
addCustomMenu( "Country","Country", "Transcations");
addCustomMenu( "Ad9","Ad9", "Transcations");
addCustomMenu( "Ad8","Ad8", "Transcations");
addCustomMenu( "Ad7","Ad7", "Transcations");
addCustomMenu( "Ad6","Ad6", "Transcations");
addCustomMenu( "Adv5","Adv5", "Transcations");
addCustomMenu( "Adv4","Adv4", "Transcations");
addCustomMenu( "Support","Support", "Transcations");
addCustomMenu( "Adv3","Adv3", "Transcations");
addCustomMenu( "Dv2","Dv2", "Transcations");
addCustomMenu( "Adv1","Adv1", "Transcations");
addCustomMenu( "Basicp3","Basicp3", "Transcations");
addCustomMenu( "Basicp2","Basicp2", "Transcations");
addCustomMenu( "Basicp1","Basicp1", "Transcations");
System.out.println("dashboard and menu inserted...");

View File

@@ -0,0 +1,115 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad6;
import com.realnet.angulardatatype.Services.Ad6Service ;
@RequestMapping(value = "/Ad6")
@CrossOrigin("*")
@RestController
public class Ad6Controller {
@Autowired
private Ad6Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad6")
public Ad6 Savedata(@RequestBody Ad6 data) {
Ad6 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad6/{id}")
public Ad6 update(@RequestBody Ad6 data,@PathVariable Integer id ) {
Ad6 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad6/getall/page")
public Page<Ad6> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad6> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad6")
public List<Ad6> getdetails() {
List<Ad6> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad6")
public List<Ad6> getallwioutsec() {
List<Ad6> get = Service.getdetails();
return get;
}
@GetMapping("/Ad6/{id}")
public Ad6 getdetailsbyId(@PathVariable Integer id ) {
Ad6 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad6/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,113 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad7;
import com.realnet.angulardatatype.Services.Ad7Service ;
import com.realnet.angulardatatype.Entity.Basicp3;
import com.realnet.angulardatatype.Entity.Support;
@RequestMapping(value = "/Ad7")
@CrossOrigin("*")
@RestController
public class Ad7Controller {
@Autowired
private Ad7Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad7")
public Ad7 Savedata(@RequestBody Ad7 data) {
Ad7 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad7/{id}")
public Ad7 update(@RequestBody Ad7 data,@PathVariable Integer id ) {
Ad7 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad7/getall/page")
public Page<Ad7> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad7> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad7")
public List<Ad7> getdetails() {
List<Ad7> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad7")
public List<Ad7> getallwioutsec() {
List<Ad7> get = Service.getdetails();
return get;
}
@GetMapping("/Ad7/{id}")
public Ad7 getdetailsbyId(@PathVariable Integer id ) {
Ad7 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad7/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
@PostMapping("/Ad7/Basicp3_insert")
public Basicp3 insertBasicp3(@RequestBody Basicp3 data) {
Basicp3 insertaction = Service.insertBasicp3(data);
return insertaction;
}
@PostMapping("/Ad7/Support_insert")
public Support insertSupport(@RequestBody Support data) {
Support insertaction = Service.insertSupport(data);
return insertaction;
}
}

View File

@@ -0,0 +1,131 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad8;
import com.realnet.angulardatatype.Services.Ad8Service ;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.stpkg.Entity.Childform;
@RequestMapping(value = "/Ad8")
@CrossOrigin("*")
@RestController
public class Ad8Controller {
@Autowired
private Ad8Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad8")
public Ad8 Savedata(@RequestBody Ad8 data) {
Ad8 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad8/{id}")
public Ad8 update(@RequestBody Ad8 data,@PathVariable Integer id ) {
Ad8 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad8/getall/page")
public Page<Ad8> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad8> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad8")
public List<Ad8> getdetails() {
List<Ad8> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad8")
public List<Ad8> getallwioutsec() {
List<Ad8> get = Service.getdetails();
return get;
}
@GetMapping("/Ad8/{id}")
public Ad8 getdetailsbyId(@PathVariable Integer id ) {
Ad8 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad8/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
@PutMapping("/Ad8/Support_update/{id}")
public ResponseEntity<?> updateSupport(@PathVariable Integer id, @RequestBody Support data) {
ResponseEntity<?> update = Service.updateSupport(id, data);
System.out.println(update + " updateed");
return update;
}
@PutMapping("/Ad8/Childform_update/{id}")
public ResponseEntity<?> updateChildform(@PathVariable Integer id, @RequestBody Childform data) {
ResponseEntity<?> update = Service.updateChildform(id, data);
System.out.println(update + " updateed");
return update;
}
}

View File

@@ -0,0 +1,91 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad9;
import com.realnet.angulardatatype.Services.Ad9Service ;
@RequestMapping(value = "/Ad9")
@CrossOrigin("*")
@RestController
public class Ad9Controller {
@Autowired
private Ad9Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad9")
public Ad9 Savedata(@RequestBody Ad9 data) {
Ad9 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad9/{id}")
public Ad9 update(@RequestBody Ad9 data,@PathVariable Integer id ) {
Ad9 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad9/getall/page")
public Page<Ad9> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad9> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad9")
public List<Ad9> getdetails() {
List<Ad9> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad9")
public List<Ad9> getallwioutsec() {
List<Ad9> get = Service.getdetails();
return get;
}
@GetMapping("/Ad9/{id}")
public Ad9 getdetailsbyId(@PathVariable Integer id ) {
Ad9 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad9/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,171 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv1;
import com.realnet.angulardatatype.Services.Adv1Service ;
@RequestMapping(value = "/Adv1")
@CrossOrigin("*")
@RestController
public class Adv1Controller {
@Autowired
private Adv1Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv1")
public Adv1 Savedata(@RequestBody Adv1 data) {
Adv1 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv1/{id}")
public Adv1 update(@RequestBody Adv1 data,@PathVariable Integer id ) {
Adv1 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv1/getall/page")
public Page<Adv1> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv1> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv1")
public List<Adv1> getdetails() {
List<Adv1> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv1")
public List<Adv1> getallwioutsec() {
List<Adv1> get = Service.getdetails();
return get;
}
@GetMapping("/Adv1/{id}")
public Adv1 getdetailsbyId(@PathVariable Integer id ) {
Adv1 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv1/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,163 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv3;
import com.realnet.angulardatatype.Services.Adv3Service ;
@RequestMapping(value = "/Adv3")
@CrossOrigin("*")
@RestController
public class Adv3Controller {
@Autowired
private Adv3Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv3")
public Adv3 Savedata(@RequestBody Adv3 data) {
Adv3 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv3/{id}")
public Adv3 update(@RequestBody Adv3 data,@PathVariable Integer id ) {
Adv3 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv3/getall/page")
public Page<Adv3> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv3> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv3")
public List<Adv3> getdetails() {
List<Adv3> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv3")
public List<Adv3> getallwioutsec() {
List<Adv3> get = Service.getdetails();
return get;
}
@GetMapping("/Adv3/{id}")
public Adv3 getdetailsbyId(@PathVariable Integer id ) {
Adv3 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv3/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,123 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv4;
import com.realnet.angulardatatype.Services.Adv4Service ;
@RequestMapping(value = "/Adv4")
@CrossOrigin("*")
@RestController
public class Adv4Controller {
@Autowired
private Adv4Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv4")
public Adv4 Savedata(@RequestBody Adv4 data) {
Adv4 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv4/{id}")
public Adv4 update(@RequestBody Adv4 data,@PathVariable Integer id ) {
Adv4 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv4/getall/page")
public Page<Adv4> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv4> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv4")
public List<Adv4> getdetails() {
List<Adv4> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv4")
public List<Adv4> getallwioutsec() {
List<Adv4> get = Service.getdetails();
return get;
}
@GetMapping("/Adv4/{id}")
public Adv4 getdetailsbyId(@PathVariable Integer id ) {
Adv4 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv4/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,147 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv5;
import com.realnet.angulardatatype.Services.Adv5Service ;
@RequestMapping(value = "/Adv5")
@CrossOrigin("*")
@RestController
public class Adv5Controller {
@Autowired
private Adv5Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv5")
public Adv5 Savedata(@RequestBody Adv5 data) {
Adv5 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv5/{id}")
public Adv5 update(@RequestBody Adv5 data,@PathVariable Integer id ) {
Adv5 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv5/getall/page")
public Page<Adv5> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv5> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv5")
public List<Adv5> getdetails() {
List<Adv5> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv5")
public List<Adv5> getallwioutsec() {
List<Adv5> get = Service.getdetails();
return get;
}
@GetMapping("/Adv5/{id}")
public Adv5 getdetailsbyId(@PathVariable Integer id ) {
Adv5 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv5/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,171 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Basicp1;
import com.realnet.angulardatatype.Services.Basicp1Service ;
@RequestMapping(value = "/Basicp1")
@CrossOrigin("*")
@RestController
public class Basicp1Controller {
@Autowired
private Basicp1Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Basicp1")
public Basicp1 Savedata(@RequestBody Basicp1 data) {
Basicp1 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Basicp1/{id}")
public Basicp1 update(@RequestBody Basicp1 data,@PathVariable Integer id ) {
Basicp1 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Basicp1/getall/page")
public Page<Basicp1> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Basicp1> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Basicp1")
public List<Basicp1> getdetails() {
List<Basicp1> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Basicp1")
public List<Basicp1> getallwioutsec() {
List<Basicp1> get = Service.getdetails();
return get;
}
@GetMapping("/Basicp1/{id}")
public Basicp1 getdetailsbyId(@PathVariable Integer id ) {
Basicp1 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Basicp1/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,147 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Basicp2;
import com.realnet.angulardatatype.Services.Basicp2Service ;
@RequestMapping(value = "/Basicp2")
@CrossOrigin("*")
@RestController
public class Basicp2Controller {
@Autowired
private Basicp2Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Basicp2")
public Basicp2 Savedata(@RequestBody Basicp2 data) {
Basicp2 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Basicp2/{id}")
public Basicp2 update(@RequestBody Basicp2 data,@PathVariable Integer id ) {
Basicp2 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Basicp2/getall/page")
public Page<Basicp2> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Basicp2> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Basicp2")
public List<Basicp2> getdetails() {
List<Basicp2> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Basicp2")
public List<Basicp2> getallwioutsec() {
List<Basicp2> get = Service.getdetails();
return get;
}
@GetMapping("/Basicp2/{id}")
public Basicp2 getdetailsbyId(@PathVariable Integer id ) {
Basicp2 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Basicp2/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,163 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Basicp3;
import com.realnet.angulardatatype.Services.Basicp3Service ;
@RequestMapping(value = "/Basicp3")
@CrossOrigin("*")
@RestController
public class Basicp3Controller {
@Autowired
private Basicp3Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Basicp3")
public Basicp3 Savedata(@RequestBody Basicp3 data) {
Basicp3 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Basicp3/{id}")
public Basicp3 update(@RequestBody Basicp3 data,@PathVariable Integer id ) {
Basicp3 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Basicp3/getall/page")
public Page<Basicp3> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Basicp3> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Basicp3")
public List<Basicp3> getdetails() {
List<Basicp3> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Basicp3")
public List<Basicp3> getallwioutsec() {
List<Basicp3> get = Service.getdetails();
return get;
}
@GetMapping("/Basicp3/{id}")
public Basicp3 getdetailsbyId(@PathVariable Integer id ) {
Basicp3 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Basicp3/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,21 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.*;
import com.realnet.angulardatatype.Entity.Basicp3;
import com.realnet.angulardatatype.Services.Basicp3InsertService2;
@RequestMapping(value = "/Basicp3")
@RestController
public class Basicp3InsertController2{
@Autowired
private Basicp3InsertService2 Service;
@PostMapping("/Basicp3_insert")
public ResponseEntity<?> insert(@RequestBody Basicp3 basicp3) {
Basicp3 insertaction = Service.insertaction(basicp3);
return new ResponseEntity<>(insertaction, HttpStatus.OK);
}
}

View File

@@ -0,0 +1,23 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.stpkg.Entity.Childform;
import com.realnet.angulardatatype.Services.ChildformUpdateService3 ;
@RequestMapping(value = "/Childform")
@RestController
public class ChildformUpdateController3{
@Autowired
private ChildformUpdateService3 Service;
@PutMapping("/Childform_update/{id}")
public ResponseEntity<?> update(@PathVariable Integer id,@RequestBody Childform childform) {
ResponseEntity<?> update = Service.updateaction(id,childform );
System.out.println(update+" updateed");
return update;
}
}

View File

@@ -0,0 +1,24 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.angulardatatype.Entity.District_ListFilter1;
import com.realnet.angulardatatype.Services.District_ListFilter1Service ;
@RequestMapping(value = "/District_ListFilter1")
@RestController
public class District_ListFilter1Controller {
@Autowired
private District_ListFilter1Service Service;
@GetMapping("/District_ListFilter1")
public List<District_ListFilter1> getlist() {
List<District_ListFilter1> get = Service.getlistbuilder();
return get;
}
@GetMapping("/District_ListFilter11/{item}")
public List<District_ListFilter1> getlistwithparam( @PathVariable String item) {
List<District_ListFilter1> get = Service.getlistbuilderparam( item);
return get;
}
}

View File

@@ -0,0 +1,147 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Dv2;
import com.realnet.angulardatatype.Services.Dv2Service ;
@RequestMapping(value = "/Dv2")
@CrossOrigin("*")
@RestController
public class Dv2Controller {
@Autowired
private Dv2Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Dv2")
public Dv2 Savedata(@RequestBody Dv2 data) {
Dv2 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Dv2/{id}")
public Dv2 update(@RequestBody Dv2 data,@PathVariable Integer id ) {
Dv2 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Dv2/getall/page")
public Page<Dv2> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Dv2> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Dv2")
public List<Dv2> getdetails() {
List<Dv2> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Dv2")
public List<Dv2> getallwioutsec() {
List<Dv2> get = Service.getdetails();
return get;
}
@GetMapping("/Dv2/{id}")
public Dv2 getdetailsbyId(@PathVariable Integer id ) {
Dv2 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Dv2/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,24 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.angulardatatype.Entity.State_ListFilter1;
import com.realnet.angulardatatype.Services.State_ListFilter1Service ;
@RequestMapping(value = "/State_ListFilter1")
@RestController
public class State_ListFilter1Controller {
@Autowired
private State_ListFilter1Service Service;
@GetMapping("/State_ListFilter1")
public List<State_ListFilter1> getlist() {
List<State_ListFilter1> get = Service.getlistbuilder();
return get;
}
@GetMapping("/State_ListFilter11/{item}")
public List<State_ListFilter1> getlistwithparam( @PathVariable String item) {
List<State_ListFilter1> get = Service.getlistbuilderparam( item);
return get;
}
}

View File

@@ -0,0 +1,91 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.angulardatatype.Services.SupportService ;
@RequestMapping(value = "/Support")
@CrossOrigin("*")
@RestController
public class SupportController {
@Autowired
private SupportService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Support")
public Support Savedata(@RequestBody Support data) {
Support save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Support/{id}")
public Support update(@RequestBody Support data,@PathVariable Integer id ) {
Support update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Support/getall/page")
public Page<Support> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Support> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Support")
public List<Support> getdetails() {
List<Support> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Support")
public List<Support> getallwioutsec() {
List<Support> get = Service.getdetails();
return get;
}
@GetMapping("/Support/{id}")
public Support getdetailsbyId(@PathVariable Integer id ) {
Support get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Support/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,21 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.angulardatatype.Services.SupportInsertService3;
@RequestMapping(value = "/Support")
@RestController
public class SupportInsertController3{
@Autowired
private SupportInsertService3 Service;
@PostMapping("/Support_insert")
public ResponseEntity<?> insert(@RequestBody Support support) {
Support insertaction = Service.insertaction(support);
return new ResponseEntity<>(insertaction, HttpStatus.OK);
}
}

View File

@@ -0,0 +1,23 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.angulardatatype.Services.SupportUpdateService2 ;
@RequestMapping(value = "/Support")
@RestController
public class SupportUpdateController2{
@Autowired
private SupportUpdateService2 Service;
@PutMapping("/Support_update/{id}")
public ResponseEntity<?> update(@PathVariable Integer id,@RequestBody Support support) {
ResponseEntity<?> update = Service.updateaction(id,support );
System.out.println(update+" updateed");
return update;
}
}

View File

@@ -0,0 +1,115 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad6;
import com.realnet.angulardatatype.Services.Ad6Service ;
@RequestMapping(value = "/token/Ad6")
@CrossOrigin("*")
@RestController
public class tokenFree_Ad6Controller {
@Autowired
private Ad6Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad6")
public Ad6 Savedata(@RequestBody Ad6 data) {
Ad6 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad6/{id}")
public Ad6 update(@RequestBody Ad6 data,@PathVariable Integer id ) {
Ad6 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad6/getall/page")
public Page<Ad6> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad6> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad6")
public List<Ad6> getdetails() {
List<Ad6> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad6")
public List<Ad6> getallwioutsec() {
List<Ad6> get = Service.getdetails();
return get;
}
@GetMapping("/Ad6/{id}")
public Ad6 getdetailsbyId(@PathVariable Integer id ) {
Ad6 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad6/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,113 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad7;
import com.realnet.angulardatatype.Services.Ad7Service ;
import com.realnet.angulardatatype.Entity.Basicp3;
import com.realnet.angulardatatype.Entity.Support;
@RequestMapping(value = "/token/Ad7")
@CrossOrigin("*")
@RestController
public class tokenFree_Ad7Controller {
@Autowired
private Ad7Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad7")
public Ad7 Savedata(@RequestBody Ad7 data) {
Ad7 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad7/{id}")
public Ad7 update(@RequestBody Ad7 data,@PathVariable Integer id ) {
Ad7 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad7/getall/page")
public Page<Ad7> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad7> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad7")
public List<Ad7> getdetails() {
List<Ad7> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad7")
public List<Ad7> getallwioutsec() {
List<Ad7> get = Service.getdetails();
return get;
}
@GetMapping("/Ad7/{id}")
public Ad7 getdetailsbyId(@PathVariable Integer id ) {
Ad7 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad7/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
@PostMapping("/Ad7/Basicp3_insert")
public Basicp3 insertBasicp3(@RequestBody Basicp3 data) {
Basicp3 insertaction = Service.insertBasicp3(data);
return insertaction;
}
@PostMapping("/Ad7/Support_insert")
public Support insertSupport(@RequestBody Support data) {
Support insertaction = Service.insertSupport(data);
return insertaction;
}
}

View File

@@ -0,0 +1,131 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad8;
import com.realnet.angulardatatype.Services.Ad8Service ;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.stpkg.Entity.Childform;
@RequestMapping(value = "/token/Ad8")
@CrossOrigin("*")
@RestController
public class tokenFree_Ad8Controller {
@Autowired
private Ad8Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad8")
public Ad8 Savedata(@RequestBody Ad8 data) {
Ad8 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad8/{id}")
public Ad8 update(@RequestBody Ad8 data,@PathVariable Integer id ) {
Ad8 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad8/getall/page")
public Page<Ad8> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad8> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad8")
public List<Ad8> getdetails() {
List<Ad8> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad8")
public List<Ad8> getallwioutsec() {
List<Ad8> get = Service.getdetails();
return get;
}
@GetMapping("/Ad8/{id}")
public Ad8 getdetailsbyId(@PathVariable Integer id ) {
Ad8 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad8/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
@PutMapping("/Ad8/Support_update/{id}")
public ResponseEntity<?> updateSupport(@PathVariable Integer id, @RequestBody Support data) {
ResponseEntity<?> update = Service.updateSupport(id, data);
System.out.println(update + " updateed");
return update;
}
@PutMapping("/Ad8/Childform_update/{id}")
public ResponseEntity<?> updateChildform(@PathVariable Integer id, @RequestBody Childform data) {
ResponseEntity<?> update = Service.updateChildform(id, data);
System.out.println(update + " updateed");
return update;
}
}

View File

@@ -0,0 +1,91 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Ad9;
import com.realnet.angulardatatype.Services.Ad9Service ;
@RequestMapping(value = "/token/Ad9")
@CrossOrigin("*")
@RestController
public class tokenFree_Ad9Controller {
@Autowired
private Ad9Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Ad9")
public Ad9 Savedata(@RequestBody Ad9 data) {
Ad9 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Ad9/{id}")
public Ad9 update(@RequestBody Ad9 data,@PathVariable Integer id ) {
Ad9 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Ad9/getall/page")
public Page<Ad9> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Ad9> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Ad9")
public List<Ad9> getdetails() {
List<Ad9> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Ad9")
public List<Ad9> getallwioutsec() {
List<Ad9> get = Service.getdetails();
return get;
}
@GetMapping("/Ad9/{id}")
public Ad9 getdetailsbyId(@PathVariable Integer id ) {
Ad9 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Ad9/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,171 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv1;
import com.realnet.angulardatatype.Services.Adv1Service ;
@RequestMapping(value = "/token/Adv1")
@CrossOrigin("*")
@RestController
public class tokenFree_Adv1Controller {
@Autowired
private Adv1Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv1")
public Adv1 Savedata(@RequestBody Adv1 data) {
Adv1 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv1/{id}")
public Adv1 update(@RequestBody Adv1 data,@PathVariable Integer id ) {
Adv1 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv1/getall/page")
public Page<Adv1> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv1> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv1")
public List<Adv1> getdetails() {
List<Adv1> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv1")
public List<Adv1> getallwioutsec() {
List<Adv1> get = Service.getdetails();
return get;
}
@GetMapping("/Adv1/{id}")
public Adv1 getdetailsbyId(@PathVariable Integer id ) {
Adv1 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv1/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,163 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv3;
import com.realnet.angulardatatype.Services.Adv3Service ;
@RequestMapping(value = "/token/Adv3")
@CrossOrigin("*")
@RestController
public class tokenFree_Adv3Controller {
@Autowired
private Adv3Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv3")
public Adv3 Savedata(@RequestBody Adv3 data) {
Adv3 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv3/{id}")
public Adv3 update(@RequestBody Adv3 data,@PathVariable Integer id ) {
Adv3 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv3/getall/page")
public Page<Adv3> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv3> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv3")
public List<Adv3> getdetails() {
List<Adv3> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv3")
public List<Adv3> getallwioutsec() {
List<Adv3> get = Service.getdetails();
return get;
}
@GetMapping("/Adv3/{id}")
public Adv3 getdetailsbyId(@PathVariable Integer id ) {
Adv3 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv3/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,123 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv4;
import com.realnet.angulardatatype.Services.Adv4Service ;
@RequestMapping(value = "/token/Adv4")
@CrossOrigin("*")
@RestController
public class tokenFree_Adv4Controller {
@Autowired
private Adv4Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv4")
public Adv4 Savedata(@RequestBody Adv4 data) {
Adv4 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv4/{id}")
public Adv4 update(@RequestBody Adv4 data,@PathVariable Integer id ) {
Adv4 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv4/getall/page")
public Page<Adv4> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv4> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv4")
public List<Adv4> getdetails() {
List<Adv4> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv4")
public List<Adv4> getallwioutsec() {
List<Adv4> get = Service.getdetails();
return get;
}
@GetMapping("/Adv4/{id}")
public Adv4 getdetailsbyId(@PathVariable Integer id ) {
Adv4 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv4/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,147 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Adv5;
import com.realnet.angulardatatype.Services.Adv5Service ;
@RequestMapping(value = "/token/Adv5")
@CrossOrigin("*")
@RestController
public class tokenFree_Adv5Controller {
@Autowired
private Adv5Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Adv5")
public Adv5 Savedata(@RequestBody Adv5 data) {
Adv5 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Adv5/{id}")
public Adv5 update(@RequestBody Adv5 data,@PathVariable Integer id ) {
Adv5 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Adv5/getall/page")
public Page<Adv5> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Adv5> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Adv5")
public List<Adv5> getdetails() {
List<Adv5> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Adv5")
public List<Adv5> getallwioutsec() {
List<Adv5> get = Service.getdetails();
return get;
}
@GetMapping("/Adv5/{id}")
public Adv5 getdetailsbyId(@PathVariable Integer id ) {
Adv5 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Adv5/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,171 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Basicp1;
import com.realnet.angulardatatype.Services.Basicp1Service ;
@RequestMapping(value = "/token/Basicp1")
@CrossOrigin("*")
@RestController
public class tokenFree_Basicp1Controller {
@Autowired
private Basicp1Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Basicp1")
public Basicp1 Savedata(@RequestBody Basicp1 data) {
Basicp1 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Basicp1/{id}")
public Basicp1 update(@RequestBody Basicp1 data,@PathVariable Integer id ) {
Basicp1 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Basicp1/getall/page")
public Page<Basicp1> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Basicp1> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Basicp1")
public List<Basicp1> getdetails() {
List<Basicp1> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Basicp1")
public List<Basicp1> getallwioutsec() {
List<Basicp1> get = Service.getdetails();
return get;
}
@GetMapping("/Basicp1/{id}")
public Basicp1 getdetailsbyId(@PathVariable Integer id ) {
Basicp1 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Basicp1/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,147 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Basicp2;
import com.realnet.angulardatatype.Services.Basicp2Service ;
@RequestMapping(value = "/token/Basicp2")
@CrossOrigin("*")
@RestController
public class tokenFree_Basicp2Controller {
@Autowired
private Basicp2Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Basicp2")
public Basicp2 Savedata(@RequestBody Basicp2 data) {
Basicp2 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Basicp2/{id}")
public Basicp2 update(@RequestBody Basicp2 data,@PathVariable Integer id ) {
Basicp2 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Basicp2/getall/page")
public Page<Basicp2> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Basicp2> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Basicp2")
public List<Basicp2> getdetails() {
List<Basicp2> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Basicp2")
public List<Basicp2> getallwioutsec() {
List<Basicp2> get = Service.getdetails();
return get;
}
@GetMapping("/Basicp2/{id}")
public Basicp2 getdetailsbyId(@PathVariable Integer id ) {
Basicp2 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Basicp2/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,163 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Basicp3;
import com.realnet.angulardatatype.Services.Basicp3Service ;
@RequestMapping(value = "/token/Basicp3")
@CrossOrigin("*")
@RestController
public class tokenFree_Basicp3Controller {
@Autowired
private Basicp3Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Basicp3")
public Basicp3 Savedata(@RequestBody Basicp3 data) {
Basicp3 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Basicp3/{id}")
public Basicp3 update(@RequestBody Basicp3 data,@PathVariable Integer id ) {
Basicp3 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Basicp3/getall/page")
public Page<Basicp3> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Basicp3> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Basicp3")
public List<Basicp3> getdetails() {
List<Basicp3> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Basicp3")
public List<Basicp3> getallwioutsec() {
List<Basicp3> get = Service.getdetails();
return get;
}
@GetMapping("/Basicp3/{id}")
public Basicp3 getdetailsbyId(@PathVariable Integer id ) {
Basicp3 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Basicp3/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,24 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.angulardatatype.Entity.District_ListFilter1;
import com.realnet.angulardatatype.Services.District_ListFilter1Service ;
@RequestMapping(value = "/token/District_ListFilter1")
@RestController
public class tokenFree_District_ListFilter1Controller {
@Autowired
private District_ListFilter1Service Service;
@GetMapping("/District_ListFilter1")
public List<District_ListFilter1> getlist() {
List<District_ListFilter1> get = Service.getlistbuilder();
return get;
}
@GetMapping("/District_ListFilter11/{item}")
public List<District_ListFilter1> getlistwithparam( @PathVariable String item) {
List<District_ListFilter1> get = Service.getlistbuilderparam( item);
return get;
}
}

View File

@@ -0,0 +1,147 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Dv2;
import com.realnet.angulardatatype.Services.Dv2Service ;
@RequestMapping(value = "/token/Dv2")
@CrossOrigin("*")
@RestController
public class tokenFree_Dv2Controller {
@Autowired
private Dv2Service Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Dv2")
public Dv2 Savedata(@RequestBody Dv2 data) {
Dv2 save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Dv2/{id}")
public Dv2 update(@RequestBody Dv2 data,@PathVariable Integer id ) {
Dv2 update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Dv2/getall/page")
public Page<Dv2> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Dv2> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Dv2")
public List<Dv2> getdetails() {
List<Dv2> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Dv2")
public List<Dv2> getallwioutsec() {
List<Dv2> get = Service.getdetails();
return get;
}
@GetMapping("/Dv2/{id}")
public Dv2 getdetailsbyId(@PathVariable Integer id ) {
Dv2 get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Dv2/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,24 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.angulardatatype.Entity.State_ListFilter1;
import com.realnet.angulardatatype.Services.State_ListFilter1Service ;
@RequestMapping(value = "/token/State_ListFilter1")
@RestController
public class tokenFree_State_ListFilter1Controller {
@Autowired
private State_ListFilter1Service Service;
@GetMapping("/State_ListFilter1")
public List<State_ListFilter1> getlist() {
List<State_ListFilter1> get = Service.getlistbuilder();
return get;
}
@GetMapping("/State_ListFilter11/{item}")
public List<State_ListFilter1> getlistwithparam( @PathVariable String item) {
List<State_ListFilter1> get = Service.getlistbuilderparam( item);
return get;
}
}

View File

@@ -0,0 +1,91 @@
package com.realnet.angulardatatype.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.angulardatatype.Services.SupportService ;
@RequestMapping(value = "/token/Support")
@CrossOrigin("*")
@RestController
public class tokenFree_SupportController {
@Autowired
private SupportService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Support")
public Support Savedata(@RequestBody Support data) {
Support save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Support/{id}")
public Support update(@RequestBody Support data,@PathVariable Integer id ) {
Support update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Support/getall/page")
public Page<Support> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Support> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Support")
public List<Support> getdetails() {
List<Support> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Support")
public List<Support> getallwioutsec() {
List<Support> get = Service.getdetails();
return get;
}
@GetMapping("/Support/{id}")
public Support getdetailsbyId(@PathVariable Integer id ) {
Support get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Support/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,49 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Ad6 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
private String description;
private String country;
private String countryidentifier;
private String state;
private String district;
}

View File

@@ -0,0 +1,32 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Ad7 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
}

View File

@@ -0,0 +1,42 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.stpkg.Entity.Childform;
@Entity
@Data
public class Ad8 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
@OneToOne( cascade=CascadeType.ALL)
private Support support;
@OneToMany( cascade=CascadeType.ALL)
private List<Childform> childform = new ArrayList<>();
}

View File

@@ -0,0 +1,28 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Ad9 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
private String approved_field_status;
}

View File

@@ -0,0 +1,98 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Adv1 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String ismale;
private String idfemale;
private Boolean test1;
private Boolean test2;
private Boolean t1;
private Boolean t2;
private Boolean t4;
private String fileupload_fieldname;
private String fileupload_fieldpath ;
private String fileupload_field2name;
private String fileupload_field2path ;
private String imageupload_fieldname;
private String imageupload_fieldpath ;
private String imageupload_field2name;
private String imageupload_field2path ;
private String audio_fieldname;
private String audio_fieldpath ;
private String audio_field2name;
private String audio_field2path ;
private String video_fieldname;
private String video_fieldpath ;
private String video_field2name;
private String video_field2path ;
}

View File

@@ -0,0 +1,66 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Adv3 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String country;
private String state;
private String stmlit;
private String stmmlt2;
private String dy2;
private String dy2identifier;
private String dy1;
private String dy1identifier;
private String dymlti1;
private String dymlt2;
}

View File

@@ -0,0 +1,48 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.stpkg.Entity.Childform;
@Entity
@Data
public class Adv4 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String atoc;
private String atocidentifier;
private String atc2;
private String atc2identifier;
private String atdy1;
private String atdy2;
@OneToOne( cascade=CascadeType.ALL)
private Support support;
@OneToOne( cascade=CascadeType.ALL)
private Childform childform;
}

View File

@@ -0,0 +1,58 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.stpkg.Entity.Childform;
@Entity
@Data
public class Adv5 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
@OneToMany( cascade=CascadeType.ALL)
private List<Support> support = new ArrayList<>();
private int age;
private int age2;
private String addition;
private String multiplication;
@OneToMany( cascade=CascadeType.ALL)
private List<Childform> childform = new ArrayList<>();
}

View File

@@ -0,0 +1,77 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Basicp1 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
private String name2;
private int number1;
private int number2;
private String phone_number;
private String phone_number2;
@Column(length = 2000)
private String paragraph_field;
@Column(length = 2000)
private String paragraph_field2;
private String password_field;
@Transient
private String confirmpassword_field;
@Column(length = 2000)
private String textarea;
@Column(length = 2000)
private String textarea_field;
@Column(length = 2000)
private String textarea_field2;
}

View File

@@ -0,0 +1,59 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Basicp2 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(length = 2000)
private String about;
@Column(length = 2000)
private String textarea2;
private String date_field;
private String date_field2;
private String datetime_field;
private String datetime_field2;
private String email_field;
private String email_field2;
private Long user_id;
private String user_name;
}

View File

@@ -0,0 +1,64 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Basicp3 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private Boolean toggle_switch;
private Boolean toggle_switch2;
private String url_field;
private String url_field2;
private double decimal_field;
private double decimal_field2;
private int percentage_field;
private int percentage_field2;
private String documentsequenc;
private String recaptcha;
private String recaptcha2;
}

View File

@@ -0,0 +1,14 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Data
public class District_ListFilter1 {
private Integer id;
private String district_name;
}

View File

@@ -0,0 +1,78 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Dv2 extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String test3;
private String name;
private String last_name;
private String test;
private String currency;
private String currency2;
private String qrcode_field;
private String qrcode_field2;
private String barcode_field;
private String barcode_field2;
}

View File

@@ -0,0 +1,14 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Data
public class State_ListFilter1 {
private Integer id;
private String state_name;
}

View File

@@ -0,0 +1,29 @@
package com.realnet.angulardatatype.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Support extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
@Column(length = 2000)
private String description;
}

View File

@@ -0,0 +1,34 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Ad6;
@Repository
public interface Ad6Repository extends JpaRepository<Ad6, Integer> {
@Query(value = "select * from ad6 where created_by=?1", nativeQuery = true)
List<Ad6> findAll(Long creayedBy);
@Query(value = "select * from ad6 where created_by=?1", nativeQuery = true)
Page<Ad6> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,30 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Ad7;
@Repository
public interface Ad7Repository extends JpaRepository<Ad7, Integer> {
@Query(value = "select * from ad7 where created_by=?1", nativeQuery = true)
List<Ad7> findAll(Long creayedBy);
@Query(value = "select * from ad7 where created_by=?1", nativeQuery = true)
Page<Ad7> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,34 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Ad8;
@Repository
public interface Ad8Repository extends JpaRepository<Ad8, Integer> {
@Query(value = "select * from ad8 where created_by=?1", nativeQuery = true)
List<Ad8> findAll(Long creayedBy);
@Query(value = "select * from ad8 where created_by=?1", nativeQuery = true)
Page<Ad8> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,28 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Ad9;
@Repository
public interface Ad9Repository extends JpaRepository<Ad9, Integer> {
@Query(value = "select * from ad9 where created_by=?1", nativeQuery = true)
List<Ad9> findAll(Long creayedBy);
@Query(value = "select * from ad9 where created_by=?1", nativeQuery = true)
Page<Ad9> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,48 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Adv1;
@Repository
public interface Adv1Repository extends JpaRepository<Adv1, Integer> {
@Query(value = "select * from adv1 where created_by=?1", nativeQuery = true)
List<Adv1> findAll(Long creayedBy);
@Query(value = "select * from adv1 where created_by=?1", nativeQuery = true)
Page<Adv1> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,46 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Adv3;
@Repository
public interface Adv3Repository extends JpaRepository<Adv3, Integer> {
@Query(value = "select * from adv3 where created_by=?1", nativeQuery = true)
List<Adv3> findAll(Long creayedBy);
@Query(value = "select * from adv3 where created_by=?1", nativeQuery = true)
Page<Adv3> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,36 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Adv4;
@Repository
public interface Adv4Repository extends JpaRepository<Adv4, Integer> {
@Query(value = "select * from adv4 where created_by=?1", nativeQuery = true)
List<Adv4> findAll(Long creayedBy);
@Query(value = "select * from adv4 where created_by=?1", nativeQuery = true)
Page<Adv4> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,42 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Adv5;
@Repository
public interface Adv5Repository extends JpaRepository<Adv5, Integer> {
@Query(value = "select * from adv5 where created_by=?1", nativeQuery = true)
List<Adv5> findAll(Long creayedBy);
@Query(value = "select * from adv5 where created_by=?1", nativeQuery = true)
Page<Adv5> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,48 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Basicp1;
@Repository
public interface Basicp1Repository extends JpaRepository<Basicp1, Integer> {
@Query(value = "select * from basicp1 where created_by=?1", nativeQuery = true)
List<Basicp1> findAll(Long creayedBy);
@Query(value = "select * from basicp1 where created_by=?1", nativeQuery = true)
Page<Basicp1> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,42 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Basicp2;
@Repository
public interface Basicp2Repository extends JpaRepository<Basicp2, Integer> {
@Query(value = "select * from basicp2 where created_by=?1", nativeQuery = true)
List<Basicp2> findAll(Long creayedBy);
@Query(value = "select * from basicp2 where created_by=?1", nativeQuery = true)
Page<Basicp2> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,46 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Basicp3;
@Repository
public interface Basicp3Repository extends JpaRepository<Basicp3, Integer> {
@Query(value = "select * from basicp3 where created_by=?1", nativeQuery = true)
List<Basicp3> findAll(Long creayedBy);
@Query(value = "select * from basicp3 where created_by=?1", nativeQuery = true)
Page<Basicp3> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,42 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Dv2;
@Repository
public interface Dv2Repository extends JpaRepository<Dv2, Integer> {
@Query(value = "select * from dv2 where created_by=?1", nativeQuery = true)
List<Dv2> findAll(Long creayedBy);
@Query(value = "select * from dv2 where created_by=?1", nativeQuery = true)
Page<Dv2> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,28 @@
package com.realnet.angulardatatype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.angulardatatype.Entity.Support;
@Repository
public interface SupportRepository extends JpaRepository<Support, Integer> {
@Query(value = "select * from support where created_by=?1", nativeQuery = true)
List<Support> findAll(Long creayedBy);
@Query(value = "select * from support where created_by=?1", nativeQuery = true)
Page<Support> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,142 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Ad6Repository;
import com.realnet.angulardatatype.Entity.Ad6
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import org.springframework.stereotype.Service;
@Service
public class Ad6Service {
@Autowired
private Ad6Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
@Autowired
private CountryService countryserv;
public Ad6 Savedata(Ad6 data) {
if (data.getCountry() != null) {
try {
int countryId = Integer.valueOf(data.getCountry());
Country get = countryserv.getdetailsbyId(countryId);
if (get != null) {
data.setCountryidentifier(get.getName());
}
} catch (NumberFormatException e) {
System.out.println(" countryId is not integer..");
// Invalid integer string — ignore or log
data.setCountryidentifier(data.getCountry());
}
}
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Ad6 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Ad6> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Ad6> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Ad6> all = Repository.findAll(getUser().getUserId());
return all ; }
public Ad6 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Ad6 update(Ad6 data,Integer id) {
Ad6 old = Repository.findById(id).get();
old.setName(data.getName());
old.setDescription(data.getDescription());
old.setCountry(data.getCountry());
old.setState(data.getState());
old.setDistrict(data.getDistrict());
final Ad6 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,129 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Ad7Repository;
import com.realnet.angulardatatype.Entity.Ad7
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.angulardatatype.Entity.Basicp3;
import com.realnet.angulardatatype.Repository.Basicp3Repository;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.angulardatatype.Repository.SupportRepository;
import org.springframework.stereotype.Service;
@Service
public class Ad7Service {
@Autowired
private Ad7Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Ad7 Savedata(Ad7 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Ad7 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Ad7> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Ad7> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Ad7> all = Repository.findAll(getUser().getUserId());
return all ; }
public Ad7 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Ad7 update(Ad7 data,Integer id) {
Ad7 old = Repository.findById(id).get();
old.setName(data.getName());
final Ad7 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
// Insert Action
@Autowired
private Basicp3Repository basicp3insertrepository;
public Basicp3 insertBasicp3(Basicp3 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
final Basicp3 save = basicp3insertrepository.save(data);
return save;
}
// Insert Action
@Autowired
private SupportRepository supportinsertrepository;
public Support insertSupport(Support data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
final Support save = supportinsertrepository.save(data);
return save;
}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,185 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Ad8Repository;
import com.realnet.angulardatatype.Entity.Ad8
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.angulardatatype.Entity.Support;
import com.realnet.angulardatatype.Repository.SupportRepository;
import com.realnet.stpkg.Entity.Childform;
import com.realnet.stpkg.Repository.ChildformRepository;
import org.springframework.stereotype.Service;
@Service
public class Ad8Service {
@Autowired
private Ad8Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Ad8 Savedata(Ad8 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Ad8 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Ad8> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Ad8> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Ad8> all = Repository.findAll(getUser().getUserId());
return all ; }
public Ad8 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Ad8 update(Ad8 data,Integer id) {
Ad8 old = Repository.findById(id).get();
old.setName(data.getName());
old.setSupport(data.getSupport());
old.setChildform(data.getChildform());
final Ad8 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
// update Action
@Autowired
private SupportRepository supportupdaterepository;
public ResponseEntity<?> updateSupport(Integer id, Support data) {
Integer i = 0;
Ad8 s = Repository.findById(id).get();
List<Support> list = new ArrayList<>();
Object supportObject = s.getSupport();
if (supportObject instanceof List<?>) {
// If it's a list, cast and add all elements to the list
list.addAll((List<Support>) supportObject);
} else if (supportObject instanceof Support) {
// If it's a single Support object, add it to the list
list.add((Support) supportObject);
}
for (Support li : list) {
Support old = supportupdaterepository.findById(li.getId()).get();
final Support supportdata = supportupdaterepository.save(old);
i++;
}
return new ResponseEntity<>(i + " updated", HttpStatus.OK);
}
// update Action
@Autowired
private ChildformRepository childformupdaterepository;
public ResponseEntity<?> updateChildform(Integer id, Childform data) {
Integer i = 0;
Ad8 s = Repository.findById(id).get();
List<Childform> list = new ArrayList<>();
Object childformObject = s.getChildform();
if (childformObject instanceof List<?>) {
// If it's a list, cast and add all elements to the list
list.addAll((List<Childform>) childformObject);
} else if (childformObject instanceof Childform) {
// If it's a single Childform object, add it to the list
list.add((Childform) childformObject);
}
for (Childform li : list) {
Childform old = childformupdaterepository.findById(li.getId()).get();
final Childform childformdata = childformupdaterepository.save(old);
i++;
}
return new ResponseEntity<>(i + " updated", HttpStatus.OK);
}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,83 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Ad9Repository;
import com.realnet.angulardatatype.Entity.Ad9
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class Ad9Service {
@Autowired
private Ad9Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Ad9 Savedata(Ad9 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Ad9 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Ad9> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Ad9> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Ad9> all = Repository.findAll(getUser().getUserId());
return all ; }
public Ad9 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Ad9 update(Ad9 data,Integer id) {
Ad9 old = Repository.findById(id).get();
old.setName(data.getName());
old.setApproved_field_status(data.getApproved_field_status());
final Ad9 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,207 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Adv1Repository;
import com.realnet.angulardatatype.Entity.Adv1
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class Adv1Service {
@Autowired
private Adv1Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Adv1 Savedata(Adv1 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Adv1 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Adv1> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Adv1> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Adv1> all = Repository.findAll(getUser().getUserId());
return all ; }
public Adv1 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Adv1 update(Adv1 data,Integer id) {
Adv1 old = Repository.findById(id).get();
old.setIsmale(data.getIsmale());
old.setIdfemale(data.getIdfemale());
old.setTest1(data.getTest1());
old.setTest2(data.getTest2());
old.setT1(data.getT1());
old.setT2(data.getT2());
old.setT4(data.getT4());
final Adv1 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,236 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Adv3Repository;
import com.realnet.angulardatatype.Entity.Adv3
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.config.EmailService;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import org.springframework.stereotype.Service;
@Service
public class Adv3Service {
@Autowired
private Adv3Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
@Autowired
private EmailService emailServicedynamic;
@Autowired
private CountryService dy2serv;
@Autowired
private CountryService dy1serv;
public Adv3 Savedata(Adv3 data) {
try
{
// emailServicedynamic.sendEmail( "gaurav_dekatc_com","Adv3", "testing");
emailServicedynamic.sendEmailViaSetu( "gaurav_dekatc_com","testing","","ganesh");
} catch (Exception e) {
// TODO: handle exception
System.out.println("Got error During Mail Send " + e);
}
if (data.getDy2() != null) {
try {
int dy2Id = Integer.valueOf(data.getDy2());
Country get = dy2serv.getdetailsbyId(dy2Id);
if (get != null) {
data.setDy2identifier(get.getName());
}
} catch (NumberFormatException e) {
System.out.println(" dy2Id is not integer..");
// Invalid integer string — ignore or log
data.setDy2identifier(data.getDy2());
}
}
if (data.getDy1() != null) {
try {
int dy1Id = Integer.valueOf(data.getDy1());
Country get = dy1serv.getdetailsbyId(dy1Id);
if (get != null) {
data.setDy1identifier(get.getDescription());
}
} catch (NumberFormatException e) {
System.out.println(" dy1Id is not integer..");
// Invalid integer string — ignore or log
data.setDy1identifier(data.getDy1());
}
}
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Adv3 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Adv3> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Adv3> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Adv3> all = Repository.findAll(getUser().getUserId());
return all ; }
public Adv3 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Adv3 update(Adv3 data,Integer id) {
Adv3 old = Repository.findById(id).get();
old.setCountry(data.getCountry());
old.setState(data.getState());
old.setStmlit(data.getStmlit());
old.setStmmlt2(data.getStmmlt2());
old.setDy2(data.getDy2());
old.setDy1(data.getDy1());
old.setDymlti1(data.getDymlti1());
old.setDymlt2(data.getDymlt2());
final Adv3 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,171 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Adv4Repository;
import com.realnet.angulardatatype.Entity.Adv4
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import org.springframework.stereotype.Service;
@Service
public class Adv4Service {
@Autowired
private Adv4Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;@Autowired
private CountryService atocserv;
@Autowired
private CountryService atc2serv;
public Adv4 Savedata(Adv4 data) {
if (data.getAtoc() != null) {
try {
int atocId = Integer.valueOf(data.getAtoc());
Country get = atocserv.getdetailsbyId(atocId);
if (get != null) {
data.setAtocidentifier(get.getName());
}
} catch (NumberFormatException e) {
System.out.println(" atocId is not integer..");
// Invalid integer string — ignore or log
data.setAtocidentifier(data.getAtoc());
}
}
if (data.getAtc2() != null) {
try {
int atc2Id = Integer.valueOf(data.getAtc2());
Country get = atc2serv.getdetailsbyId(atc2Id);
if (get != null) {
data.setAtc2identifier(get.getName());
}
} catch (NumberFormatException e) {
System.out.println(" atc2Id is not integer..");
// Invalid integer string — ignore or log
data.setAtc2identifier(data.getAtc2());
}
}
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Adv4 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Adv4> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Adv4> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Adv4> all = Repository.findAll(getUser().getUserId());
return all ; }
public Adv4 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Adv4 update(Adv4 data,Integer id) {
Adv4 old = Repository.findById(id).get();
old.setAtoc(data.getAtoc());
old.setAtc2(data.getAtc2());
old.setAtdy1(data.getAtdy1());
old.setAtdy2(data.getAtdy2());
old.setSupport(data.getSupport());
old.setChildform(data.getChildform());
final Adv4 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,153 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Adv5Repository;
import com.realnet.angulardatatype.Entity.Adv5
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class Adv5Service {
@Autowired
private Adv5Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Adv5 Savedata(Adv5 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Adv5 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Adv5> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Adv5> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Adv5> all = Repository.findAll(getUser().getUserId());
return all ; }
public Adv5 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Adv5 update(Adv5 data,Integer id) {
Adv5 old = Repository.findById(id).get();
old.setName(data.getName());
old.setSupport(data.getSupport());
old.setAge(data.getAge());
old.setAge2(data.getAge2());
old.setAddition(data.getAddition());
old.setMultiplication(data.getMultiplication());
old.setChildform(data.getChildform());
final Adv5 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,183 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Basicp1Repository;
import com.realnet.angulardatatype.Entity.Basicp1
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class Basicp1Service {
@Autowired
private Basicp1Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Basicp1 Savedata(Basicp1 data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Basicp1 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Basicp1> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Basicp1> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Basicp1> all = Repository.findAll(getUser().getUserId());
return all ; }
public Basicp1 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Basicp1 update(Basicp1 data,Integer id) {
Basicp1 old = Repository.findById(id).get();
old.setName(data.getName());
old.setName2(data.getName2());
old.setNumber1(data.getNumber1());
old.setNumber2(data.getNumber2());
old.setPhone_number(data.getPhone_number());
old.setPhone_number2(data.getPhone_number2());
old.setParagraph_field(data.getParagraph_field());
old.setParagraph_field2(data.getParagraph_field2());
old.setPassword_field(data.getPassword_field());
old.setTextarea(data.getTextarea());
old.setTextarea_field(data.getTextarea_field());
old.setTextarea_field2(data.getTextarea_field2());
final Basicp1 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,154 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Basicp2Repository;
import com.realnet.angulardatatype.Entity.Basicp2
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class Basicp2Service {
@Autowired
private Basicp2Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Basicp2 Savedata(Basicp2 data) {
data.setUser_id(getUser().getUserId());
data.setUser_name(getUser().getFullName());
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Basicp2 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Basicp2> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Basicp2> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Basicp2> all = Repository.findAll(getUser().getUserId());
return all ; }
public Basicp2 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Basicp2 update(Basicp2 data,Integer id) {
Basicp2 old = Repository.findById(id).get();
old.setAbout(data.getAbout());
old.setTextarea2(data.getTextarea2());
old.setDate_field(data.getDate_field());
old.setDate_field2(data.getDate_field2());
old.setDatetime_field(data.getDatetime_field());
old.setDatetime_field2(data.getDatetime_field2());
old.setEmail_field(data.getEmail_field());
old.setEmail_field2(data.getEmail_field2());
final Basicp2 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,31 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Basicp3Repository;
import com.realnet.angulardatatype.Entity.Basicp3;
import java.util.List;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class Basicp3InsertService2 {
@Autowired
private Basicp3Repository Repository;
@Autowired
private AppUserServiceImpl userService;
public Basicp3 insertaction(Basicp3 basicp3 ) {
basicp3.setUpdatedBy(getUser().getUserId());
basicp3.setCreatedBy(getUser().getUserId());
basicp3.setAccountId(getUser().getAccount().getAccount_id());
final Basicp3 save = Repository.save(basicp3);
return save;
}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,174 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Basicp3Repository;
import com.realnet.angulardatatype.Entity.Basicp3
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class Basicp3Service {
@Autowired
private Basicp3Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
@Autowired
private SequenceService documentsequencsequenceService;
public Basicp3 Savedata(Basicp3 data) {
data.setDocumentsequenc (documentsequencsequenceService.GenerateSequence("ff"));
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Basicp3 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Basicp3> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Basicp3> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Basicp3> all = Repository.findAll(getUser().getUserId());
return all ; }
public Basicp3 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Basicp3 update(Basicp3 data,Integer id) {
Basicp3 old = Repository.findById(id).get();
old.setToggle_switch (data.getToggle_switch());
old.setToggle_switch2 (data.getToggle_switch2());
old.setUrl_field(data.getUrl_field());
old.setUrl_field2(data.getUrl_field2());
old.setDecimal_field(data.getDecimal_field());
old.setDecimal_field2(data.getDecimal_field2());
old.setPercentage_field(data.getPercentage_field());
old.setPercentage_field2(data.getPercentage_field2());
old.setDocumentsequenc(data.getDocumentsequenc());
old.setRecaptcha(data.getRecaptcha());
old.setRecaptcha2(data.getRecaptcha2());
final Basicp3 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,42 @@
package com.realnet.angulardatatype.Services;
import com.realnet.stpkg.Repository.ChildformRepository;
import com.realnet.stpkg.Entity.Childform;
import java.util.List;
import org.springframework.http.ResponseEntity;
import java.util.ArrayList;
import org.springframework.http.HttpStatus;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.angulardatatype.Entity.Ad8;
import com.realnet.angulardatatype.Repository.Ad8Repository;
import org.springframework.stereotype.Service;
@Service
public class ChildformUpdateService3 {
@Autowired
private ChildformRepository Repository;
@Autowired
private Ad8Repository ad8repository;
public ResponseEntity<?> updateaction(Integer id, Childform childform ) {
Integer i = 0; Ad8 ad8 = ad8repository.findById(id).get();
List<Childform> list = new ArrayList<>();
Object ChildformObject = ad8.getChildform();
if (ChildformObject instanceof List<?>) {
// If it's a list, cast and add all elements to the list
list.addAll((List<Childform>) ChildformObject);
} else if (ChildformObject instanceof Childform) {
// If it's a single Childb object, add it to the list
list.add((Childform) ChildformObject);
} for (Childform li : list) { Childform old = Repository.findById(li.getId()).get();
old.setActive(childform.getActive());
old.setDescription(childform.getDescription());
old.setName(childform.getName());
final Childform childformdata = Repository.save(old);
i++;} return new ResponseEntity<>(i+" updated", HttpStatus.OK);
}}

View File

@@ -0,0 +1,57 @@
package com.realnet.angulardatatype.Services;
import java.util.*;
import com.realnet.testdata.Repository.DistrictRepository;
import com.realnet.testdata.Entity.District;
import com.realnet.angulardatatype.Entity.District_ListFilter1;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class District_ListFilter1Service {
@Autowired
private DistrictRepository Repository;
public List<District_ListFilter1> getlistbuilder() {
List<District> list= Repository.findAll();
ArrayList<District_ListFilter1> l = new ArrayList<>();
for (District data : list) {
Boolean isActive = data.getActive();
if (Boolean.TRUE.equals(isActive)) {String State_name = data.getState_name();
System.out.println(State_name + "\n");
if ("item".equals(State_name)){
District_ListFilter1 dummy = new District_ListFilter1();
dummy.setId(data.getId());
dummy.setDistrict_name(data.getDistrict_name());
l.add(dummy);
}}
}
return l;}
public List<District_ListFilter1> getlistbuilderparam( String item) {
List<District> list= Repository.findAll();
ArrayList<District_ListFilter1> l = new ArrayList<>();
for (District data : list) {
Boolean isActive = data.getActive();
if (Boolean.TRUE.equals(isActive)) {String State_name = data.getState_name();
System.out.println(State_name + "\n");
if (item.equals(State_name)){
District_ListFilter1 dummy = new District_ListFilter1();
dummy.setId(data.getId());
dummy.setDistrict_name(data.getDistrict_name());
l.add(dummy);
}}
}
return l;}
}

View File

@@ -0,0 +1,188 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.Dv2Repository;
import com.realnet.angulardatatype.Entity.Dv2
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.config.EmailService;
import org.springframework.stereotype.Service;
@Service
public class Dv2Service {
@Autowired
private Dv2Repository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
@Autowired
private EmailService emailServicestatic;
public Dv2 Savedata(Dv2 data) {
try
{
// emailServicestatic.sendEmail( getUser().getEmail(),"Dv2", "test");
emailServicestatic.sendEmailViaSetu(getUser().getEmail(),"test","","ganesh");
} catch (Exception e) {
// TODO: handle exception
System.out.println("Got error During Mail Send " + e);
}
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Dv2 save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Dv2> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Dv2> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Dv2> all = Repository.findAll(getUser().getUserId());
return all ; }
public Dv2 getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Dv2 update(Dv2 data,Integer id) {
Dv2 old = Repository.findById(id).get();
old.setTest3(data.getTest3());
old.setName(data.getName());
old.setLast_name(data.getLast_name());
old.setTest(data.getTest());
old.setCurrency(data.getCurrency());
old.setCurrency2(data.getCurrency2());
old.setQrcode_field(data.getQrcode_field());
old.setQrcode_field2(data.getQrcode_field2());
old.setBarcode_field(data.getBarcode_field());
old.setBarcode_field2(data.getBarcode_field2());
final Dv2 test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,57 @@
package com.realnet.angulardatatype.Services;
import java.util.*;
import com.realnet.testdata.Repository.StateRepository;
import com.realnet.testdata.Entity.State;
import com.realnet.angulardatatype.Entity.State_ListFilter1;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class State_ListFilter1Service {
@Autowired
private StateRepository Repository;
public List<State_ListFilter1> getlistbuilder() {
List<State> list= Repository.findAll();
ArrayList<State_ListFilter1> l = new ArrayList<>();
for (State data : list) {
Boolean isActive = data.getActive();
if (Boolean.TRUE.equals(isActive)) {String Country_name = data.getCountry_name();
System.out.println(Country_name + "\n");
if ("item".equals(Country_name)){
State_ListFilter1 dummy = new State_ListFilter1();
dummy.setId(data.getId());
dummy.setState_name(data.getState_name());
l.add(dummy);
}}
}
return l;}
public List<State_ListFilter1> getlistbuilderparam( String item) {
List<State> list= Repository.findAll();
ArrayList<State_ListFilter1> l = new ArrayList<>();
for (State data : list) {
Boolean isActive = data.getActive();
if (Boolean.TRUE.equals(isActive)) {String Country_name = data.getCountry_name();
System.out.println(Country_name + "\n");
if (item.equals(Country_name)){
State_ListFilter1 dummy = new State_ListFilter1();
dummy.setId(data.getId());
dummy.setState_name(data.getState_name());
l.add(dummy);
}}
}
return l;}
}

View File

@@ -0,0 +1,31 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.SupportRepository;
import com.realnet.angulardatatype.Entity.Support;
import java.util.List;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class SupportInsertService3 {
@Autowired
private SupportRepository Repository;
@Autowired
private AppUserServiceImpl userService;
public Support insertaction(Support support ) {
support.setUpdatedBy(getUser().getUserId());
support.setCreatedBy(getUser().getUserId());
support.setAccountId(getUser().getAccount().getAccount_id());
final Support save = Repository.save(support);
return save;
}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,83 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.SupportRepository;
import com.realnet.angulardatatype.Entity.Support
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class SupportService {
@Autowired
private SupportRepository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Support Savedata(Support data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Support save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Support> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Support> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Support> all = Repository.findAll(getUser().getUserId());
return all ; }
public Support getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Support update(Support data,Integer id) {
Support old = Repository.findById(id).get();
old.setName(data.getName());
old.setDescription(data.getDescription());
final Support test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,41 @@
package com.realnet.angulardatatype.Services;
import com.realnet.angulardatatype.Repository.SupportRepository;
import com.realnet.angulardatatype.Entity.Support;
import java.util.List;
import org.springframework.http.ResponseEntity;
import java.util.ArrayList;
import org.springframework.http.HttpStatus;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.angulardatatype.Entity.Ad8;
import com.realnet.angulardatatype.Repository.Ad8Repository;
import org.springframework.stereotype.Service;
@Service
public class SupportUpdateService2 {
@Autowired
private SupportRepository Repository;
@Autowired
private Ad8Repository ad8repository;
public ResponseEntity<?> updateaction(Integer id, Support support ) {
Integer i = 0; Ad8 ad8 = ad8repository.findById(id).get();
List<Support> list = new ArrayList<>();
Object SupportObject = ad8.getSupport();
if (SupportObject instanceof List<?>) {
// If it's a list, cast and add all elements to the list
list.addAll((List<Support>) SupportObject);
} else if (SupportObject instanceof Support) {
// If it's a single Childb object, add it to the list
list.add((Support) SupportObject);
} for (Support li : list) { Support old = Repository.findById(li.getId()).get();
old.setDescription(support.getDescription());
old.setName(support.getName());
final Support supportdata = Repository.save(old);
i++;} return new ResponseEntity<>(i+" updated", HttpStatus.OK);
}}

View File

@@ -0,0 +1,123 @@
package com.realnet.datasimulator.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.datasimulator.Entity.Baddata;
import com.realnet.datasimulator.Services.BaddataService ;
@RequestMapping(value = "/Baddata")
@CrossOrigin("*")
@RestController
public class BaddataController {
@Autowired
private BaddataService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Baddata")
public Baddata Savedata(@RequestBody Baddata data) {
Baddata save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Baddata/{id}")
public Baddata update(@RequestBody Baddata data,@PathVariable Integer id ) {
Baddata update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Baddata/getall/page")
public Page<Baddata> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Baddata> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Baddata")
public List<Baddata> getdetails() {
List<Baddata> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Baddata")
public List<Baddata> getallwioutsec() {
List<Baddata> get = Service.getdetails();
return get;
}
@GetMapping("/Baddata/{id}")
public Baddata getdetailsbyId(@PathVariable Integer id ) {
Baddata get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Baddata/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,123 @@
package com.realnet.datasimulator.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.datasimulator.Entity.Processeddata;
import com.realnet.datasimulator.Services.ProcesseddataService ;
@RequestMapping(value = "/Processeddata")
@CrossOrigin("*")
@RestController
public class ProcesseddataController {
@Autowired
private ProcesseddataService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Processeddata")
public Processeddata Savedata(@RequestBody Processeddata data) {
Processeddata save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Processeddata/{id}")
public Processeddata update(@RequestBody Processeddata data,@PathVariable Integer id ) {
Processeddata update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Processeddata/getall/page")
public Page<Processeddata> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Processeddata> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Processeddata")
public List<Processeddata> getdetails() {
List<Processeddata> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Processeddata")
public List<Processeddata> getallwioutsec() {
List<Processeddata> get = Service.getdetails();
return get;
}
@GetMapping("/Processeddata/{id}")
public Processeddata getdetailsbyId(@PathVariable Integer id ) {
Processeddata get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Processeddata/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,123 @@
package com.realnet.datasimulator.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.datasimulator.Entity.Baddata;
import com.realnet.datasimulator.Services.BaddataService ;
@RequestMapping(value = "/token/Baddata")
@CrossOrigin("*")
@RestController
public class tokenFree_BaddataController {
@Autowired
private BaddataService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Baddata")
public Baddata Savedata(@RequestBody Baddata data) {
Baddata save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Baddata/{id}")
public Baddata update(@RequestBody Baddata data,@PathVariable Integer id ) {
Baddata update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Baddata/getall/page")
public Page<Baddata> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Baddata> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Baddata")
public List<Baddata> getdetails() {
List<Baddata> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Baddata")
public List<Baddata> getallwioutsec() {
List<Baddata> get = Service.getdetails();
return get;
}
@GetMapping("/Baddata/{id}")
public Baddata getdetailsbyId(@PathVariable Integer id ) {
Baddata get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Baddata/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,123 @@
package com.realnet.datasimulator.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.datasimulator.Entity.Processeddata;
import com.realnet.datasimulator.Services.ProcesseddataService ;
@RequestMapping(value = "/token/Processeddata")
@CrossOrigin("*")
@RestController
public class tokenFree_ProcesseddataController {
@Autowired
private ProcesseddataService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Processeddata")
public Processeddata Savedata(@RequestBody Processeddata data) {
Processeddata save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Processeddata/{id}")
public Processeddata update(@RequestBody Processeddata data,@PathVariable Integer id ) {
Processeddata update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Processeddata/getall/page")
public Page<Processeddata> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Processeddata> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Processeddata")
public List<Processeddata> getdetails() {
List<Processeddata> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Processeddata")
public List<Processeddata> getallwioutsec() {
List<Processeddata> get = Service.getdetails();
return get;
}
@GetMapping("/Processeddata/{id}")
public Processeddata getdetailsbyId(@PathVariable Integer id ) {
Processeddata get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Processeddata/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,55 @@
package com.realnet.datasimulator.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Baddata extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String projectid;
private String projectididentifier;
private String devicecategoryid;
private String deviceid;
@Column(length = 2000)
private String payload;
@Column(length = 2000)
private String mappedpayload;
private String url;
}

View File

@@ -0,0 +1,55 @@
package com.realnet.datasimulator.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Processeddata extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String projectid;
private String projectididentifier;
private String devicecategoryid;
private String deviceid;
@Column(length = 2000)
private String payload;
@Column(length = 2000)
private String mappedpayload;
private String url;
}

View File

@@ -0,0 +1,36 @@
package com.realnet.datasimulator.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.datasimulator.Entity.Baddata;
@Repository
public interface BaddataRepository extends JpaRepository<Baddata, Integer> {
@Query(value = "select * from baddata where created_by=?1", nativeQuery = true)
List<Baddata> findAll(Long creayedBy);
@Query(value = "select * from baddata where created_by=?1", nativeQuery = true)
Page<Baddata> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,36 @@
package com.realnet.datasimulator.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.datasimulator.Entity.Processeddata;
@Repository
public interface ProcesseddataRepository extends JpaRepository<Processeddata, Integer> {
@Query(value = "select * from processeddata where created_by=?1", nativeQuery = true)
List<Processeddata> findAll(Long creayedBy);
@Query(value = "select * from processeddata where created_by=?1", nativeQuery = true)
Page<Processeddata> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,152 @@
package com.realnet.datasimulator.Services;
import com.realnet.datasimulator.Repository.BaddataRepository;
import com.realnet.datasimulator.Entity.Baddata
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import org.springframework.stereotype.Service;
@Service
public class BaddataService {
@Autowired
private BaddataRepository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;@Autowired
private CountryService projectidserv;
public Baddata Savedata(Baddata data) {
if (data.getProjectid() != null) {
try {
int projectidId = Integer.valueOf(data.getProjectid());
Country get = projectidserv.getdetailsbyId(projectidId);
if (get != null) {
data.setProjectididentifier(get.getName());
}
} catch (NumberFormatException e) {
System.out.println(" projectidId is not integer..");
// Invalid integer string — ignore or log
data.setProjectididentifier(data.getProjectid());
}
}
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Baddata save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Baddata> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Baddata> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Baddata> all = Repository.findAll(getUser().getUserId());
return all ; }
public Baddata getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Baddata update(Baddata data,Integer id) {
Baddata old = Repository.findById(id).get();
old.setProjectid(data.getProjectid());
old.setDevicecategoryid(data.getDevicecategoryid());
old.setDeviceid(data.getDeviceid());
old.setPayload(data.getPayload());
old.setMappedpayload(data.getMappedpayload());
old.setUrl(data.getUrl());
final Baddata test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,152 @@
package com.realnet.datasimulator.Services;
import com.realnet.datasimulator.Repository.ProcesseddataRepository;
import com.realnet.datasimulator.Entity.Processeddata
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService;
import org.springframework.stereotype.Service;
@Service
public class ProcesseddataService {
@Autowired
private ProcesseddataRepository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;@Autowired
private CountryService projectidserv;
public Processeddata Savedata(Processeddata data) {
if (data.getProjectid() != null) {
try {
int projectidId = Integer.valueOf(data.getProjectid());
Country get = projectidserv.getdetailsbyId(projectidId);
if (get != null) {
data.setProjectididentifier(get.getName());
}
} catch (NumberFormatException e) {
System.out.println(" projectidId is not integer..");
// Invalid integer string — ignore or log
data.setProjectididentifier(data.getProjectid());
}
}
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Processeddata save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Processeddata> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Processeddata> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Processeddata> all = Repository.findAll(getUser().getUserId());
return all ; }
public Processeddata getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Processeddata update(Processeddata data,Integer id) {
Processeddata old = Repository.findById(id).get();
old.setProjectid(data.getProjectid());
old.setDevicecategoryid(data.getDevicecategoryid());
old.setDeviceid(data.getDeviceid());
old.setPayload(data.getPayload());
old.setMappedpayload(data.getMappedpayload());
old.setUrl(data.getUrl());
final Processeddata test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,99 @@
package com.realnet.stpkg.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.stpkg.Entity.Childform;
import com.realnet.stpkg.Services.ChildformService ;
@RequestMapping(value = "/Childform")
@CrossOrigin("*")
@RestController
public class ChildformController {
@Autowired
private ChildformService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Childform")
public Childform Savedata(@RequestBody Childform data) {
Childform save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Childform/{id}")
public Childform update(@RequestBody Childform data,@PathVariable Integer id ) {
Childform update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Childform/getall/page")
public Page<Childform> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Childform> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Childform")
public List<Childform> getdetails() {
List<Childform> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Childform")
public List<Childform> getallwioutsec() {
List<Childform> get = Service.getdetails();
return get;
}
@GetMapping("/Childform/{id}")
public Childform getdetailsbyId(@PathVariable Integer id ) {
Childform get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Childform/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,99 @@
package com.realnet.stpkg.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.stpkg.Entity.Childform;
import com.realnet.stpkg.Services.ChildformService ;
@RequestMapping(value = "/token/Childform")
@CrossOrigin("*")
@RestController
public class tokenFree_ChildformController {
@Autowired
private ChildformService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Childform")
public Childform Savedata(@RequestBody Childform data) {
Childform save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Childform/{id}")
public Childform update(@RequestBody Childform data,@PathVariable Integer id ) {
Childform update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Childform/getall/page")
public Page<Childform> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Childform> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Childform")
public List<Childform> getdetails() {
List<Childform> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Childform")
public List<Childform> getallwioutsec() {
List<Childform> get = Service.getdetails();
return get;
}
@GetMapping("/Childform/{id}")
public Childform getdetailsbyId(@PathVariable Integer id ) {
Childform get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Childform/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,33 @@
package com.realnet.stpkg.Entity;
import lombok.*;
import com.realnet.WhoColumn.Entity.Extension;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.*;
@Entity
@Data
public class Childform extends Extension {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
@Column(length = 2000)
private String description;
private Boolean active;
}

View File

@@ -0,0 +1,30 @@
package com.realnet.stpkg.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.*;
import com.realnet.stpkg.Entity.Childform;
@Repository
public interface ChildformRepository extends JpaRepository<Childform, Integer> {
@Query(value = "select * from childform where created_by=?1", nativeQuery = true)
List<Childform> findAll(Long creayedBy);
@Query(value = "select * from childform where created_by=?1", nativeQuery = true)
Page<Childform> findAll( Long creayedBy,Pageable page);
}

View File

@@ -0,0 +1,93 @@
package com.realnet.stpkg.Services;
import com.realnet.stpkg.Repository.ChildformRepository;
import com.realnet.stpkg.Entity.Childform
;import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.realnet.SequenceGenerator.Service.SequenceService;
import org.springframework.data.domain.Page;
import com.realnet.realm.Entity.Realm;
import com.realnet.realm.Services.RealmService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.*;
import com.realnet.users.service1.AppUserServiceImpl;
import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
public class ChildformService {
@Autowired
private ChildformRepository Repository;
@Autowired
private AppUserServiceImpl userService;
@Autowired
private RealmService realmService;
public Childform Savedata(Childform data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
Childform save = Repository.save(data);
return save;
}
// get all with pagination
public Page<Childform> getAllWithPagination(Pageable page) {
return Repository.findAll( getUser().getUserId(),page);
}
public List<Childform> getdetails() {
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
List<Childform> all = Repository.findAll(getUser().getUserId());
return all ; }
public Childform getdetailsbyId(Integer id) {
return Repository.findById(id).get();
}
public void delete_by_id(Integer id) {
Repository.deleteById(id);
}
public Childform update(Childform data,Integer id) {
Childform old = Repository.findById(id).get();
old.setName(data.getName());
old.setDescription(data.getDescription());
old.setActive (data.getActive());
final Childform test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;
}}

View File

@@ -0,0 +1,99 @@
package com.realnet.testdata.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.testdata.Entity.Country;
import com.realnet.testdata.Services.CountryService ;
@RequestMapping(value = "/Country")
@CrossOrigin("*")
@RestController
public class CountryController {
@Autowired
private CountryService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/Country")
public Country Savedata(@RequestBody Country data) {
Country save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/Country/{id}")
public Country update(@RequestBody Country data,@PathVariable Integer id ) {
Country update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/Country/getall/page")
public Page<Country> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<Country> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/Country")
public List<Country> getdetails() {
List<Country> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/Country")
public List<Country> getallwioutsec() {
List<Country> get = Service.getdetails();
return get;
}
@GetMapping("/Country/{id}")
public Country getdetailsbyId(@PathVariable Integer id ) {
Country get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/Country/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,24 @@
package com.realnet.testdata.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.realnet.testdata.Entity.Country_ListFilter1;
import com.realnet.testdata.Services.Country_ListFilter1Service ;
@RequestMapping(value = "/Country_ListFilter1")
@RestController
public class Country_ListFilter1Controller {
@Autowired
private Country_ListFilter1Service Service;
@GetMapping("/Country_ListFilter1")
public List<Country_ListFilter1> getlist() {
List<Country_ListFilter1> get = Service.getlistbuilder();
return get;
}
@GetMapping("/Country_ListFilter11")
public List<Country_ListFilter1> getlistwithparam( ) {
List<Country_ListFilter1> get = Service.getlistbuilderparam( );
return get;
}
}

View File

@@ -0,0 +1,107 @@
package com.realnet.testdata.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.realnet.config.EmailService;
import com.realnet.users.entity1.AppUser;
import com.realnet.users.service1.AppUserServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.data.domain.*;
import com.realnet.fnd.response.EntityResponse;
import org.springframework.http.*;
import org.springframework.beans.factory.annotation.*;
import com.realnet.testdata.Entity.District;
import com.realnet.testdata.Services.DistrictService ;
@RequestMapping(value = "/District")
@CrossOrigin("*")
@RestController
public class DistrictController {
@Autowired
private DistrictService Service;
@Value("${projectPath}")
private String projectPath;
@PostMapping("/District")
public District Savedata(@RequestBody District data) {
District save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
}
@PutMapping("/District/{id}")
public District update(@RequestBody District data,@PathVariable Integer id ) {
District update = Service.update(data,id);
System.out.println("data update..." + update);
return update;
}
// get all with pagination
@GetMapping("/District/getall/page")
public Page<District> getall(@RequestParam(value = "page", required = false) Integer page,
@RequestParam(value = "size", required = false) Integer size) {
Pageable paging = PageRequest.of(page, size);
Page<District> get = Service.getAllWithPagination(paging);
return get;
}
@GetMapping("/District")
public List<District> getdetails() {
List<District> get = Service.getdetails();
return get;
}
// get all without authentication
@GetMapping("/token/District")
public List<District> getallwioutsec() {
List<District> get = Service.getdetails();
return get;
}
@GetMapping("/District/{id}")
public District getdetailsbyId(@PathVariable Integer id ) {
District get = Service.getdetailsbyId(id);
return get;
}
@DeleteMapping("/District/{id}")
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
Service.delete_by_id(id);
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
}
}

Some files were not shown because too many files have changed in this diff Show More