source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/SubscriptionDteEjb/src/java/gov/hhs/fha/nhinc/subscription/dte/TransformEntityUnsubscribeToSubscriptionReferenceHelper.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: 1.2 KB
Line 
1package gov.hhs.fha.nhinc.subscription.dte;
2
3import gov.hhs.fha.nhinc.common.subscriptiondte.TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType;
4import org.apache.commons.logging.Log;
5import org.apache.commons.logging.LogFactory;
6
7/**
8 * Transform an entity unsubscribe message to a subscription reference.
9 *
10 * @author Neil Webb
11 */
12public class TransformEntityUnsubscribeToSubscriptionReferenceHelper
13{
14 private static Log log = LogFactory.getLog(TransformEntityUnsubscribeToSubscriptionReferenceHelper.class);
15
16 public static TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType transformEntityUnsubscribeToInternalSubscriptionReference(gov.hhs.fha.nhinc.common.subscription.UnsubscribeType unsubscribe)
17 { TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType resp = new TransformEntityUnsubscribeToInternalSubscriptionReferenceResponseType();
18 gov.hhs.fha.nhinc.common.subscription.SubscriptionReferenceType subRef = null;
19
20 if(unsubscribe != null)
21 {
22 subRef = unsubscribe.getSubscriptionReference();
23 }
24 resp.setSubscriptionReference(subRef);
25 return resp;
26 }
27}
Note: See TracBrowser for help on using the repository browser.