com.poscoict.glueframework.biz.activity
Class GlueFileSave

java.lang.Object
  extended by com.poscoict.glueframework.biz.activity.GlueActivity<GlueWebContext>
      extended by com.poscoict.glueframework.biz.activity.GlueFileSave

public class GlueFileSave
extends GlueActivity<GlueWebContext>

FileSave Activity. GlueFileSave Class´Â ¼­¹ö¿¡ UploadµÈ ±âÁ¸ FileÀÌ ÀÖ´Â °æ¿ì »õ·Î¿î FileÀ̸§(¼ýÀÚ¸¦ Ãß°¡)À¸·Î ÀúÀåÇÏ´Â Class ÀÌ´Ù.

 Activity Property
 
 - file-upload-path : (Çʼö) FileÀ» ÀúÀåÇÒ Directory Path.
 
 - is-real-path : (Çʼö) Àý´ë°æ·ÎÀ̸é true, »ó´ë°æ·Î À̸é false. 
          ÀÌÇ׸ñÀº Á¤ÀÇÇÏÁö ¾ÊÀ¸¸é Default·Î »ó´ë°æ·Î Àû¿ë 
 
 - result-key : (¼±ÅÃ) »õ·Î ¸¸µé¾îÁø File NameÀ» ArrayList·Î ÀúÀåÇÔ. 
          ÆÄÀÏ delimiter = "\\."»ç¿ëÇÏ¿© ÆÄÀÏ°ú È®ÀåÀÚ ºÐ¸®
          List < String > ÇüÅÂÀÇ data¸¦ ctx¿¡ ´ã´Â key.
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <activity name="SaveFile" class="com.poscoict.glueframework.biz.activity.GlueFileSave">
         <transition name="success" value="end" />
         <property name="file-upload-path" value="files/upload" />
         <property name="is-real-path" value="false"/>
         <property name="result-key" value="NewFileNames" />
     </activity>
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueFileSave()
           
 
Method Summary
 String runActivity(GlueWebContext ctx)
          Sub Class¿¡¼­ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼­ È£ÃâÇÑ´Ù.
 
Methods inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueFileSave

public GlueFileSave()
Method Detail

runActivity

public String runActivity(GlueWebContext ctx)
Description copied from class: GlueActivity
Sub Class¿¡¼­ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼­ È£ÃâÇÑ´Ù. °á°ú °ªÀº GlueContext¿¡ ´ã¾Æ¼­ ´ÙÀ½ Activity ¶Ç´Â F/W¿¡ Àü´ÞÇÏ°Ô µÈ´Ù. ÇÊ¿äÇÑ ¸ðµç Data´Â GlueContext¿¡¼­ È£ÃâÇÏ¿© »ç¿ëÇÏ°Ô µÈ´Ù.

Specified by:
runActivity in class GlueActivity<GlueWebContext>
Parameters:
ctx - GlueContext
Returns:
String Á¤»óÀûÀ̸é "success"¸¦ Return ÇÏ°í ºñÁ¤»ó 󸮸¦ ¿øÇϸé "failure"¸¦ Return ÇÑ´Ù.
 ¿¹) 
 <transition name="success" value="BizLogic"/>
 <transition name="failure" value="ErrorHandle"/>
 ==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ.
 


Copyright © 2013–2018 POSCO ICT. All rights reserved.