1 /*
2 * FilterStub.java
3 *
4 * Created on February 11, 2003, 3:22 AM
5 */
6
7 package com.mlw.fps.model.business.bo.stubs;
8
9 import java.util.ArrayList;
10 import java.util.List;
11
12 import com.mlw.fps.model.business.dao.DAOFactory;
13 import com.mlw.fps.model.business.dao.MapDAO;
14 import com.mlw.fps.model.business.dao.PlayerDAO;
15 import com.mlw.fps.model.business.dao.WeaponDAO;
16 import com.mlw.fps.model.business.vo.SystemFilters;
17 import com.mlw.fps.model.manager.FilterManager;
18 /***
19 *
20 * @author Matthew Wilson
21 */
22 public class FilterStub implements FilterManager
23 {
24 private SystemFilters filters = new SystemFilters();
25
26 /*** Creates a new instance of FilterStub
27 */
28 public FilterStub()
29 {
30 }
31
32 public List getPlayers()
33 {
34 PlayerDAO dao = (PlayerDAO)DAOFactory.getDAO(PlayerDAO.class.getName());
35 List players = new ArrayList(dao.getPlayers());
36 return players;
37 }
38
39 public List getWeapons()
40 {
41 WeaponDAO dao = (WeaponDAO)DAOFactory.getDAO(WeaponDAO.class.getName());
42 List weapons = new ArrayList(dao.getWeapons());
43 return weapons;
44 }
45
46 public List getMaps()
47 {
48 MapDAO dao = (MapDAO)DAOFactory.getDAO(MapDAO.class.getName());
49 List maps = new ArrayList(dao.getMaps());
50 return maps;
51 }
52
53 public SystemFilters getSystemFilters()
54 {
55 return filters;
56 }
57
58 }
This page was automatically generated by Maven