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
/*
 * 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.CountyService;
import com.bestray.transtracking.service.VehicleOwnerService;
import com.bestray.transtracking.service.impl.CountyServiceImpl;
import com.bestray.transtracking.service.impl.VehicleOwnerServiceImpl;
import com.bestray.transtracking.views.VehicleOwnerMaster;
import com.bestray.trastrack.domain.Country;
import com.bestray.trastrack.domain.State;
import com.bestray.trastrack.domain.VehicleOwner;
import java.util.List;
import java.util.Vector;

/**
 *
 * @author user3
 */
public class VehicleOwnerMasterController {
    private VehicleOwnerMaster owner;
    private CountyService countyService;
    private VehicleOwnerService ownerservice;
    
    
    public VehicleOwnerMasterController(){
        
        ownerservice = new VehicleOwnerServiceImpl();
        countyService = new CountyServiceImpl();
        
               
    }
    
    public boolean vehicleOwnerRegistration(VehicleOwner user){
        return ownerservice.registerOwner(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>>  getOwnerList() throws  TransTrackException{
        return ownerservice.getOwnerList();
    }
    
    public VehicleOwner getVehicleOwnerRegistrationDetails(Long valueOf) {
        return ownerservice.getVehicleOwnerRegistrationDetails(valueOf);
    }
    
    public void deleteVehicleOwner(Long ownerId) {
        ownerservice.deleteVehicleOwner(ownerId);
    }
}

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

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