backend
This commit is contained in:
		
							parent
							
								
									b898694b14
								
							
						
					
					
						commit
						30646069d2
					
				@ -128,7 +128,7 @@
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/com/nimbusds/lang-tag/1.7/lang-tag-1.7.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/com/nimbusds/nimbus-jose-jwt/10.0.2/nimbus-jose-jwt-10.0.2.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/com/nimbusds/nimbus-jose-jwt/10.2/nimbus-jose-jwt-10.2.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/security/spring-security-core/5.2.2.RELEASE/spring-security-core-5.2.2.RELEASE.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/security/spring-security-oauth2-core/5.2.2.RELEASE/spring-security-oauth2-core-5.2.2.RELEASE.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
    <factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/social/spring-social-google/1.0.0.RELEASE/spring-social-google-1.0.0.RELEASE.jar" enabled="true" runInBatchMode="false"/>
 | 
			
		||||
 | 
			
		||||
@ -199,3 +199,5 @@
 | 
			
		||||
2025-03-25T17:59:34.405+0530  ERROR Invalid AES key length: 14 bytes
 | 
			
		||||
2025-03-27T11:14:35.732+0530  ERROR I/O error on GET request for "http://43.205.154.152:30179/entityBuilder/Gaurav_testing": Operation timed out (Connection timed out); nested exception is java.net.ConnectException: Operation timed out (Connection timed out)
 | 
			
		||||
2025-03-27T11:14:35.733+0530  ERROR I/O error on GET request for "http://43.205.154.152:30179/entityBuilder/Gaurav_testing/3": Operation timed out (Connection timed out); nested exception is java.net.ConnectException: Operation timed out (Connection timed out)
 | 
			
		||||
2025-04-08T20:09:05.602+0530  ERROR I/O error on GET request for "http://43.205.154.152:30179/entityBuilder/Gaurav_testing/3": Operation timed out (Connection timed out); nested exception is java.net.ConnectException: Operation timed out (Connection timed out)
 | 
			
		||||
2025-04-08T20:09:05.602+0530  ERROR I/O error on GET request for "http://43.205.154.152:30179/entityBuilder/Gaurav_testing": Operation timed out (Connection timed out); nested exception is java.net.ConnectException: Operation timed out (Connection timed out)
 | 
			
		||||
 | 
			
		||||
@ -1,33 +1,32 @@
 | 
			
		||||
package com.realnet.vpspack.Entity;
 | 
			
		||||
 import lombok.*;
 | 
			
		||||
 | 
			
		||||
import javax.persistence.Column;
 | 
			
		||||
import javax.persistence.Entity;
 | 
			
		||||
import javax.persistence.GeneratedValue;
 | 
			
		||||
import javax.persistence.GenerationType;
 | 
			
		||||
import javax.persistence.Id;
 | 
			
		||||
 | 
			
		||||
import com.realnet.WhoColumn.Entity.Extension;
 | 
			
		||||
 import javax.persistence.*;
 | 
			
		||||
 import java.time.LocalDateTime;
 | 
			
		||||
 import java.util.*;
 | 
			
		||||
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 @Entity 
 | 
			
		||||
 @Data
 | 
			
		||||
 public class    Visa_processing extends Extension { 
 | 
			
		||||
 /**
 | 
			
		||||
@Entity
 | 
			
		||||
@Data
 | 
			
		||||
public class Visa_processing extends Extension {
 | 
			
		||||
	/**
 | 
			
		||||
	 * 
 | 
			
		||||
	 */
 | 
			
		||||
	private static final long serialVersionUID = 1L;
 | 
			
		||||
 | 
			
		||||
 @Id
 | 
			
		||||
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 | 
			
		||||
 private Integer id;
 | 
			
		||||
	@Id
 | 
			
		||||
	@GeneratedValue(strategy = GenerationType.IDENTITY)
 | 
			
		||||
	private Integer id;
 | 
			
		||||
 | 
			
		||||
private String  name;
 | 
			
		||||
	private String name;
 | 
			
		||||
 | 
			
		||||
@Column(length = 2000)
 | 
			
		||||
private String description;
 | 
			
		||||
 | 
			
		||||
private boolean active;
 | 
			
		||||
	@Column(length = 2000)
 | 
			
		||||
	private String description;
 | 
			
		||||
 | 
			
		||||
	private boolean active;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,149 +1,99 @@
 | 
			
		||||
package com.realnet.vpspack.Services;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_administrationRepository;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_administration
 | 
			
		||||
;import java.util.*;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import com.realnet.SequenceGenerator.Service.SequenceService;
 | 
			
		||||
import org.springframework.data.domain.Page;
 | 
			
		||||
import org.springframework.data.domain.Pageable;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
 | 
			
		||||
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.vpspack.Entity.Visa_Status;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_StatusService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.users.service1.AppUserServiceImpl;
 | 
			
		||||
import com.realnet.vpspack.Entity.Nationality;
 | 
			
		||||
import com.realnet.vpspack.Services.NationalityService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	import org.springframework.stereotype.Service;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_administration;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_status;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_administrationRepository;
 | 
			
		||||
 | 
			
		||||
@Service
 | 
			
		||||
 public class Visa_administrationService {
 | 
			
		||||
@Autowired
 | 
			
		||||
private Visa_administrationRepository Repository;
 | 
			
		||||
public class Visa_administrationService {
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_administrationRepository Repository;
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private AppUserServiceImpl userService;
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private RealmService realmService;
 | 
			
		||||
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_statusService visa_statusserv;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	private Visa_StatusService visa_statusserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private NationalityService nationalityserv;
 | 
			
		||||
 | 
			
		||||
public Visa_administration Savedata(Visa_administration data) {
 | 
			
		||||
	public Visa_administration Savedata(Visa_administration data) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_status() != null) {
 | 
			
		||||
			Visa_Status get =  visa_statusserv.getdetailsbyId(data.getVisa_status());
 | 
			
		||||
		if (data.getVisa_status() != null) {
 | 
			
		||||
			Visa_status get = visa_statusserv.getdetailsbyId(data.getVisa_status());
 | 
			
		||||
			data.setVisa_statusname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getNationality() != null) {
 | 
			
		||||
			Nationality get =  nationalityserv.getdetailsbyId(data.getNationality());
 | 
			
		||||
		if (data.getNationality() != null) {
 | 
			
		||||
			Nationality get = nationalityserv.getdetailsbyId(data.getNationality());
 | 
			
		||||
			data.setNationalityname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setCreatedBy(getUser().getUserId());
 | 
			
		||||
		data.setAccountId(getUser().getAccount().getAccount_id());
 | 
			
		||||
Visa_administration save = Repository.save(data);
 | 
			
		||||
				return save;	
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Visa_administration save = Repository.save(data);
 | 
			
		||||
		return save;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
//	get all with pagination
 | 
			
		||||
	public Page<Visa_administration> getAllWithPagination(Pageable page) {
 | 
			
		||||
		return Repository.findAll(page, getUser().getUserId());
 | 
			
		||||
	}
 | 
			
		||||
public List<Visa_administration> getdetails() {  
 | 
			
		||||
 | 
			
		||||
	public List<Visa_administration> getdetails() {
 | 
			
		||||
		List<Realm> realm = realmService.findByUserId(getUser().getUserId());
 | 
			
		||||
List<Visa_administration> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
		List<Visa_administration> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
 | 
			
		||||
		return all ;		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
public Visa_administration getdetailsbyId(Integer id) {
 | 
			
		||||
	return Repository.findById(id).get();
 | 
			
		||||
			}
 | 
			
		||||
		return all;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_administration getdetailsbyId(Integer id) {
 | 
			
		||||
		return Repository.findById(id).get();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public void delete_by_id(Integer id) {
 | 
			
		||||
 Repository.deleteById(id);
 | 
			
		||||
}
 | 
			
		||||
		Repository.deleteById(id);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_administration update(Visa_administration data, Integer id) {
 | 
			
		||||
		Visa_administration old = Repository.findById(id).get();
 | 
			
		||||
		old.setName(data.getName());
 | 
			
		||||
 | 
			
		||||
public Visa_administration update(Visa_administration data,Integer id) {
 | 
			
		||||
	Visa_administration old = Repository.findById(id).get();
 | 
			
		||||
old.setName(data.getName());
 | 
			
		||||
		old.setDescription(data.getDescription());
 | 
			
		||||
 | 
			
		||||
old.setDescription(data.getDescription());
 | 
			
		||||
		old.setActive(data.isActive());
 | 
			
		||||
 | 
			
		||||
old.setActive (data.isActive());
 | 
			
		||||
		old.setEmails(data.getEmails());
 | 
			
		||||
 | 
			
		||||
old.setEmails(data.getEmails());
 | 
			
		||||
		old.setVisa_status(data.getVisa_status());
 | 
			
		||||
 | 
			
		||||
old.setVisa_status(data.getVisa_status());
 | 
			
		||||
		old.setNationality(data.getNationality());
 | 
			
		||||
 | 
			
		||||
old.setNationality(data.getNationality());
 | 
			
		||||
 | 
			
		||||
final Visa_administration test = Repository.save(old);
 | 
			
		||||
		final Visa_administration test = Repository.save(old);
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
  return test;} 
 | 
			
		||||
		return test;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 public AppUser getUser() {
 | 
			
		||||
	public AppUser getUser() {
 | 
			
		||||
		AppUser user = userService.getLoggedInUser();
 | 
			
		||||
		return user;
 | 
			
		||||
 | 
			
		||||
	}}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,387 +1,191 @@
 | 
			
		||||
package com.realnet.vpspack.Services;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_applicationRepository;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_application
 | 
			
		||||
;import java.util.*;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import com.realnet.SequenceGenerator.Service.SequenceService;
 | 
			
		||||
import org.springframework.data.domain.Page;
 | 
			
		||||
import org.springframework.data.domain.Pageable;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
 | 
			
		||||
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.vpspack.Entity.Visa_entry;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_entryService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_duration;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_durationService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_Processing;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_ProcessingService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Gender;
 | 
			
		||||
import com.realnet.vpspack.Services.GenderService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Referrer;
 | 
			
		||||
import com.realnet.vpspack.Services.ReferrerService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Nationality;
 | 
			
		||||
import com.realnet.vpspack.Services.NationalityService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Supplier;
 | 
			
		||||
import com.realnet.vpspack.Services.SupplierService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.users.service1.AppUserServiceImpl;
 | 
			
		||||
import com.realnet.vpspack.Entity.Agent;
 | 
			
		||||
import com.realnet.vpspack.Services.AgentService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	import org.springframework.stereotype.Service;
 | 
			
		||||
import com.realnet.vpspack.Entity.Gender;
 | 
			
		||||
import com.realnet.vpspack.Entity.Nationality;
 | 
			
		||||
import com.realnet.vpspack.Entity.Referrer;
 | 
			
		||||
import com.realnet.vpspack.Entity.Supplier;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_application;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_duration;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_entry;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_processing;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_applicationRepository;
 | 
			
		||||
 | 
			
		||||
@Service
 | 
			
		||||
 public class Visa_applicationService {
 | 
			
		||||
@Autowired
 | 
			
		||||
private Visa_applicationRepository Repository;
 | 
			
		||||
public class Visa_applicationService {
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_applicationRepository Repository;
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private AppUserServiceImpl userService;
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private RealmService realmService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_entryService visa_entry_typeserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_durationService visa_durationserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	private Visa_ProcessingService visa_processingserv;
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_processingService visa_processingserv;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private GenderService genderserv;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private ReferrerService referrerserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private NationalityService nationalityserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private SupplierService supplierserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private AgentService agentserv;
 | 
			
		||||
 | 
			
		||||
public Visa_application Savedata(Visa_application data) {
 | 
			
		||||
	public Visa_application Savedata(Visa_application data) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_entry_type() != null) {
 | 
			
		||||
			Visa_entry get =  visa_entry_typeserv.getdetailsbyId(data.getVisa_entry_type());
 | 
			
		||||
		if (data.getVisa_entry_type() != null) {
 | 
			
		||||
			Visa_entry get = visa_entry_typeserv.getdetailsbyId(data.getVisa_entry_type());
 | 
			
		||||
			data.setVisa_entry_typename(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_duration() != null) {
 | 
			
		||||
			Visa_duration get =  visa_durationserv.getdetailsbyId(data.getVisa_duration());
 | 
			
		||||
		if (data.getVisa_duration() != null) {
 | 
			
		||||
			Visa_duration get = visa_durationserv.getdetailsbyId(data.getVisa_duration());
 | 
			
		||||
			data.setVisa_durationname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_processing() != null) {
 | 
			
		||||
			Visa_Processing get =  visa_processingserv.getdetailsbyId(data.getVisa_processing());
 | 
			
		||||
		if (data.getVisa_processing() != null) {
 | 
			
		||||
			Visa_processing get = visa_processingserv.getdetailsbyId(data.getVisa_processing());
 | 
			
		||||
			data.setVisa_processingname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getGender() != null) {
 | 
			
		||||
			Gender get =  genderserv.getdetailsbyId(data.getGender());
 | 
			
		||||
		if (data.getGender() != null) {
 | 
			
		||||
			Gender get = genderserv.getdetailsbyId(data.getGender());
 | 
			
		||||
			data.setGendername(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getReferrer() != null) {
 | 
			
		||||
			Referrer get =  referrerserv.getdetailsbyId(data.getReferrer());
 | 
			
		||||
		if (data.getReferrer() != null) {
 | 
			
		||||
			Referrer get = referrerserv.getdetailsbyId(data.getReferrer());
 | 
			
		||||
			data.setReferrername(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getNationality() != null) {
 | 
			
		||||
			Nationality get =  nationalityserv.getdetailsbyId(data.getNationality());
 | 
			
		||||
		if (data.getNationality() != null) {
 | 
			
		||||
			Nationality get = nationalityserv.getdetailsbyId(data.getNationality());
 | 
			
		||||
			data.setNationalityname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getSupplier() != null) {
 | 
			
		||||
			Supplier get =  supplierserv.getdetailsbyId(data.getSupplier());
 | 
			
		||||
		if (data.getSupplier() != null) {
 | 
			
		||||
			Supplier get = supplierserv.getdetailsbyId(data.getSupplier());
 | 
			
		||||
			data.setSuppliername(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getAgent() != null) {
 | 
			
		||||
			Agent get =  agentserv.getdetailsbyId(data.getAgent());
 | 
			
		||||
		if (data.getAgent() != null) {
 | 
			
		||||
			Agent get = agentserv.getdetailsbyId(data.getAgent());
 | 
			
		||||
			data.setAgentname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setCreatedBy(getUser().getUserId());
 | 
			
		||||
		data.setAccountId(getUser().getAccount().getAccount_id());
 | 
			
		||||
Visa_application save = Repository.save(data);
 | 
			
		||||
				return save;	
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Visa_application save = Repository.save(data);
 | 
			
		||||
		return save;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
//	get all with pagination
 | 
			
		||||
	public Page<Visa_application> getAllWithPagination(Pageable page) {
 | 
			
		||||
		return Repository.findAll(page, getUser().getUserId());
 | 
			
		||||
	}
 | 
			
		||||
public List<Visa_application> getdetails() {  
 | 
			
		||||
 | 
			
		||||
	public List<Visa_application> getdetails() {
 | 
			
		||||
		List<Realm> realm = realmService.findByUserId(getUser().getUserId());
 | 
			
		||||
List<Visa_application> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
		List<Visa_application> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
 | 
			
		||||
		return all ;		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
public Visa_application getdetailsbyId(Integer id) {
 | 
			
		||||
	return Repository.findById(id).get();
 | 
			
		||||
			}
 | 
			
		||||
		return all;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_application getdetailsbyId(Integer id) {
 | 
			
		||||
		return Repository.findById(id).get();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public void delete_by_id(Integer id) {
 | 
			
		||||
 Repository.deleteById(id);
 | 
			
		||||
}
 | 
			
		||||
		Repository.deleteById(id);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_application update(Visa_application data, Integer id) {
 | 
			
		||||
		Visa_application old = Repository.findById(id).get();
 | 
			
		||||
		old.setName(data.getName());
 | 
			
		||||
 | 
			
		||||
public Visa_application update(Visa_application data,Integer id) {
 | 
			
		||||
	Visa_application old = Repository.findById(id).get();
 | 
			
		||||
old.setName(data.getName());
 | 
			
		||||
		old.setDescription(data.getDescription());
 | 
			
		||||
 | 
			
		||||
old.setDescription(data.getDescription());
 | 
			
		||||
		old.setActive(data.isActive());
 | 
			
		||||
 | 
			
		||||
old.setActive (data.isActive());
 | 
			
		||||
		old.setVisa_entry_type(data.getVisa_entry_type());
 | 
			
		||||
 | 
			
		||||
old.setVisa_entry_type(data.getVisa_entry_type());
 | 
			
		||||
		old.setVisa_duration(data.getVisa_duration());
 | 
			
		||||
 | 
			
		||||
old.setVisa_duration(data.getVisa_duration());
 | 
			
		||||
		old.setVisa_processing(data.getVisa_processing());
 | 
			
		||||
 | 
			
		||||
old.setVisa_processing(data.getVisa_processing());
 | 
			
		||||
		old.setTravel_start_date(data.getTravel_start_date());
 | 
			
		||||
 | 
			
		||||
old.setTravel_start_date(data.getTravel_start_date());
 | 
			
		||||
		old.setTravel_end_date(data.getTravel_end_date());
 | 
			
		||||
 | 
			
		||||
old.setTravel_end_date(data.getTravel_end_date());
 | 
			
		||||
		old.setPassport_number(data.getPassport_number());
 | 
			
		||||
 | 
			
		||||
old.setPassport_number(data.getPassport_number());
 | 
			
		||||
		old.setPassport_issue_date(data.getPassport_issue_date());
 | 
			
		||||
 | 
			
		||||
old.setPassport_issue_date(data.getPassport_issue_date());
 | 
			
		||||
		old.setPassport_expiry_date(data.getPassport_expiry_date());
 | 
			
		||||
 | 
			
		||||
old.setPassport_expiry_date(data.getPassport_expiry_date());
 | 
			
		||||
		old.setEmail(data.getEmail());
 | 
			
		||||
 | 
			
		||||
old.setEmail(data.getEmail());
 | 
			
		||||
		old.setPhone_number(data.getPhone_number());
 | 
			
		||||
 | 
			
		||||
old.setPhone_number(data.getPhone_number());
 | 
			
		||||
		old.setBirth_place(data.getBirth_place());
 | 
			
		||||
 | 
			
		||||
old.setBirth_place(data.getBirth_place());
 | 
			
		||||
		old.setDate_of_birth(data.getDate_of_birth());
 | 
			
		||||
 | 
			
		||||
old.setDate_of_birth(data.getDate_of_birth());
 | 
			
		||||
		old.setGender(data.getGender());
 | 
			
		||||
 | 
			
		||||
old.setGender(data.getGender());
 | 
			
		||||
		old.setProfession(data.getProfession());
 | 
			
		||||
 | 
			
		||||
old.setProfession(data.getProfession());
 | 
			
		||||
		old.setVisa_cost(data.getVisa_cost());
 | 
			
		||||
 | 
			
		||||
old.setVisa_cost(data.getVisa_cost());
 | 
			
		||||
		old.setReferrer(data.getReferrer());
 | 
			
		||||
 | 
			
		||||
old.setReferrer(data.getReferrer());
 | 
			
		||||
		old.setNationality(data.getNationality());
 | 
			
		||||
 | 
			
		||||
old.setNationality(data.getNationality());
 | 
			
		||||
		old.setSupplier(data.getSupplier());
 | 
			
		||||
 | 
			
		||||
old.setSupplier(data.getSupplier());
 | 
			
		||||
		old.setAgent(data.getAgent());
 | 
			
		||||
 | 
			
		||||
old.setAgent(data.getAgent());
 | 
			
		||||
 | 
			
		||||
final Visa_application test = Repository.save(old);
 | 
			
		||||
		final Visa_application test = Repository.save(old);
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
  return test;} 
 | 
			
		||||
		return test;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 public AppUser getUser() {
 | 
			
		||||
	public AppUser getUser() {
 | 
			
		||||
		AppUser user = userService.getLoggedInUser();
 | 
			
		||||
		return user;
 | 
			
		||||
 | 
			
		||||
	}}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,182 +1,113 @@
 | 
			
		||||
package com.realnet.vpspack.Services;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_pricesRepository;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_prices
 | 
			
		||||
;import java.util.*;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import com.realnet.SequenceGenerator.Service.SequenceService;
 | 
			
		||||
import org.springframework.data.domain.Page;
 | 
			
		||||
import org.springframework.data.domain.Pageable;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
 | 
			
		||||
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.vpspack.Entity.Visa_entry;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_entryService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.users.service1.AppUserServiceImpl;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_duration;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_durationService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_Processing;
 | 
			
		||||
import com.realnet.vpspack.Services.Visa_ProcessingService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	import org.springframework.stereotype.Service;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_entry;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_prices;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_processing;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_pricesRepository;
 | 
			
		||||
 | 
			
		||||
@Service
 | 
			
		||||
 public class Visa_pricesService {
 | 
			
		||||
@Autowired
 | 
			
		||||
private Visa_pricesRepository Repository;
 | 
			
		||||
public class Visa_pricesService {
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_pricesRepository Repository;
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private AppUserServiceImpl userService;
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private RealmService realmService;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_entryService visa_entry_typeserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_durationService visa_durationserv;
 | 
			
		||||
 | 
			
		||||
@Autowired
 | 
			
		||||
	private Visa_ProcessingService visa_processingserv;
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_processingService visa_processingserv;
 | 
			
		||||
 | 
			
		||||
	public Visa_prices Savedata(Visa_prices data) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
public Visa_prices Savedata(Visa_prices data) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_entry_type() != null) {
 | 
			
		||||
			Visa_entry get =  visa_entry_typeserv.getdetailsbyId(data.getVisa_entry_type());
 | 
			
		||||
		if (data.getVisa_entry_type() != null) {
 | 
			
		||||
			Visa_entry get = visa_entry_typeserv.getdetailsbyId(data.getVisa_entry_type());
 | 
			
		||||
			data.setVisa_entry_typename(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_duration() != null) {
 | 
			
		||||
			Visa_duration get =  visa_durationserv.getdetailsbyId(data.getVisa_duration());
 | 
			
		||||
		if (data.getVisa_duration() != null) {
 | 
			
		||||
			Visa_duration get = visa_durationserv.getdetailsbyId(data.getVisa_duration());
 | 
			
		||||
			data.setVisa_durationname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
if (data.getVisa_processing() != null) {
 | 
			
		||||
			Visa_Processing get =  visa_processingserv.getdetailsbyId(data.getVisa_processing());
 | 
			
		||||
		if (data.getVisa_processing() != null) {
 | 
			
		||||
			Visa_processing get = visa_processingserv.getdetailsbyId(data.getVisa_processing());
 | 
			
		||||
			data.setVisa_processingname(get.getName());
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setCreatedBy(getUser().getUserId());
 | 
			
		||||
		data.setAccountId(getUser().getAccount().getAccount_id());
 | 
			
		||||
Visa_prices save = Repository.save(data);
 | 
			
		||||
				return save;	
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Visa_prices save = Repository.save(data);
 | 
			
		||||
		return save;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
//	get all with pagination
 | 
			
		||||
	public Page<Visa_prices> getAllWithPagination(Pageable page) {
 | 
			
		||||
		return Repository.findAll(page, getUser().getUserId());
 | 
			
		||||
	}
 | 
			
		||||
public List<Visa_prices> getdetails() {  
 | 
			
		||||
 | 
			
		||||
	public List<Visa_prices> getdetails() {
 | 
			
		||||
		List<Realm> realm = realmService.findByUserId(getUser().getUserId());
 | 
			
		||||
List<Visa_prices> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
		List<Visa_prices> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
 | 
			
		||||
		return all ;		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
public Visa_prices getdetailsbyId(Integer id) {
 | 
			
		||||
	return Repository.findById(id).get();
 | 
			
		||||
			}
 | 
			
		||||
		return all;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_prices getdetailsbyId(Integer id) {
 | 
			
		||||
		return Repository.findById(id).get();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public void delete_by_id(Integer id) {
 | 
			
		||||
 Repository.deleteById(id);
 | 
			
		||||
}
 | 
			
		||||
		Repository.deleteById(id);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_prices update(Visa_prices data, Integer id) {
 | 
			
		||||
		Visa_prices old = Repository.findById(id).get();
 | 
			
		||||
		old.setName(data.getName());
 | 
			
		||||
 | 
			
		||||
public Visa_prices update(Visa_prices data,Integer id) {
 | 
			
		||||
	Visa_prices old = Repository.findById(id).get();
 | 
			
		||||
old.setName(data.getName());
 | 
			
		||||
		old.setDescription(data.getDescription());
 | 
			
		||||
 | 
			
		||||
old.setDescription(data.getDescription());
 | 
			
		||||
		old.setActive(data.isActive());
 | 
			
		||||
 | 
			
		||||
old.setActive (data.isActive());
 | 
			
		||||
		old.setVisa_entry_type(data.getVisa_entry_type());
 | 
			
		||||
 | 
			
		||||
old.setVisa_entry_type(data.getVisa_entry_type());
 | 
			
		||||
		old.setVisa_duration(data.getVisa_duration());
 | 
			
		||||
 | 
			
		||||
old.setVisa_duration(data.getVisa_duration());
 | 
			
		||||
		old.setVisa_processing(data.getVisa_processing());
 | 
			
		||||
 | 
			
		||||
old.setVisa_processing(data.getVisa_processing());
 | 
			
		||||
		old.setTotal_price(data.getTotal_price());
 | 
			
		||||
 | 
			
		||||
old.setTotal_price(data.getTotal_price());
 | 
			
		||||
		old.setCost(data.getCost());
 | 
			
		||||
 | 
			
		||||
old.setCost(data.getCost());
 | 
			
		||||
 | 
			
		||||
final Visa_prices test = Repository.save(old);
 | 
			
		||||
		final Visa_prices test = Repository.save(old);
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
  return test;} 
 | 
			
		||||
		return test;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 public AppUser getUser() {
 | 
			
		||||
	public AppUser getUser() {
 | 
			
		||||
		AppUser user = userService.getLoggedInUser();
 | 
			
		||||
		return user;
 | 
			
		||||
 | 
			
		||||
	}}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,93 +1,73 @@
 | 
			
		||||
package com.realnet.vpspack.Services;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_processingRepository;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_processing
 | 
			
		||||
;import java.util.*;
 | 
			
		||||
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import com.realnet.SequenceGenerator.Service.SequenceService;
 | 
			
		||||
import org.springframework.data.domain.Page;
 | 
			
		||||
import org.springframework.data.domain.Pageable;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
 | 
			
		||||
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;
 | 
			
		||||
import com.realnet.users.service1.AppUserServiceImpl;
 | 
			
		||||
import com.realnet.vpspack.Entity.Visa_processing;
 | 
			
		||||
import com.realnet.vpspack.Repository.Visa_processingRepository;
 | 
			
		||||
 | 
			
		||||
@Service
 | 
			
		||||
 public class Visa_processingService {
 | 
			
		||||
@Autowired
 | 
			
		||||
private Visa_processingRepository Repository;
 | 
			
		||||
public class Visa_processingService {
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private Visa_processingRepository Repository;
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private AppUserServiceImpl userService;
 | 
			
		||||
@Autowired
 | 
			
		||||
	@Autowired
 | 
			
		||||
	private RealmService realmService;
 | 
			
		||||
 | 
			
		||||
	public Visa_processing Savedata(Visa_processing data) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
public Visa_processing Savedata(Visa_processing data) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
		data.setCreatedBy(getUser().getUserId());
 | 
			
		||||
		data.setAccountId(getUser().getAccount().getAccount_id());
 | 
			
		||||
Visa_processing save = Repository.save(data);
 | 
			
		||||
				return save;	
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Visa_processing save = Repository.save(data);
 | 
			
		||||
		return save;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
//	get all with pagination
 | 
			
		||||
	public Page<Visa_processing> getAllWithPagination(Pageable page) {
 | 
			
		||||
		return Repository.findAll(page, getUser().getUserId());
 | 
			
		||||
	}
 | 
			
		||||
public List<Visa_processing> getdetails() {  
 | 
			
		||||
 | 
			
		||||
	public List<Visa_processing> getdetails() {
 | 
			
		||||
		List<Realm> realm = realmService.findByUserId(getUser().getUserId());
 | 
			
		||||
List<Visa_processing> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
		List<Visa_processing> all = Repository.findAll(getUser().getUserId());
 | 
			
		||||
 | 
			
		||||
		return all ;		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
public Visa_processing getdetailsbyId(Integer id) {
 | 
			
		||||
	return Repository.findById(id).get();
 | 
			
		||||
			}
 | 
			
		||||
		return all;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_processing getdetailsbyId(Integer id) {
 | 
			
		||||
		return Repository.findById(id).get();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public void delete_by_id(Integer id) {
 | 
			
		||||
 Repository.deleteById(id);
 | 
			
		||||
}
 | 
			
		||||
		Repository.deleteById(id);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public Visa_processing update(Visa_processing data, Integer id) {
 | 
			
		||||
		Visa_processing old = Repository.findById(id).get();
 | 
			
		||||
		old.setName(data.getName());
 | 
			
		||||
 | 
			
		||||
public Visa_processing update(Visa_processing data,Integer id) {
 | 
			
		||||
	Visa_processing old = Repository.findById(id).get();
 | 
			
		||||
old.setName(data.getName());
 | 
			
		||||
		old.setDescription(data.getDescription());
 | 
			
		||||
 | 
			
		||||
old.setDescription(data.getDescription());
 | 
			
		||||
		old.setActive(data.isActive());
 | 
			
		||||
 | 
			
		||||
old.setActive (data.isActive());
 | 
			
		||||
 | 
			
		||||
final Visa_processing test = Repository.save(old);
 | 
			
		||||
		final Visa_processing test = Repository.save(old);
 | 
			
		||||
		data.setUpdatedBy(getUser().getUserId());
 | 
			
		||||
  return test;} 
 | 
			
		||||
		return test;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 public AppUser getUser() {
 | 
			
		||||
	public AppUser getUser() {
 | 
			
		||||
		AppUser user = userService.getLoggedInUser();
 | 
			
		||||
		return user;
 | 
			
		||||
 | 
			
		||||
	}}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
#Generated by Maven Integration for Eclipse
 | 
			
		||||
#Thu Apr 03 17:26:58 IST 2025
 | 
			
		||||
#Tue Apr 08 19:35:59 IST 2025
 | 
			
		||||
artifactId=app
 | 
			
		||||
groupId=com.realnet
 | 
			
		||||
m2e.projectLocation=/Users/Gaurav Kumar/Desktop/Workspace/Workspace 2/app_builder/build_backend/cns-portal/code-extractor/builders/11096/index/demot1/demot1-test2-b/authsec_springboot/backend
 | 
			
		||||
m2e.projectName=Aauthsec Spring
 | 
			
		||||
m2e.projectLocation=/Users/Gaurav Kumar/Desktop/Workspace/workspace 5/visa APP/visaproject/visaproject-back-b/authsec_springboot/backend
 | 
			
		||||
m2e.projectName=visa app
 | 
			
		||||
version=1.0.0
 | 
			
		||||
 | 
			
		||||
@ -24,15 +24,15 @@ System.Net.ServicePointManager.Expect100Continue = false;
 | 
			
		||||
 | 
			
		||||
# **** MY SQL DATABASE CONNECTION ****
 | 
			
		||||
 | 
			
		||||
spring.datasource.url=jdbc:mysql://realit-prod.cj462uqsa4mz.ap-south-1.rds.amazonaws.com:3306/realnet_CNSBENEW?createDatabaseIfNotExist=true
 | 
			
		||||
spring.datasource.url=jdbc:mysql://157.66.191.31:3306/visaapp?createDatabaseIfNotExist=true
 | 
			
		||||
spring.datasource.username=cnsdev
 | 
			
		||||
spring.datasource.password=cnsdevprod1212
 | 
			
		||||
spring.datasource.password=cnsdev2407
 | 
			
		||||
 | 
			
		||||
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
 | 
			
		||||
 | 
			
		||||
spring.jpa.hibernate.ddl-auto=update
 | 
			
		||||
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
 | 
			
		||||
# Prefix Path
 | 
			
		||||
server.servlet.contextPath=/back
 | 
			
		||||
 | 
			
		||||
#spring.jpa.show-sql=true
 | 
			
		||||
spring.jpa.properties.hibernate.format_sql=true
 | 
			
		||||
@ -94,7 +94,5 @@ app.auth.tokenExpirationMsec=864000000
 | 
			
		||||
app.oauth2.authorizedRedirectUris=http://localhost:8081/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
projectPath=/Users/Gaurav Kumar/Desktop/Workspace 2/app_builder/build_backend/cns-portal/code-extractor/builders/11096/index/demot1/demot1-test2-b/authsec_springboot/backend
 | 
			
		||||
angularProjectPath=/Users/Gaurav Kumar/Desktop/Workspace 2/app_builder/build_backend/cns-portal/code-extractor/builders/11096/index/demot1/demot1-test2-b/authsec_springboot/backend/webui
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
projectPath=/Users/Gaurav Kumar/Desktop/Workspace/workspace 5/visa APP/visaproject/visaproject-back-b/authsec_springboot/backend
 | 
			
		||||
angularProjectPath=/Users/Gaurav Kumar/Desktop/Workspace/workspace 5/visa APP/visaproject/visaproject-back-b/authsec_springboot/backend/webui
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user