Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. private void fillRowInformation(boolean includeB2bUnitUid, StringJoiner mCodesJoiner, MatchingCodeModel mCode) {
  2. String matchingCode = mCode.getMatchingCode();
  3. try{
  4. addRowData(includeB2bUnitUid, mCodesJoiner, mCode, matchingCode);
  5. }catch (NullPointerException e){
  6. LOG.error("Error while exporting matching code: " + matchingCode + " - Product used doesn't exists.");
  7. return;
  8. }
  9. }
  10.  
  11. private void addRowData(boolean includeB2bUnitUid, StringJoiner mCodesJoiner, MatchingCodeModel mCode, String matchingCode) {
  12. String productCode = mCode.getProduct().getCode();
  13. if (includeB2bUnitUid) {
  14. mCodesJoiner.add(b2bUnitService.getRootUnit(mCode.getB2bUnit()).getUid());
  15. }
  16. mCodesJoiner.add(matchingCode).add(productCode).add("\n");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement