コード例 #1
0
 @Override
 public FrenchRIBType getFrenchRIB() {
   if (request.getBankAccount() == null) return null;
   BankAccount bankAccount = BankAccount.xmlToModel(request.getBankAccount());
   if (bankAccount == null) return null;
   return FrenchRIB.modelToXml(bankAccount.toFrenchRIB());
 }
コード例 #2
0
 @Override
 public String getSubjectPhone() {
   if (!StringUtils.isBlank(request.getSubject().getAdult().getHomePhone())) {
     return request.getSubject().getAdult().getHomePhone();
   } else if (!StringUtils.isBlank(request.getSubject().getAdult().getMobilePhone())) {
     return request.getSubject().getAdult().getMobilePhone();
   } else if (!StringUtils.isBlank(request.getSubject().getAdult().getOfficePhone())) {
     return request.getSubject().getAdult().getOfficePhone();
   }
   return "";
 }
コード例 #3
0
 @Override
 public String getEdemandeId() {
   return request.getEdemandeId();
 }
コード例 #4
0
 @Override
 public Calendar getCreationDate() {
   return request.getCreationDate();
 }
コード例 #5
0
 @Override
 public TitleType.Enum getAccountHolderTitle() {
   return request.getAccountHolderTitle();
 }
コード例 #6
0
 @Override
 public String getSubjectEdemandeId() {
   return request.getSubject().getAdult().getExternalId();
 }
コード例 #7
0
 @Override
 public String getSubjectBirthCity() {
   return request.getSubject().getAdult().getBirthPlace() != null
       ? request.getSubject().getAdult().getBirthPlace().getCity()
       : null;
 }
コード例 #8
0
 @Override
 public Long getId() {
   return request.getId();
 }
コード例 #9
0
 @Override
 public void setEdemandeId(String id) {
   request.setEdemandeId(id);
 }
コード例 #10
0
 @Override
 public void setSubjectEdemandeId(String id) {
   request.getSubject().getAdult().setExternalId(id);
 }
コード例 #11
0
 @Override
 public Long getSubjectId() {
   return request.getSubject().getAdult().getId();
 }
コード例 #12
0
 @Override
 public void setAccountHolderEdemandeId(String id) {
   request.setAccountHolderEdemandeId(id);
 }
コード例 #13
0
 @Override
 public boolean isSubjectAccountHolder() {
   return request.getIsSubjectAccountHolder();
 }
コード例 #14
0
 @Override
 public TitleType.Enum getSubjectTitle() {
   return request.getSubject().getAdult().getTitle();
 }
コード例 #15
0
 @Override
 public Map<String, Object> getSpecificFields(EdemandeService service) {
   Map<String, Object> result = new HashMap<String, Object>();
   result.put("firstRequest", request.getSubjectInformations().getSubjectFirstRequest());
   result.put(
       "taxHouseholdCityCode",
       request.getTaxHouseholdCityArray().length == 0
           ? ""
           : request.getTaxHouseholdCityArray(0).getName());
   result.put(
       "taxHouseholdCityPrecision",
       StringUtils.defaultString(request.getTaxHouseholdCityPrecision()));
   result.put("taxHouseholdIncome", request.getTaxHouseholdIncome());
   result.put("hasCROUSHelp", request.getHasCROUSHelp());
   result.put("hasRegionalCouncilHelp", request.getHasRegionalCouncilHelp());
   result.put("hasEuropeHelp", request.getHasEuropeHelp());
   result.put("hasOtherHelp", request.getHasOtherHelp());
   result.put("AlevelsDate", request.getALevelsInformations().getAlevelsDate());
   result.put(
       "AlevelsType",
       service.translate(
           "sgr.property.alevels."
               + request.getALevelsInformations().getAlevels().toString().toLowerCase()));
   result.put(
       "currentStudiesType",
       StringUtils.defaultIfEmpty(
           request.getCurrentStudiesInformations().getOtherStudiesLabel(),
           service.translate(
               "sgr.property.currentStudiesDiploma."
                   + request
                       .getCurrentStudiesInformations()
                       .getCurrentStudiesDiploma()
                       .toString())));
   result.put(
       "currentStudiesLevel",
       service.translate(
           "sgr.property.currentStudiesLevel."
               + request.getCurrentStudiesInformations().getCurrentStudiesLevel().toString()));
   result.put("sandwichCourses", request.getCurrentStudiesInformations().getSandwichCourses());
   result.put("abroadInternship", request.getCurrentStudiesInformations().getAbroadInternship());
   result.put(
       "abroadInternshipStartDate",
       service.formatDate(request.getCurrentStudiesInformations().getAbroadInternshipStartDate()));
   result.put(
       "abroadInternshipEndDate",
       service.formatDate(request.getCurrentStudiesInformations().getAbroadInternshipEndDate()));
   result.put(
       "currentSchoolName",
       StringUtils.defaultIfEmpty(
           request.getCurrentSchool().getCurrentSchoolNamePrecision(),
           request.getCurrentSchool().getCurrentSchoolNameArray().length == 0
               ? ""
               : request.getCurrentSchool().getCurrentSchoolNameArray(0).getName()));
   result.put("currentSchoolAddress", request.getCurrentSchool().getCurrentSchoolAddress());
   result.put(
       "abroadInternshipSchoolName",
       request.getCurrentStudiesInformations().getAbroadInternship()
           ? request.getCurrentStudiesInformations().getAbroadInternshipSchoolName()
           : "");
   result.put(
       "abroadInternshipSchoolCountry",
       request.getCurrentStudiesInformations().getAbroadInternship()
           ? service.translate(
               "sgr.property.abroadInternshipSchoolCountry."
                   + request.getCurrentStudiesInformations().getAbroadInternshipSchoolCountry())
           : "");
   result.put(
       "distance", service.translate("sgr.property.distance." + request.getDistance().toString()));
   return result;
 }
コード例 #16
0
 @Override
 public Long getHomeFolderId() {
   return request.getHomeFolder().getId();
 }
コード例 #17
0
 @Override
 public Calendar getAccountHolderBirthDate() {
   return request.getAccountHolderBirthDate();
 }
コード例 #18
0
 @Override
 public AddressType getSubjectAddress() {
   return request.getSubject().getAdult().getAddress();
 }
コード例 #19
0
 @Override
 public String getAccountHolderEdemandeId() {
   return request.getAccountHolderEdemandeId();
 }
コード例 #20
0
 @Override
 public Calendar getSubjectBirthDate() {
   return request.getSubjectInformations().getSubjectBirthDate();
 }
コード例 #21
0
 @Override
 public String getAccountHolderLastName() {
   return request.getAccountHolderLastName();
 }
コード例 #22
0
 @Override
 public String getSubjectEmail() {
   return request.getSubject().getAdult().getEmail();
 }
コード例 #23
0
 @Override
 public String getSubjectLastName() {
   return request.getSubject().getAdult().getLastName();
 }