Examples of PartyInfo


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

      Node n = (Node)XMLUtils.executeXPathQuery(new EbXMLNamespaceContext(),document,"/soap:Envelope/soap:Header/ebxml:MessageHeader",XPathConstants.NODE);
      MessageHeader messageHeader = XMLMessageBuilder.getInstance(MessageHeader.class).handle(n);
      CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(messageHeader.getCPAId());
      if (cpa != null)
      {
        PartyInfo partyInfo = CPAUtils.getPartyInfo(cpa,messageHeader.getFrom().getPartyId());
        if (partyInfo != null)
        {
          List<DeliveryChannel> channels = CPAUtils.getDeliveryChannels(partyInfo,messageHeader.getFrom().getRole(),messageHeader.getService(),messageHeader.getAction());
          if (channels.size() == 1)
          {
View Full Code Here

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

            && service.equals(role.getServiceBinding().getService().getValue())
        )
          for (CanSend canSend : role.getServiceBinding().getCanSend())
            if (action.equals(canSend.getThisPartyActionBinding().getAction()))
            {
              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;
            }
    return null;
  }
View Full Code Here

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

            && service.equals(role.getServiceBinding().getService().getValue())
        )
          for (CanReceive canReceive : role.getServiceBinding().getCanReceive())
            if (action.equals(canReceive.getThisPartyActionBinding().getAction()))
            {
              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;
            }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.