TransPort_Tracking
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.transtracking.controller;
import com.bestray.transtracking.exceptions.TransTrackException;
import com.bestray.transtracking.service.CodeService;
import com.bestray.transtracking.service.CountyService;
import com.bestray.transtracking.service.PartyService;
import com.bestray.transtracking.service.impl.CodeServiceImpl;
import com.bestray.transtracking.service.impl.CountyServiceImpl;
import com.bestray.transtracking.service.impl.PartyServiceImpl;
import com.bestray.transtracking.views.PartyMaster;
import com.bestray.trastrack.domain.Code;
import com.bestray.trastrack.domain.Country;
import com.bestray.trastrack.domain.Party;
import com.bestray.trastrack.domain.State;
import java.util.List;
import java.util.Vector;
/**
*
* @author user3
*/
public class PartyRegistrationController {
private PartyMaster partyview;
private PartyService partyservice;
private CountyService countryservice;
private CodeService codeService;
public static final String ACCOUNT_TYPE = "PARTY_ACCOUNT_TYPE";
public PartyRegistrationController(){
partyservice = new PartyServiceImpl();
countryservice = new CountyServiceImpl();
codeService = new CodeServiceImpl();
}
public boolean partyRegistration(Party user){
return partyservice.registerParty(user);
}
public Vector<Country> getCountyList() {
Vector countries = new Vector();
List<Country> countyList = countryservice.getCountyList();
for(Country country:countyList){
countries.addElement(country);
}
return countries;
}
public Vector<State> getStateList() {
Vector<State> states = new Vector<State>();
List<State> stateList = countryservice.getStateList();
for(State state:stateList){
states.addElement(state);
}
return states;
}
public Vector<Vector<String>> getPartyList() throws TransTrackException{
return partyservice.getPartyList();
}
public Vector<Code> getCodeList() {
Vector codes = new Vector();
List<Code> codeList = codeService.getCodesByCodeTypeName(ACCOUNT_TYPE);
for(Code code:codeList){
codes.addElement(code);
}
return codes;
}
public Party getPartyRegistrationDetails(Long valueOf) {
return partyservice.getPartyRegistrationDetails(valueOf);
}
public void deleteParty(Long partyId) {
partyservice.deleteParty(partyId);
}
public Vector<Vector<String>> getAllPartyList() throws TransTrackException{
return partyservice.findAllPartysList();
}
}
|
Revision |
Author |
Commited |
Message |
1
|
girijabapi
|
Sat 28 Jul, 2018 05:29:14 +0000 |
|