if (selllingTempType.length > 0) {
for (int j = 0; j < selllingTempType.length; j++) {
Long longTemplete = Long.parseLong(selllingTempType[j].getSaleTemplateID());
DeleteSellingManagerTemplateCall tcall = new DeleteSellingManagerTemplateCall(EbayStoreHelper.getApiContext((String)context.get("productStoreId"), locale, delegator));
DeleteSellingManagerTemplateRequestType treq = new DeleteSellingManagerTemplateRequestType();
DeleteSellingManagerTemplateResponseType tresp = null;
treq.setSaleTemplateID(longTemplete);
tresp = (DeleteSellingManagerTemplateResponseType) tcall.execute(treq);
if (tresp != null && "SUCCESS".equals(tresp.getAck().toString())) {
result = ServiceUtil.returnSuccess();
} else {
EbayStoreHelper.createErrorLogMessage(userLogin, dctx.getDispatcher(), context.get("productStoreId").toString(), tresp.getAck().toString(), "Delete selling manager template : autoBlockItemsOutOfStock", tresp.getErrors(0).getLongMessage());
}
}
}
}
}