source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Common/NhincLib/src/gov/hhs/fha/nhinc/connectmgr/data/CMBusinessService.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 5.6 KB
Line 
1package gov.hhs.fha.nhinc.connectmgr.data;
2
3/**
4 * This class represents a single business service for a business entity.
5 *
6 * @author Les Westberg
7 */
8public class CMBusinessService
9{
10 private String serviceKey = "";
11 private CMBindingNames names = null;
12 private CMBindingDescriptions descriptions = null;
13 private String uniformServiceName = "";
14 private String serviceVersion = "";
15 private boolean internalWebService = false;
16 private CMBindingTemplates bindingTemplates = null;
17
18 /**
19 * Default constructor.
20 */
21 public CMBusinessService()
22 {
23 clear();
24 }
25
26 /**
27 * Clear the contents of this and set it to a default state.
28 */
29 public void clear()
30 {
31 uniformServiceName = "";
32 serviceVersion = "";
33 internalWebService = false;
34 serviceKey = "";
35 names = null;
36 descriptions = null;
37 bindingTemplates = null;
38 }
39
40 /**
41 * Returns true of the contents of the object are the same as the one
42 * passed in.
43 *
44 * @param oCompare The object to compare.
45 * @return TRUE if the contents are the same as the one passed in.
46 */
47 public boolean equals(CMBusinessService oCompare)
48 {
49 if ((!this.uniformServiceName.equals(oCompare.uniformServiceName)) ||
50 (!this.serviceVersion.equals(oCompare.serviceVersion)) ||
51 (this.internalWebService != oCompare.internalWebService) ||
52 (!this.serviceKey.equals(oCompare.serviceKey)) ||
53 (!this.names.equals(oCompare.names)) ||
54 (!this.descriptions.equals(oCompare.descriptions)) ||
55 (!this.bindingTemplates.equals(oCompare.bindingTemplates)))
56 {
57 return false;
58 }
59
60 // If we got here then everything is the same...
61 //----------------------------------------------
62 return true;
63 }
64
65
66 /**
67 * Returns the binding information for this service.
68 *
69 * @return The binding information for this service.
70 */
71 public CMBindingTemplates getBindingTemplates()
72 {
73 return bindingTemplates;
74 }
75
76 /**
77 * Sets the binding information for this service.
78 *
79 * @param bindingTemplates The binding information for this service.
80 */
81 public void setBindingTemplates(CMBindingTemplates bindingTemplates)
82 {
83 this.bindingTemplates = bindingTemplates;
84 }
85
86 /**
87 * Returns the binding description information for this service.
88 *
89 * @return The binding description information for this service.
90 */
91 public CMBindingDescriptions getDescriptions()
92 {
93 return descriptions;
94 }
95
96 /**
97 * Sets the binding description information for this service.
98 *
99 * @param descriptions The binding description information for this service.
100 */
101 public void setDescriptions(CMBindingDescriptions descriptions)
102 {
103 this.descriptions = descriptions;
104 }
105
106 /**
107 * Returns true if this web service is internal to this gateway false if it is
108 * exposed to the NHIN.
109 *
110 * @return True if this web service is internal to this gateway and false if it
111 * is exposed to the NHIN.
112 */
113 public boolean isInternalWebService()
114 {
115 return internalWebService;
116 }
117
118 /**
119 * Set to true if this web service is internal to this gateway false if it is
120 * exposed to the NHIN.
121 *
122 * @param internalWebService True if this web service is internal to this gateway and false if it
123 * is exposed to the NHIN.
124 */
125 public void setInternalWebService(boolean internalWebService)
126 {
127 this.internalWebService = internalWebService;
128 }
129
130 /**
131 * Return the binding names for this service.
132 *
133 * @return The binding names for this service.
134 */
135 public CMBindingNames getNames()
136 {
137 return names;
138 }
139
140 /**
141 * Sets the binding names for this service.
142 *
143 * @return The binding names for this service.
144 */
145 public void setNames(CMBindingNames names)
146 {
147 this.names = names;
148 }
149
150 /**
151 * Return the service key for this service.
152 *
153 * @return The service key for this service.
154 */
155 public String getServiceKey()
156 {
157 return serviceKey;
158 }
159
160 /**
161 * Sets the service key for this service.
162 *
163 * @param serviceKey The service key for this service.
164 */
165 public void setServiceKey(String serviceKey)
166 {
167 this.serviceKey = serviceKey;
168 }
169
170 /**
171 * Returns the version of this service.
172 *
173 * @return The version of this service.
174 */
175 public String getServiceVersion()
176 {
177 return serviceVersion;
178 }
179
180 /**
181 * Sets the version of this service.
182 *
183 * @param serviceVersion The version of this service.
184 */
185 public void setServiceVersion(String serviceVersion)
186 {
187 this.serviceVersion = serviceVersion;
188 }
189
190 /**
191 * Returns the uniform service name for this service.
192 *
193 * @return The uniform service name for this service.
194 */
195 public String getUniformServiceName()
196 {
197 return uniformServiceName;
198 }
199
200 /**
201 * Sets the uniform service name for this service.
202 *
203 * @param uniformServiceName The uniform service name for this service.
204 */
205 public void setUniformServiceName(String uniformServiceName)
206 {
207 this.uniformServiceName = uniformServiceName;
208 }
209
210
211}
Note: See TracBrowser for help on using the repository browser.