コード例 #1
0
  public void connect(MessageContext synCtx) {

    SynapseLog synLog = getLog(synCtx);

    if (synLog.isTraceOrDebugEnabled()) {
      synLog.traceOrDebug("Start : Salesforce update SObjects mediator");

      if (synLog.isTraceTraceEnabled()) {
        synLog.traceTrace("Message : " + synCtx.getEnvelope());
      }
    }

    SalesforceUtil salesforceUtil = SalesforceUtil.getSalesforceUtil();
    salesforceUtil.addSobjects("update", SalesforceUtil.SALESFORCE_SOBJECTS, synCtx, synLog, null);

    if (synLog.isTraceOrDebugEnabled()) {
      synLog.traceOrDebug("End : Salesforce update SObjects mediator");

      if (synLog.isTraceTraceEnabled()) {
        synLog.traceTrace("Message : " + synCtx.getEnvelope());
      }
    }
  }
コード例 #2
0
  public void connect(MessageContext synCtx) {

    SynapseLog synLog = getLog(synCtx);

    if (synLog.isTraceOrDebugEnabled()) {
      synLog.traceOrDebug("Start : Salesforce Empty Recycle Bin mediator");

      if (synLog.isTraceTraceEnabled()) {
        synLog.traceTrace("Message : " + synCtx.getEnvelope());
      }
    }

    SalesforceUtil salesforceUtil = SalesforceUtil.getSalesforceUtil();
    salesforceUtil.addIds("emptyRecycleBin", SalesforceUtil.SALESFORCE_SOBJECTS, synCtx, synLog);

    if (synLog.isTraceOrDebugEnabled()) {
      synLog.traceOrDebug("End : Salesforce Empty Recycle Bin mediator");

      if (synLog.isTraceTraceEnabled()) {
        synLog.traceTrace("Message : " + synCtx.getEnvelope());
      }
    }
  }