Package nl.clockwork.mule.ebms.model.cpp.cpa

Examples of nl.clockwork.mule.ebms.model.cpp.cpa.ServiceBinding


            {
              PartyInfo p = new PartyInfo();
              p.getPartyId().addAll(partyInfo.getPartyId());
              CollaborationRole cr = new CollaborationRole();
              cr.setRole(role.getRole());
              cr.setServiceBinding(new ServiceBinding());
              cr.getServiceBinding().setService(role.getServiceBinding().getService());
              cr.getServiceBinding().getCanSend().add(canSend);
              p.getCollaborationRole().add(cr);
              return p;
            }
View Full Code Here


            {
              PartyInfo p = new PartyInfo();
              p.getPartyId().addAll(partyInfo.getPartyId());
              CollaborationRole r = new CollaborationRole();
              r.setRole(role.getRole());
              r.setServiceBinding(new ServiceBinding());
              r.getServiceBinding().setService(role.getServiceBinding().getService());
              r.getServiceBinding().getCanReceive().add(canReceive);
              p.getCollaborationRole().add(r);
              return p;
            }
View Full Code Here

    return null;
  }
 
  public static CanSend getCanSend(PartyInfo partyInfo, String role, Service service, String action)
  {
    ServiceBinding serviceBinding = getServiceBinding(partyInfo, role, service);
    if (serviceBinding != null)
      for (CanSend canSend : serviceBinding.getCanSend())
        if (action.equals(canSend.getThisPartyActionBinding().getAction()))
          return canSend;
    return null;
  }
View Full Code Here

    return null;
  }

  public static CanReceive getCanReceive(PartyInfo partyInfo, String role, Service service, String action)
  {
    ServiceBinding serviceBinding = getServiceBinding(partyInfo, role, service);
    if (serviceBinding != null)
      for (CanReceive canReceive : serviceBinding.getCanReceive())
        if (action.equals(canReceive.getThisPartyActionBinding().getAction()))
          return canReceive;
    return null;
  }
View Full Code Here

  }
 
  public static List<DeliveryChannel> getDeliveryChannels(PartyInfo partyInfo, String role, Service service, String action)
  {
    List<DeliveryChannel> result = new ArrayList<DeliveryChannel>();
    ServiceBinding serviceBinding = getServiceBinding(partyInfo, role, service);
    if (serviceBinding != null)
      for (CanSend canSend : serviceBinding.getCanSend())
        if (action.equals(canSend.getThisPartyActionBinding().getAction()))
          for (JAXBElement<Object> o : canSend.getThisPartyActionBinding().getChannelId())
            result.add((DeliveryChannel)o.getValue());
    return result;
  }
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.cpp.cpa.ServiceBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.