visa order
This commit is contained in:
parent
6ed78bc5f4
commit
630da10c9d
@ -35,7 +35,7 @@ public class HtmlBuilder5 {
|
||||
// <div class="newsletter-2-wrapper">
|
||||
// Common attributes handling
|
||||
List<String> commonAttributes = java.util.Arrays.asList("class", "id", "type", "placeholder", "href", "src",
|
||||
"alt", "title", "target", "name", "value");
|
||||
"alt", "title", "target", "name", "value", "onclick");
|
||||
|
||||
for (String attr : commonAttributes) {
|
||||
appendAttribute(html, node, attr);
|
||||
@ -127,7 +127,6 @@ public class HtmlBuilder5 {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static String getIconEmoji(String label) {
|
||||
label = label.toLowerCase();
|
||||
if (label.contains("facebook"))
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
package com.realnet.users.service1;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.nullValue;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.security.SecureRandom;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
@ -630,6 +629,10 @@ public class AppUserServiceImpl implements UserDetailsService, AppUserService {
|
||||
user.setRandom_no(String.valueOf(otp));
|
||||
user.setUsername(email);
|
||||
user.setEmail(email);
|
||||
|
||||
if (user.getCreatedate() == null) {
|
||||
user.setCreatedate(LocalDateTime.now());
|
||||
}
|
||||
appUserRepository.save(user);
|
||||
|
||||
}
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
package com.realnet.vpspack.Controllers;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Gender_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Gender_ListFilter1Service ;
|
||||
@RequestMapping(value = "/Gender_ListFilter1")
|
||||
import com.realnet.vpspack.Services.Gender_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Gender_ListFilter1")
|
||||
@RestController
|
||||
public class Gender_ListFilter1Controller {
|
||||
|
||||
@ -15,10 +17,11 @@ public class Gender_ListFilter1Controller {
|
||||
public List<Gender_ListFilter1> getlist() {
|
||||
List<Gender_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/Gender_ListFilter11")
|
||||
public List<Gender_ListFilter1> getlistwithparam( ) {
|
||||
List<Gender_ListFilter1> get = Service.getlistbuilderparam( );
|
||||
public List<Gender_ListFilter1> getlistwithparam() {
|
||||
List<Gender_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,9 +1,11 @@
|
||||
package com.realnet.vpspack.Controllers;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Referrer_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Referrer_ListFilter1Service ;
|
||||
import com.realnet.vpspack.Services.Referrer_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/Referrer_ListFilter1")
|
||||
@RestController
|
||||
public class Referrer_ListFilter1Controller {
|
||||
@ -15,10 +17,11 @@ public class Referrer_ListFilter1Controller {
|
||||
public List<Referrer_ListFilter1> getlist() {
|
||||
List<Referrer_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/Referrer_ListFilter11")
|
||||
public List<Referrer_ListFilter1> getlistwithparam( ) {
|
||||
List<Referrer_ListFilter1> get = Service.getlistbuilderparam( );
|
||||
public List<Referrer_ListFilter1> getlistwithparam() {
|
||||
List<Referrer_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Nationality_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Nationality_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Nationality_ListFilter1")
|
||||
@RestController
|
||||
public class TfNationality_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Nationality_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Nationality_ListFilter1")
|
||||
public List<Nationality_ListFilter1> getlist() {
|
||||
List<Nationality_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Nationality_ListFilter11")
|
||||
public List<Nationality_ListFilter1> getlistwithparam() {
|
||||
List<Nationality_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Gender_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Gender_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/Gender_ListFilter1")
|
||||
@RestController
|
||||
public class TokenFreeGender_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Gender_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Gender_ListFilter1")
|
||||
public List<Gender_ListFilter1> getlist() {
|
||||
List<Gender_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Gender_ListFilter11")
|
||||
public List<Gender_ListFilter1> getlistwithparam() {
|
||||
List<Gender_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Referrer_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Referrer_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Referrer_ListFilter1")
|
||||
@RestController
|
||||
public class TokenFreeReferrer_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Referrer_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Referrer_ListFilter1")
|
||||
public List<Referrer_ListFilter1> getlist() {
|
||||
List<Referrer_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Referrer_ListFilter11")
|
||||
public List<Referrer_ListFilter1> getlistwithparam() {
|
||||
List<Referrer_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Supplier_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Supplier_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Supplier_ListFilter1")
|
||||
@RestController
|
||||
public class TokenFreeSupplier_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Supplier_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Supplier_ListFilter1")
|
||||
public List<Supplier_ListFilter1> getlist() {
|
||||
List<Supplier_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Supplier_ListFilter11")
|
||||
public List<Supplier_ListFilter1> getlistwithparam() {
|
||||
List<Supplier_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Visa_entry_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Visa_entry_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Visa_entry_ListFilter1")
|
||||
@RestController
|
||||
public class TokenFreeVisaEntryListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Visa_entry_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Visa_entry_ListFilter1")
|
||||
public List<Visa_entry_ListFilter1> getlist() {
|
||||
List<Visa_entry_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Visa_entry_ListFilter11")
|
||||
public List<Visa_entry_ListFilter1> getlistwithparam() {
|
||||
List<Visa_entry_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.realnet.fnd.response.EntityResponse;
|
||||
import com.realnet.vpspack.Entity.Visa_application;
|
||||
import com.realnet.vpspack.Services.Visa_applicationService;
|
||||
|
||||
@RequestMapping(value = "/token/Visa_application")
|
||||
@CrossOrigin("*")
|
||||
@RestController
|
||||
public class TokenFreeVisa_applicationController {
|
||||
@Autowired
|
||||
private Visa_applicationService Service;
|
||||
|
||||
@Value("${projectPath}")
|
||||
private String projectPath;
|
||||
|
||||
@PostMapping("/Visa_application")
|
||||
public Visa_application Savedata(@RequestBody Visa_application data) {
|
||||
Visa_application save = Service.Savedata(data);
|
||||
|
||||
System.out.println("data saved..." + save);
|
||||
|
||||
return save;
|
||||
}
|
||||
|
||||
@PutMapping("/Visa_application/{id}")
|
||||
public Visa_application update(@RequestBody Visa_application data, @PathVariable Integer id) {
|
||||
Visa_application update = Service.update(data, id);
|
||||
System.out.println("data update..." + update);
|
||||
return update;
|
||||
}
|
||||
|
||||
// get all with pagination
|
||||
@GetMapping("/Visa_application/getall/page")
|
||||
public Page<Visa_application> getall(@RequestParam(value = "page", required = false) Integer page,
|
||||
@RequestParam(value = "size", required = false) Integer size) {
|
||||
Pageable paging = PageRequest.of(page, size);
|
||||
Page<Visa_application> get = Service.getAllWithPagination(paging);
|
||||
|
||||
return get;
|
||||
|
||||
}
|
||||
|
||||
@GetMapping("/Visa_application")
|
||||
public List<Visa_application> getdetails() {
|
||||
List<Visa_application> get = Service.getdetails();
|
||||
return get;
|
||||
}
|
||||
// get all without authentication
|
||||
|
||||
@GetMapping("/token/Visa_application")
|
||||
public List<Visa_application> getallwioutsec() {
|
||||
List<Visa_application> get = Service.getdetails();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Visa_application/{id}")
|
||||
public Visa_application getdetailsbyId(@PathVariable Integer id) {
|
||||
Visa_application get = Service.getdetailsbyId(id);
|
||||
return get;
|
||||
}
|
||||
|
||||
@DeleteMapping("/Visa_application/{id}")
|
||||
public ResponseEntity<?> delete_by_id(@PathVariable Integer id) {
|
||||
Service.delete_by_id(id);
|
||||
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Visa_duration_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Visa_duration_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Visa_duration_ListFilter1")
|
||||
@RestController
|
||||
public class TokenFreeVisa_duration_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Visa_duration_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Visa_duration_ListFilter1")
|
||||
public List<Visa_duration_ListFilter1> getlist() {
|
||||
List<Visa_duration_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Visa_duration_ListFilter11")
|
||||
public List<Visa_duration_ListFilter1> getlistwithparam() {
|
||||
List<Visa_duration_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package com.realnet.vpspack.Controllers;
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Visa_processing_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Visa_processing_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Visa_processing_ListFilter1")
|
||||
@RestController
|
||||
public class tokenFreeVisa_processing_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Visa_processing_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Visa_processing_ListFilter1")
|
||||
public List<Visa_processing_ListFilter1> getlist() {
|
||||
List<Visa_processing_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Visa_processing_ListFilter11")
|
||||
public List<Visa_processing_ListFilter1> getlistwithparam() {
|
||||
List<Visa_processing_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.realnet.vpspack.Controllers.VisaApplications;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.realnet.vpspack.Entity.Visa_status_ListFilter1;
|
||||
import com.realnet.vpspack.Services.Visa_status_ListFilter1Service;
|
||||
|
||||
@RequestMapping(value = "/token/Visa_status_ListFilter1")
|
||||
@RestController
|
||||
public class tokenFreeVisa_status_ListFilter1Controller {
|
||||
|
||||
@Autowired
|
||||
private Visa_status_ListFilter1Service Service;
|
||||
|
||||
@GetMapping("/Visa_status_ListFilter1")
|
||||
public List<Visa_status_ListFilter1> getlist() {
|
||||
List<Visa_status_ListFilter1> get = Service.getlistbuilder();
|
||||
return get;
|
||||
}
|
||||
|
||||
@GetMapping("/Visa_status_ListFilter11")
|
||||
public List<Visa_status_ListFilter1> getlistwithparam() {
|
||||
List<Visa_status_ListFilter1> get = Service.getlistbuilderparam();
|
||||
return get;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user