com.poscoict.glueframework.biz.activity
Class GlueFileDelete

java.lang.Object
  extended by com.poscoict.glueframework.biz.activity.GlueActivity<GlueContext>
      extended by com.poscoict.glueframework.biz.activity.GlueFileDelete

public class GlueFileDelete
extends GlueActivity<GlueContext>

FileDelete Activity. GlueFileDelete Class´Â Upload µÈ FileÀ» »èÁ¦ ÇÏ´Â ClassÀÌ´Ù.

 Activity Property
 
 - file-upload-path : (Çʼö) FileÀÌ ÀúÀåµÈ Directory Path.  
 
 - is-real-path : (Çʼö) true/false. Àý´ë°æ·ÎÀÎÁö
 
 - chk-name : (¼±ÅÃ) File ¸ñ·ÏÀ» ÀúÀåÇÒ Key°ª (È­¸é¿¡¼­ ÀÌ Key·Î ¸ñ·ÏÀ» °¡Á®¿È).
              String[] ÇüÅÂÀÇ data.
              list-key ¿Í µ¿½Ã »ç¿ë ºÒ°¡.
 
 - list-key : (¼±ÅÃ) File ¸ñ·ÏÀ» ÀúÀåÇÒ Key°ª (È­¸é ¿Ü¿¡¼­ »ý¼ºÇÔ).
              List < String >  ÇüÅÂÀÇ data.
              chk-name °ú µ¿½Ã »ç¿ë ºÒ°¡.
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 - checkbox ¸¦ ÅëÇØ file nameÀÌ ³Ñ¾îÀü´ÞµÊ (Web). 
 
     <activity name="RomoveFile" class="com.poscoict.glueframework.biz.activity.GlueFileDelete">
         <transition name="success" value="FileList" />
         <property name="chk-name" value="removechk" />
         <property name="file-upload-path" value="D:\freeedom" />
         <property name="is-real-path" value="true" />
     </activity>
 
 
 »ç¿ë ¿¹# 2
 - WebÀÌ ¾Æ´Ñ °æ¿ì. 
 
     <activity name="Custom" class="...">
         <transition name="success" value="RomoveFile" />
     </activity>
     <activity name="RomoveFile" class="com.poscoict.glueframework.biz.activity.GlueFileDelete">
         <transition name="success" value="FileList" />
         <property name="list-key" value="removeList" />
         <property name="file-upload-path" value="D:\freeedom" />
         <property name="is-real-path" value="true" />
     </activity>
 
 
 
 Âü°í : HTML Code
 
     <input type='checkbox' name='removechk' value='readme.txt'/>
     <input type='checkbox' name='removechk' value='readme-win.txt'/>
 
 
 Âü°í : Java Code(Custom)
 
     List<String> fileList = new ArrayList<String>();
     fileList.add("readme.txt");
     fileList.add("readme-win.txt");
     ctx.put("removeList", fileList);
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueFileDelete()
           
 
Method Summary
 String runActivity(GlueContext 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

GlueFileDelete

public GlueFileDelete()
Method Detail

runActivity

public String runActivity(GlueContext 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<GlueContext>
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–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.