Package com.sourcetap.sfa.event

Examples of com.sourcetap.sfa.event.DataMatrix


      setNameFields( contactGV );
        contactGV.set("contactTypeId", "user");
        userLoginGV.set("userLoginId", userLogin);
        userLoginGV.set("currentPassword", userPassword);
       
        DataMatrix dataMatrix = new DataMatrix(delegator, new Vector());
        dataMatrix.getCurrentBuffer().addContentsRow(new Vector());

        dataMatrix.addEntity("Contact", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(contactGV);

        dataMatrix.addEntity("Address", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(addressGV);

        dataMatrix.addEntity("Party", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(partyGV);

        dataMatrix.addEntity("UserLogin", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(userLoginGV);

        if (preInsert(userInfo, delegator, dataMatrix) != STATUS_CONTINUE) {
            return false;
        }
    if ( (userLogin != null) && (userLogin.length() > 0))
    {
      try {
        partyGV =dataMatrix.getCurrentBuffer().getGenericValue(0, "Party", true);
      } catch (GenericEntityException e) {
        Debug.logError(
          "[ContactEventProcessor.QuickInsert] Error getting generic value: " +
          e.getLocalizedMessage(), module);
 
        return false;
      }
      partyRoleGV.set("partyId", partyGV.getString("partyId"));
      partyRoleGV.set("roleTypeId", "SFA_USER");
      dataMatrix.addEntity("PartyRole", false, true);
      dataMatrix.getCurrentBuffer().getContentsRow(0).add(partyRoleGV);
    }

        try {
            delegator.storeAll((List) dataMatrix.getCurrentBuffer()
                                                .getContentsRow(0));
        } catch (GenericEntityException e2) {
            Debug.logError(
                "[ContactEventProcessor.QuickInsert] Error updating: " +
                e2.getLocalizedMessage(), module);
View Full Code Here


        // call the Name processor to split full name into first, last, etc or to combine first/last to full name
        ContactEventProcessor.setNameFields( leadGV );
       
       
        DataMatrix dataMatrix = new DataMatrix(delegator, new Vector());
        dataMatrix.getCurrentBuffer().addContentsRow(new Vector());

        dataMatrix.addEntity("Lead", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(leadGV);

        dataMatrix.addEntity("Address", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(addressGV);

        dataMatrix.addEntity("Party", false, true);
        dataMatrix.getCurrentBuffer().getContentsRow(0).add(partyGV);

        if (preInsert(userInfo, delegator, dataMatrix) != STATUS_CONTINUE) {
            return false;
        }

        try {
            delegator.storeAll((List) dataMatrix.getCurrentBuffer()
                                                .getContentsRow(0));
        } catch (GenericEntityException e2) {
            Debug.logError("Error saving new lead: " +
                e2.getLocalizedMessage(), module);
View Full Code Here

    fieldMapping.add(new MappingInfo(fromEntity, fromAttribute, toScreenName, toScreenSection, toEntity, toAttribute));
  }

  public boolean convert ( String leadId )
  {
    DataMatrix dataMatrix = DataMatrix.fillFromDB(delegator, userInfo, uiWebScreenSection, leadEventProcessor,
                                        new GenericPK( delegator.getModelEntity("Lead"), UtilMisc.toMap("leadId", leadId) ));

    return convert( delegator, dataMatrix, userInfo, uiCache );

  }
View Full Code Here

      if ( getCreateOpportunity() && hasAccountInfo)
      {     
        DataInfo dataInfo = (DataInfo) dataMatrixMap.get("OPPORTUNITIES.OpportunityHeader");
        GenericEventProcessor eventProcessor = new OpportunityEventProcessor();
        DataMatrix dataMatrix = dataInfo.loadData(userInfo, eventProcessor);
        GenericValue dealGV = dataMatrix.getCurrentBuffer().getGenericValue(0, "Deal", false);
        dealGV.set("accountId", accountId);
       
        if ( opportunityName != null)
          dealGV.set("dealName", opportunityName);
        else       
View Full Code Here

   
    public DataInfo( GenericDelegator delegator_, UIWebScreenSection uiWebScreenSection_ )
    {
      delegator = delegator_;
      uiWebScreenSection = uiWebScreenSection_;
      dataMatrix = new DataMatrix(delegator, uiWebScreenSection.getEntityParamVector())
      values = new Vector();
      fields = new Vector();
    }
View Full Code Here

TOP

Related Classes of com.sourcetap.sfa.event.DataMatrix

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.