root/tools/routingservice/branches/wrs-2.0/src/model/Profile.java

Revision 348, 1.9 KB (checked in by anton, 14 months ago)

Parameters overriding fixed, now there is no need to restart WRS when profiles are changed

Line 
1/*  WRS 2.0
2 *  Copyright (C) 2009 Anton Patrushev
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18package model;
19
20import java.io.Serializable;
21import java.util.HashMap;
22
23import org.apache.commons.collections.map.MultiValueMap;
24
25import util.Parameter;
26
27public class Profile implements Serializable
28{
29        private String name;
30        private String title;
31        private String description;
32        private HashMap<String, Parameter> parameters;
33        private HashMap<String, Resource> resources;
34        private MultiValueMap services;
35
36        public Profile(String name)
37        {
38                super();
39                this.name = name;
40               
41                parameters = new HashMap<String, Parameter>();
42               
43                HashMap<String, Service> sm = new HashMap<String, Service>();
44                services = MultiValueMap.decorate(sm);         
45               
46                resources = new HashMap<String, Resource>();
47        }
48       
49       
50
51        public String getName()
52        {
53                return name;
54        }
55
56        public void setName(String name)
57        {
58                this.name = name;
59        }
60       
61        public String getTitle()
62        {
63                return title;
64        }
65
66        public void setTitle(String title)
67        {
68                this.title = title;
69        }       
70
71        public String getDescription()
72        {
73                return description;
74        }
75
76        public void setDescription(String description)
77        {
78                this.description = description;
79        }
80
81        public HashMap<String, Parameter> getParameters()
82        {
83                return parameters;
84        }
85
86        public HashMap<String, Resource> getResources()
87        {
88                return resources;
89        }
90
91        public MultiValueMap getServices()
92        {
93                return services;
94        }
95
96}
Note: See TracBrowser for help on using the browser.