/* (non-Javadoc)
@see com.popbill.api.TaxinvoiceService#getMassPrintURL(java.lang.String, com.popbill.api.taxinvoice.MgtKeyType, java.lang.String[], java.lang.String)
168095
@Override
    public String getMassPrintURL(String CorpNum, MgtKeyType KeyType,
                                  String[] MgtKeyList, String UserID) throws PopbillException {
        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKeyList == null || MgtKeyList.length == 0)
            throw new PopbillException(-99999999, "관리번호 목록이 입력되지 않았습니다.");

        String PostData = toJsonString(MgtKeyList);

        URLResponse response = httppost("/Taxinvoice/" + KeyType.name()
                + "?Print", CorpNum, PostData, UserID, URLResponse.class);

        return response.url;
    }
264789
@Override
	public Statement getDetailInfo(String CorpNum, int ItemCode, String MgtKey) throws PopbillException {
		return getDetailInfo(CorpNum, ItemCode, MgtKey, null);
	}
499612
@Override
	public HTTaxinvoiceXMLResponse getXML(String CorpNum, String NTSConfirmNum)
			throws PopbillException {
		return getXML(CorpNum, NTSConfirmNum, null);
	}
665466
protected final PrcSalesInvoiceServiceLineSave<RS>
    lazyGetPrcSalesInvoiceServiceLineSave(
      final Map<String, Object> pAddParam) throws Exception {
    @SuppressWarnings("unchecked")
    PrcSalesInvoiceServiceLineSave<RS> proc =
      (PrcSalesInvoiceServiceLineSave<RS>) this.processorsMap
        .get(PrcSalesInvoiceServiceLineSave.class.getSimpleName());
    if (proc == null) {
      proc = new PrcSalesInvoiceServiceLineSave<RS>();
      proc.setSrvAccSettings(getSrvAccSettings());
      proc.setSrvOrm(getSrvOrm());
      proc.setUtlInvLine(lazyGetUtlSalSrLn(pAddParam));
      //assigning fully initialized object:
      this.processorsMap
        .put(PrcSalesInvoiceServiceLineSave.class.getSimpleName(), proc);
    }
    return proc;
  }
1274532
@Override
	public String getPopUpURL(String CorpNum, int ItemCode, String MgtKey) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호 가 입력되지 않았습니다.");
	
		return getPopUpURL(CorpNum, ItemCode, MgtKey, null);
	}
1056486
@Override
    public float getUnitCost(String CorpNum, MessageType MsgType)
            throws PopbillException {
        if (MsgType == null)
            throw new PopbillException(-99999999, "메시지 유형이 입력되지 않았습니다.");

        UnitCostResponse response = httpget(
                "/Message/UnitCost?Type=" + MsgType.name(), CorpNum, null,
                UnitCostResponse.class);

        return response.unitCost;
    }
366615
@Override
    public TaxinvoiceLog[] getLogs(String CorpNum, MgtKeyType KeyType,
                                   String MgtKey) throws PopbillException {
        if (KeyType == null)
            throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
        if (MgtKey == null || MgtKey.isEmpty())
            throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

        return httpget(
                "/Taxinvoice/" + KeyType.name() + "/" + MgtKey + "/Logs",
                CorpNum, null, TaxinvoiceLog[].class);
    }
713944
@Override
	public String getMailURL(String CorpNum, String MgtKey)
			throws PopbillException {

		return getMailURL(CorpNum, MgtKey, null);
	}
1057041
protected final UtlInvLine<RS, SalesInvoice, SalesInvoiceServiceLine,
    SalesInvoiceTaxLine, SalesInvoiceServiceTaxLine> lazyGetUtlSalSrLn(
      final Map<String, Object> pAddParam) throws Exception {
    UtlInvLine<RS, SalesInvoice, SalesInvoiceServiceLine,
      SalesInvoiceTaxLine, SalesInvoiceServiceTaxLine> utlInvLn = this
        .utlSalInvSrLn;
    if (utlInvLn == null) {
      utlInvLn = new UtlInvLine<RS, SalesInvoice, SalesInvoiceServiceLine,
        SalesInvoiceTaxLine, SalesInvoiceServiceTaxLine>();
      utlInvLn.setUtlInvBase(lazyGetUtlInvBase(pAddParam));
      utlInvLn.setInvTxMeth(lazyGetSalInvTxMeth(pAddParam));
      utlInvLn.setIsMutable(true);
      utlInvLn.setNeedMkTxCat(true);
      utlInvLn.setLtlCl(SalesInvoiceServiceTaxLine.class);
      utlInvLn.setDstTxItLnCl(DestTaxServSelLn.class);
      FactoryPersistableBase<SalesInvoiceServiceTaxLine> fctLtl =
        new FactoryPersistableBase<SalesInvoiceServiceTaxLine>();
      fctLtl.setObjectClass(SalesInvoiceServiceTaxLine.class);
      fctLtl.setDatabaseId(getSrvDatabase().getIdDatabase());
      utlInvLn.setFctLineTxLn(fctLtl);
      //assigning fully initialized object:
      this.utlSalInvSrLn = utlInvLn;
    }
    return utlInvLn;
  }
924492
def getEPrintURL(self, CorpNum, MgtKey, UserID=None):
        
        if MgtKey == None or MgtKey == "":
            raise PopbillException(-99999999, "관리번호가 입력되지 않았습니다.")

        result = self._httpget('/Cashbill/' + MgtKey + '?TG=EPRINT', CorpNum, UserID)

        return result.url
704797
public static String getKeyString(Server server, Query query, Result result, List<String> typeNames, String rootPrefix) {
		StringBuilder sb = new StringBuilder();
		addRootPrefix(rootPrefix, sb);
		addAlias(server, sb);
		addSeparator(sb);
		addMBeanIdentifier(query, result, sb);
		addSeparator(sb);
		addTypeName(query, result, typeNames, sb);
		addKeyString(query, result, sb);
		return sb.toString();
	}
213820
public static String replaceDotInMustacheKeys(final List<String> mustacheKeys, final String pluginCall) {
        String fixedPluginCall = pluginCall;
        for (String mustacheKey : mustacheKeys) {
            if (mustacheKey.contains(".")) {
                fixedPluginCall = fixedPluginCall.replace("{{" + mustacheKey + "}}", "{{" + mustacheKey.replace('.', '#') + "}}");
            }
        }

        return fixedPluginCall;
    }
901982
public String getFullKey(String strSubKey)
    {
        String strReturnKey = strSubKey;
        if (strReturnKey == null)
            strReturnKey = Constant.BLANK;
        if (this.getMessageDataParent() instanceof MessageDataDesc)
        {    // Don't add for top level or above
            if (strReturnKey.length() > 0)
                strReturnKey = '/' + strReturnKey;
            strReturnKey = this.getKey() + strReturnKey;
            strReturnKey = ((MessageDataDesc)this.getMessageDataParent()).getFullKey(strReturnKey);
        }
        return strReturnKey;
    }
1261452
@Override
	public String getPrintURL(String CorpNum, String MgtKey)
			throws PopbillException {

		return getPrintURL(CorpNum, MgtKey, null);
	}
396904
static String calculateStringToSignV2(URI serviceUri, Map<String, String> parameters) {
        StringBuilder data = new StringBuilder();
        data.append("POST");
        data.append("\n");
        data.append(serviceUri.getHost().toLowerCase());
        if (!usesStandardPort(serviceUri)) {
            data.append(":");
            data.append(serviceUri.getPort());
        }
        data.append("\n");
        String uri = serviceUri.getPath();
        data.append(MwsUtl.urlEncode(uri, true));
        data.append("\n");
        Map<String, String> sorted = new TreeMap<String, String>();
        sorted.putAll(parameters);
        Iterator<Map.Entry<String, String>> pairs = sorted.entrySet().iterator();
        while (pairs.hasNext()) {
            Map.Entry<String, String> pair = pairs.next();
            String key = pair.getKey();
            data.append(MwsUtl.urlEncode(key, false));
            data.append("=");
            String value = pair.getValue();
            data.append(MwsUtl.urlEncode(value, false));
            if (pairs.hasNext()) {
                data.append("&");
            }
        }
        return data.toString();
    }
857297
public String getMsgPhrase(final SelectBuilder _selectBldr,
                               final MsgPhrase _msgPhrase)
        throws EFapsException
    {
        final List<Object> objects = new ArrayList<>();
        final String baseSel;
        if (_selectBldr == null) {
            baseSel = "";
        } else {
            baseSel = _selectBldr.toString() + ".";
        }
        boolean allNull = true;
        for (final String select : _msgPhrase.getArguments()) {
            final Object tmpObj = getSelect(baseSel + select);
            allNull = allNull && tmpObj == null;
            objects.add(tmpObj == null ? "" : tmpObj);
        }
        return allNull ? null : _msgPhrase.format(objects.toArray());
    }
288980
@SuppressWarnings("PMD.UseStringBufferForStringAppends")
    public static String getContextMarkers(final AdminContext context) {
        String res = "";
        if (isForAdmin(context)) {
            if (isForMain(context)) {
                res += "M";
            }
            res += "A";
        }
        return res;
    }