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,14 +1,14 @@
|
||||
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
|
||||
@ -29,5 +29,4 @@ private String description;
|
||||
|
||||
private boolean active;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,36 +1,20 @@
|
||||
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 {
|
||||
@ -41,49 +25,26 @@ private Visa_administrationRepository Repository;
|
||||
@Autowired
|
||||
private RealmService realmService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private Visa_StatusService visa_statusserv;
|
||||
private Visa_statusService visa_statusserv;
|
||||
|
||||
@Autowired
|
||||
private NationalityService nationalityserv;
|
||||
|
||||
public Visa_administration Savedata(Visa_administration data) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getVisa_status() != null) {
|
||||
Visa_Status get = visa_statusserv.getdetailsbyId(data.getVisa_status());
|
||||
Visa_status get = visa_statusserv.getdetailsbyId(data.getVisa_status());
|
||||
data.setVisa_statusname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getNationality() != null) {
|
||||
Nationality get = nationalityserv.getdetailsbyId(data.getNationality());
|
||||
data.setNationalityname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
data.setCreatedBy(getUser().getUserId());
|
||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||
@ -91,28 +52,26 @@ 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() {
|
||||
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
|
||||
List<Visa_administration> all = Repository.findAll(getUser().getUserId());
|
||||
|
||||
return all ; }
|
||||
|
||||
return all;
|
||||
}
|
||||
|
||||
public Visa_administration getdetailsbyId(Integer id) {
|
||||
return Repository.findById(id).get();
|
||||
}
|
||||
|
||||
|
||||
public void delete_by_id(Integer id) {
|
||||
Repository.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
public Visa_administration update(Visa_administration data, Integer id) {
|
||||
Visa_administration old = Repository.findById(id).get();
|
||||
old.setName(data.getName());
|
||||
@ -129,21 +88,12 @@ old.setNationality(data.getNationality());
|
||||
|
||||
final Visa_administration test = Repository.save(old);
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
return test;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return test;
|
||||
}
|
||||
|
||||
public AppUser getUser() {
|
||||
AppUser user = userService.getLoggedInUser();
|
||||
return user;
|
||||
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,86 +1,26 @@
|
||||
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 {
|
||||
@ -91,10 +31,6 @@ private Visa_applicationRepository Repository;
|
||||
@Autowired
|
||||
private RealmService realmService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private Visa_entryService visa_entry_typeserv;
|
||||
|
||||
@ -102,33 +38,11 @@ private Visa_applicationRepository Repository;
|
||||
private Visa_durationService visa_durationserv;
|
||||
|
||||
@Autowired
|
||||
private Visa_ProcessingService visa_processingserv;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private Visa_processingService visa_processingserv;
|
||||
|
||||
@Autowired
|
||||
private GenderService genderserv;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private ReferrerService referrerserv;
|
||||
|
||||
@ -143,121 +57,54 @@ private Visa_applicationRepository Repository;
|
||||
|
||||
public Visa_application Savedata(Visa_application data) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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());
|
||||
data.setVisa_durationname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getVisa_processing() != null) {
|
||||
Visa_Processing get = visa_processingserv.getdetailsbyId(data.getVisa_processing());
|
||||
Visa_processing get = visa_processingserv.getdetailsbyId(data.getVisa_processing());
|
||||
data.setVisa_processingname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getGender() != null) {
|
||||
Gender get = genderserv.getdetailsbyId(data.getGender());
|
||||
data.setGendername(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getReferrer() != null) {
|
||||
Referrer get = referrerserv.getdetailsbyId(data.getReferrer());
|
||||
data.setReferrername(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getNationality() != null) {
|
||||
Nationality get = nationalityserv.getdetailsbyId(data.getNationality());
|
||||
data.setNationalityname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getSupplier() != null) {
|
||||
Supplier get = supplierserv.getdetailsbyId(data.getSupplier());
|
||||
data.setSuppliername(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getAgent() != null) {
|
||||
Agent get = agentserv.getdetailsbyId(data.getAgent());
|
||||
data.setAgentname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
data.setCreatedBy(getUser().getUserId());
|
||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||
@ -265,28 +112,26 @@ 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() {
|
||||
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
|
||||
List<Visa_application> all = Repository.findAll(getUser().getUserId());
|
||||
|
||||
return all ; }
|
||||
|
||||
return all;
|
||||
}
|
||||
|
||||
public Visa_application getdetailsbyId(Integer id) {
|
||||
return Repository.findById(id).get();
|
||||
}
|
||||
|
||||
|
||||
public void delete_by_id(Integer id) {
|
||||
Repository.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
public Visa_application update(Visa_application data, Integer id) {
|
||||
Visa_application old = Repository.findById(id).get();
|
||||
old.setName(data.getName());
|
||||
@ -335,53 +180,12 @@ old.setAgent(data.getAgent());
|
||||
|
||||
final Visa_application test = Repository.save(old);
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
return test;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return test;
|
||||
}
|
||||
|
||||
public AppUser getUser() {
|
||||
AppUser user = userService.getLoggedInUser();
|
||||
return user;
|
||||
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,43 +1,21 @@
|
||||
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 {
|
||||
@ -48,10 +26,6 @@ private Visa_pricesRepository Repository;
|
||||
@Autowired
|
||||
private RealmService realmService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private Visa_entryService visa_entry_typeserv;
|
||||
|
||||
@ -59,56 +33,28 @@ private Visa_pricesRepository Repository;
|
||||
private Visa_durationService visa_durationserv;
|
||||
|
||||
@Autowired
|
||||
private Visa_ProcessingService visa_processingserv;
|
||||
|
||||
|
||||
|
||||
|
||||
private Visa_processingService visa_processingserv;
|
||||
|
||||
public Visa_prices Savedata(Visa_prices data) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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());
|
||||
data.setVisa_durationname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (data.getVisa_processing() != null) {
|
||||
Visa_Processing get = visa_processingserv.getdetailsbyId(data.getVisa_processing());
|
||||
Visa_processing get = visa_processingserv.getdetailsbyId(data.getVisa_processing());
|
||||
data.setVisa_processingname(get.getName());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
data.setCreatedBy(getUser().getUserId());
|
||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||
@ -116,28 +62,26 @@ 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() {
|
||||
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
|
||||
List<Visa_prices> all = Repository.findAll(getUser().getUserId());
|
||||
|
||||
return all ; }
|
||||
|
||||
return all;
|
||||
}
|
||||
|
||||
public Visa_prices getdetailsbyId(Integer id) {
|
||||
return Repository.findById(id).get();
|
||||
}
|
||||
|
||||
|
||||
public void delete_by_id(Integer id) {
|
||||
Repository.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
public Visa_prices update(Visa_prices data, Integer id) {
|
||||
Visa_prices old = Repository.findById(id).get();
|
||||
old.setName(data.getName());
|
||||
@ -158,25 +102,12 @@ old.setCost(data.getCost());
|
||||
|
||||
final Visa_prices test = Repository.save(old);
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
return test;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return test;
|
||||
}
|
||||
|
||||
public AppUser getUser() {
|
||||
AppUser user = userService.getLoggedInUser();
|
||||
return user;
|
||||
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,24 +1,18 @@
|
||||
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 {
|
||||
@ -29,17 +23,8 @@ private Visa_processingRepository Repository;
|
||||
@Autowired
|
||||
private RealmService realmService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public Visa_processing Savedata(Visa_processing data) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
data.setCreatedBy(getUser().getUserId());
|
||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||
@ -47,28 +32,26 @@ 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() {
|
||||
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
|
||||
List<Visa_processing> all = Repository.findAll(getUser().getUserId());
|
||||
|
||||
return all ; }
|
||||
|
||||
return all;
|
||||
}
|
||||
|
||||
public Visa_processing getdetailsbyId(Integer id) {
|
||||
return Repository.findById(id).get();
|
||||
}
|
||||
|
||||
|
||||
public void delete_by_id(Integer id) {
|
||||
Repository.deleteById(id);
|
||||
}
|
||||
|
||||
|
||||
public Visa_processing update(Visa_processing data, Integer id) {
|
||||
Visa_processing old = Repository.findById(id).get();
|
||||
old.setName(data.getName());
|
||||
@ -79,15 +62,12 @@ old.setActive (data.isActive());
|
||||
|
||||
final Visa_processing test = Repository.save(old);
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
return test;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return test;
|
||||
}
|
||||
|
||||
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