com.sds.acube.bpm.framework.api
Class HtmlProcessor

java.lang.Object
  extended by com.sds.acube.bpm.framework.api.HtmlProcessor

public class HtmlProcessor
extends java.lang.Object

¾ç½ÄÀ» HTMLÆÄÀÏ º¯È¯ÇÏ´Â API (¸¶À̱̽ۿ¬°è³ª ±âŸ ·¹°Å½Ã¿¬°è½Ã »ç¿ëÇÒ ¼ö ÀÖÀ½) HtmlProcessor.java 2009. 6. 19.

Version:
1.0.0.0 Copyright 2001 Samsung SDS Co., Ltd. All rights reserved.
Author:
LEE IL YONG

Constructor Summary
HtmlProcessor()
           
 
Method Summary
static java.lang.String getContentFromFile(java.sql.Connection conn, java.lang.String processID, java.util.HashMap xmlMap, java.lang.String templateFilePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.lang.String getContentFromFile(java.sql.Connection conn, java.lang.String processID, javax.servlet.http.HttpServletRequest request, java.util.HashMap additionalXml, java.lang.String templateFilePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.lang.String getContentFromFile(java.sql.Connection conn, java.lang.String processID, javax.servlet.http.HttpServletRequest request, java.lang.String templateFilePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁÖ´ÂŬ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.lang.String getContentFromFile(java.lang.String processID, java.util.HashMap xmlMap, java.lang.String templateFilePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.lang.String getContentFromFile(java.lang.String processID, javax.servlet.http.HttpServletRequest request, java.util.HashMap additionalXml, java.lang.String templateFilePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁÖ´ÂŬ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.lang.String getContentFromFile(java.lang.String processID, javax.servlet.http.HttpServletRequest request, java.lang.String templateFilePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁÖ´ÂŬ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.lang.String getContentFromString(java.sql.Connection conn, java.lang.String processID, java.util.HashMap xmlMap, java.lang.String content, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ.
static java.util.HashMap getJFORMFromRequest(javax.servlet.http.HttpServletRequest request)
          request¿¡¼­ jformÀ¸·Î ½ÃÀÛÇÏ´Â input ű׸¦ ÃßÃâÇÏ¿© HashMapÀ¸·Î ¸®ÅÏÇÏ´Â ÇÔ¼ö
[Âü°í] ÀÌ ÇÔ¼ö´Â ÁÖ·Î °³¹ßÀÚ ÇÁ·Î¼¼½º Çڵ鷯¿¡¼­ ¾ç½ÄÆäÀÌÁö¸¦ ¸¸µé¾î ³¾¶§ »ç¿ëÀÚ µ¥ÀÌÅÍ ÃßÃâ¿ëÀ¸·Î »ç¿ëÇÔ. for ¸¶ÀÌ½Ì±Û ¿¬°è
static java.lang.String getString(java.lang.String filePath)
          ¹®ÀÚ¿­·Î ÆÄÀÏÀбâ
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ.
static java.lang.String getString(java.lang.String filePath, java.lang.String charsetName)
          ¹®ÀÚ¿­·Î ÆÄÀÏÀбâ
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ.
static java.lang.String loadFile(java.lang.String filePath, org.apache.log4j.Logger logger)
          ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] xmlMap´ÂCabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í
static void main(java.lang.String[] args)
           
static java.lang.String replaceDataIslandXmlTag(java.lang.String content, java.util.HashMap xmlMap, org.apache.log4j.Logger logger)
          º»¹®¿¡ <ACUBE_XML/>À» xmlű×(<xml id=JFORM_XML>)·Î º¯È¯ÇØÁÖ´Â ÇÔ¼ö
[Âü°í] µû¶ó¼­ º»¹®¿¡ µ¥ÀÌÅÍ ¾ÆÀÏ·£µå È¿°ú¸¦ ÁÙ ¼ö ÀÖÀ½.
static java.lang.String replaceDataIslandXmlTag(java.lang.String content, java.lang.String xml, org.apache.log4j.Logger logger)
          º»¹®¿¡ <ACUBE_XML/>À» xmlű×(<xml id=JFORM_XML>)·Î º¯È¯ÇØÁÖ´Â ÇÔ¼ö
[Âü°í] µû¶ó¼­ º»¹®¿¡ µ¥ÀÌÅÍ ¾ÆÀÏ·£µå È¿°ú¸¦ ÁÙ ¼ö ÀÖÀ½.
static java.lang.String replaceFileAttachString(java.sql.Connection conn, java.lang.String processID, java.lang.String content, boolean subProcessAttachFlag, org.apache.log4j.Logger logger)
          º»¹®¿¡ <ACUBE_ATTACH:location> À» ÇØ´ç locationÀÇ Ã·ºÎ¸ñ·ÏÀ¸·Î »ðÀÔÇØÁÖ´Â ÇÔ¼ö
[ÁÖÀÇ] ¼­ºêÇÁ·Î¼¼½º°¡ ¿©·¯°³ÀÏ °æ¿ì locationÀº ¼­·Î À¯ÀÏÇØ¾ß ÇÔ.
static java.lang.String replaceLoopString(java.lang.String content, java.util.HashMap xmlMap, org.apache.log4j.Logger logger)
          º»¹®¿¡ <ACUBE_WHILE:¹Ýº¹º¯¼ö¸í> ±¸°£À» ÀÚµ¿ ¹Ýº¹»ðÀÔÇØÁÖ´Â ÇÔ¼ö
[Âü°í] xmlMap´Â CabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í
static boolean saveFile(java.lang.String filePath, java.lang.String content, boolean overwriteFlag)
          ¹®ÀÚ¿­À» ÆÄÀÏ·Î ÀúÀå
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ.
static boolean saveFile(java.lang.String filePath, java.lang.String content, java.lang.String charsetName, boolean overwriteFlag)
          ¹®ÀÚ¿­À» ÆÄÀÏ·Î ÀúÀå
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ.
static java.lang.String setValueOfHTMLTag(java.lang.String html, java.util.HashMap jformMap, java.lang.String header, org.apache.log4j.Logger logger)
          HTML ÆÄÀÏ¿¡¼­ INPUT,TEXTAREA¸¦ ã¾Æ °ª(jformMap Áß header·Î ½ÃÀÛÇÏ´Â °ª¸¸)À» ¼¼ÆÃÇØ ÁÜ for È­¸éÀü¼Û [Âü°í] html tag¿¡ value´Â ¾ø´Ù°í °¡Á¤ÇÔ
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlProcessor

public HtmlProcessor()
Method Detail

setValueOfHTMLTag

public static java.lang.String setValueOfHTMLTag(java.lang.String html,
                                                 java.util.HashMap jformMap,
                                                 java.lang.String header,
                                                 org.apache.log4j.Logger logger)
                                          throws java.lang.Exception
HTML ÆÄÀÏ¿¡¼­ INPUT,TEXTAREA¸¦ ã¾Æ °ª(jformMap Áß header·Î ½ÃÀÛÇÏ´Â °ª¸¸)À» ¼¼ÆÃÇØ ÁÜ for È­¸éÀü¼Û [Âü°í] html tag¿¡ value´Â ¾ø´Ù°í °¡Á¤ÇÔ

Parameters:
html -
jformMap -
header - ex)JFORM_PMM_
Returns:
String
Throws:
java.lang.Exception
Since:
2013.05.01 LEE IL YONG

getContentFromFile

public static java.lang.String getContentFromFile(java.lang.String processID,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String templateFilePath,
                                                  org.apache.log4j.Logger logger)
                                           throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁÖ´ÂŬ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´ÂCabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getContentFromFile

public static java.lang.String getContentFromFile(java.lang.String processID,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  java.util.HashMap additionalXml,
                                                  java.lang.String templateFilePath,
                                                  org.apache.log4j.Logger logger)
                                           throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁÖ´ÂŬ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´ÂCabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getContentFromFile

public static java.lang.String getContentFromFile(java.sql.Connection conn,
                                                  java.lang.String processID,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String templateFilePath,
                                                  org.apache.log4j.Logger logger)
                                           throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁÖ´ÂŬ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´ÂCabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ ´ÂXML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏÇ®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getContentFromFile

public static java.lang.String getContentFromFile(java.sql.Connection conn,
                                                  java.lang.String processID,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  java.util.HashMap additionalXml,
                                                  java.lang.String templateFilePath,
                                                  org.apache.log4j.Logger logger)
                                           throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´ÂCabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getContentFromFile

public static java.lang.String getContentFromFile(java.lang.String processID,
                                                  java.util.HashMap xmlMap,
                                                  java.lang.String templateFilePath,
                                                  org.apache.log4j.Logger logger)
                                           throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´Â CabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getContentFromFile

public static java.lang.String getContentFromFile(java.sql.Connection conn,
                                                  java.lang.String processID,
                                                  java.util.HashMap xmlMap,
                                                  java.lang.String templateFilePath,
                                                  org.apache.log4j.Logger logger)
                                           throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´Â CabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getContentFromString

public static java.lang.String getContentFromString(java.sql.Connection conn,
                                                    java.lang.String processID,
                                                    java.util.HashMap xmlMap,
                                                    java.lang.String content,
                                                    org.apache.log4j.Logger logger)
                                             throws com.sds.acube.bpm.framework.api.ProcessorException
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] ÅÛÇø´ÆÄÀÏ¿¡ °¡ ÀÖ¾î¾ß ÇÔ. ³»ºÎÀûÀ¸·Î replaceDataIslandXmlTag(),replaceLoopString(),replaceFileAttachString()µîÀ» È£ÃâÇÔ.
[Âü°í] ÀÌ ÇÔ¼ö °á°ú°ªÀ¸·Î HtmlProcessor.saveFile()¸¦ È£ÃâÇÏ¿© ÀúÀåÇÏ¸é µÊ
[Âü°í] xmlMap´Â CabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

getJFORMFromRequest

public static java.util.HashMap getJFORMFromRequest(javax.servlet.http.HttpServletRequest request)
                                             throws com.sds.acube.bpm.framework.api.ProcessorException
request¿¡¼­ jformÀ¸·Î ½ÃÀÛÇÏ´Â input ű׸¦ ÃßÃâÇÏ¿© HashMapÀ¸·Î ¸®ÅÏÇÏ´Â ÇÔ¼ö
[Âü°í] ÀÌ ÇÔ¼ö´Â ÁÖ·Î °³¹ßÀÚ ÇÁ·Î¼¼½º Çڵ鷯¿¡¼­ ¾ç½ÄÆäÀÌÁö¸¦ ¸¸µé¾î ³¾¶§ »ç¿ëÀÚ µ¥ÀÌÅÍ ÃßÃâ¿ëÀ¸·Î »ç¿ëÇÔ. for ¸¶ÀÌ½Ì±Û ¿¬°è

Parameters:
request -
Returns:
HashMap
Throws:
com.sds.acube.bpm.framework.api.ProcessorException

loadFile

public static java.lang.String loadFile(java.lang.String filePath,
                                        org.apache.log4j.Logger logger)
                                 throws java.lang.Exception
ÅÛÇø´ÆÄÀÏ¿¡ XML°ªµéÀ» ¹ÙÀεùÇØÁִ Ŭ·¡½º
[Âü°í] xmlMap´ÂCabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
processID - ÇÁ·Î½º¼¼ID
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
templateFilePath - ÅÛÇø´ÆÄÀÏ Ç®°æ·Î
Returns:
String
Throws:
java.lang.Exception

replaceLoopString

public static java.lang.String replaceLoopString(java.lang.String content,
                                                 java.util.HashMap xmlMap,
                                                 org.apache.log4j.Logger logger)
                                          throws java.lang.Exception
º»¹®¿¡ <ACUBE_WHILE:¹Ýº¹º¯¼ö¸í> ±¸°£À» ÀÚµ¿ ¹Ýº¹»ðÀÔÇØÁÖ´Â ÇÔ¼ö
[Âü°í] xmlMap´Â CabinetProcessor.getXMLElements()ÇÔ¼ö¸¦ ÂüÁ¶ÇÒ°Í

Parameters:
content - º¯È¯ÇÒ º»¹®
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
logger - ·Î°Å
Returns:
String
Throws:
java.lang.Exception

replaceFileAttachString

public static java.lang.String replaceFileAttachString(java.sql.Connection conn,
                                                       java.lang.String processID,
                                                       java.lang.String content,
                                                       boolean subProcessAttachFlag,
                                                       org.apache.log4j.Logger logger)
                                                throws java.lang.Exception
º»¹®¿¡ <ACUBE_ATTACH:location> À» ÇØ´ç locationÀÇ Ã·ºÎ¸ñ·ÏÀ¸·Î »ðÀÔÇØÁÖ´Â ÇÔ¼ö
[ÁÖÀÇ] ¼­ºêÇÁ·Î¼¼½º°¡ ¿©·¯°³ÀÏ °æ¿ì locationÀº ¼­·Î À¯ÀÏÇØ¾ß ÇÔ.

Parameters:
processID - processID
content - º¯È¯ÇÒ º»¹®
subProcessAttachFlag - ¼­ºêÇÁ·Î¼¼½ºÃ·ºÎ()µµ º¯È¯ÇÒÁö ¿©ºÎ
Returns:
String
Throws:
java.lang.Exception

replaceDataIslandXmlTag

public static java.lang.String replaceDataIslandXmlTag(java.lang.String content,
                                                       java.util.HashMap xmlMap,
                                                       org.apache.log4j.Logger logger)
                                                throws java.lang.Exception
º»¹®¿¡ <ACUBE_XML/>À» xmlű×(<xml id=JFORM_XML>)·Î º¯È¯ÇØÁÖ´Â ÇÔ¼ö
[Âü°í] µû¶ó¼­ º»¹®¿¡ µ¥ÀÌÅÍ ¾ÆÀÏ·£µå È¿°ú¸¦ ÁÙ ¼ö ÀÖÀ½.

Parameters:
content - º¯È¯ÇÒ º»¹®
xmlMap - JFORM_À¸·Î½ÃÀÛÇÏ´Â XML°ªµé
Returns:
String
Throws:
java.lang.Exception

replaceDataIslandXmlTag

public static java.lang.String replaceDataIslandXmlTag(java.lang.String content,
                                                       java.lang.String xml,
                                                       org.apache.log4j.Logger logger)
                                                throws java.lang.Exception
º»¹®¿¡ <ACUBE_XML/>À» xmlű×(<xml id=JFORM_XML>)·Î º¯È¯ÇØÁÖ´Â ÇÔ¼ö
[Âü°í] µû¶ó¼­ º»¹®¿¡ µ¥ÀÌÅÍ ¾ÆÀÏ·£µå È¿°ú¸¦ ÁÙ ¼ö ÀÖÀ½.

Parameters:
content - º¯È¯ÇÒ º»¹®
xml - xmlLocation(TBPM_ARCHIVE¿¡¼­)À¸·Î ¾òÀº Åë xml, ex) ~
Returns:
String
Throws:
java.lang.Exception

getString

public static java.lang.String getString(java.lang.String filePath)
                                  throws com.sds.acube.bpm.framework.api.ProcessorException
¹®ÀÚ¿­·Î ÆÄÀÏÀбâ
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ. FileAttachProcessorÀÇ °ÍÀ» ±ÇÀåÇÔ. 2009.11.18 LEE IL YONG

Parameters:
filePath - ÆÄÀÏ°æ·Î
Returns:
³»¿ë ¹®ÀÚ¿­
Throws:
java.lang.Exception
com.sds.acube.bpm.framework.api.ProcessorException

getString

public static java.lang.String getString(java.lang.String filePath,
                                         java.lang.String charsetName)
                                  throws com.sds.acube.bpm.framework.api.ProcessorException
¹®ÀÚ¿­·Î ÆÄÀÏÀбâ
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ. FileAttachProcessorÀÇ °ÍÀ» ±ÇÀåÇÔ. 2009.11.18 LEE IL YONG

Parameters:
filePath - ÆÄÀÏ°æ·Î
charsetName - ÀÎÄÚµùŸÀÔ
Returns:
³»¿ë ¹®ÀÚ¿­
Throws:
java.lang.Exception
com.sds.acube.bpm.framework.api.ProcessorException

saveFile

public static boolean saveFile(java.lang.String filePath,
                               java.lang.String content,
                               boolean overwriteFlag)
                        throws com.sds.acube.bpm.framework.api.ProcessorException
¹®ÀÚ¿­À» ÆÄÀÏ·Î ÀúÀå
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ. FileAttachProcessorÀÇ °ÍÀ» ±ÇÀåÇÔ. 2009.11.18 LEE IL YONG

Parameters:
filePath - ÆÄÀÏ°æ·Î
content - º»¹®³»¿ë
overwriteFlag - µ¤¾î¾²±â ¿©ºÎ
Returns:
boolean
Throws:
java.lang.Exception
com.sds.acube.bpm.framework.api.ProcessorException

saveFile

public static boolean saveFile(java.lang.String filePath,
                               java.lang.String content,
                               java.lang.String charsetName,
                               boolean overwriteFlag)
                        throws com.sds.acube.bpm.framework.api.ProcessorException
¹®ÀÚ¿­À» ÆÄÀÏ·Î ÀúÀå
[Âü°í] ¿¹Àü¹öÀü ÆÐÄ¡¶§¹®¿¡ Áö¿øÇÔ. FileAttachProcessorÀÇ °ÍÀ» ±ÇÀåÇÔ. 2009.11.18 LEE IL YONG

Parameters:
filePath - ÆÄÀÏ°æ·Î
content - º»¹®³»¿ë
charsetName - ÀÎÄÚµùŸÀÔ
overwriteFlag - µ¤¾î¾²±â ¿©ºÎ
Returns:
boolean
Throws:
java.lang.Exception
com.sds.acube.bpm.framework.api.ProcessorException

main

public static void main(java.lang.String[] args)
Parameters:
args -