Subversion Repository Public Repository

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
package com.bestray.transtracking.controller;

import com.bestray.transtracking.service.ClientService;
import com.bestray.transtracking.service.CountyService;
import com.bestray.transtracking.service.impl.ClientServiceImpl;
import com.bestray.transtracking.service.impl.CountyServiceImpl;
import com.bestray.transtracking.views.Client;
import com.bestray.trastrack.domain.ClientUser;
import com.bestray.trastrack.domain.Country;
import com.bestray.trastrack.domain.State;
import java.util.List;
import java.util.Vector;
import com.bestray.transtracking.exceptions.TransTrackException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author user3
 */
public class ClientRegistrationController {
    
    private Client clientview;
    private ClientService clientservice;
    private CountyService countyService;
    
    public ClientRegistrationController(){
       // clientview = new Client();
        clientservice = new ClientServiceImpl();
        countyService = new CountyServiceImpl();
    }
    
    public boolean clientRegistration(ClientUser user){
        return clientservice.registerClient(user);     
                
    }

    public Vector<Country> getCountyList() {
        Vector countries = new Vector();
        List<Country> countyList = countyService.getCountyList();
        for(Country country:countyList){
            countries.addElement(country);
        }
        return countries;
    }
    
     public Vector<State> getStateList() {
        Vector<State> states = new Vector<State>();
        List<State> stateList = countyService.getStateList();
        for(State state:stateList){
            states.addElement(state);
            
        }
        return states;
    }
    
    
     public Vector<Vector<String>> getClientList() throws  TransTrackException{
         return clientservice.getClientList();
        
         
     }

    public ClientUser getClientRegistrationDetails(Long valueOf) {
        return clientservice.getClientRegistrationDetails(valueOf);
    }

    public void deleteClient(Long clientId) throws TransTrackException{
        clientservice.deleteClient(clientId);
    }
    
}

Commits for TransPort_Tracking/TransPortTracking/src/main/java/com/bestray/transtracking/controller/ClientRegistrationController.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Sat 28 Jul, 2018 05:29:14 +0000