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 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>
 
 ==> È­¸é¿¡¼­ ¾Æ·¡¿Í °°ÀÌ File ¸ñ·ÏÀÌ µÇ¾î ÀÖ´Ù¸é, 
 property "chk-name"´Â "removechk"°¡ µÇ°í »ç¿ëÀÚ°¡ CheckÇÑ FileÀÌ »èÁ¦µÈ´Ù. 
 Check BoxÀÇ value¿¡´Â File NameÀÌ ÀÖ¾î¾ß ÇÑ´Ù.
 
 <input type='checkbox' name='removechk' value='aaa.txt'/>
 
  
 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 ÇüÅÂÀÇ data
              chk-name °ú µ¿½Ã »ç¿ë ºÒ°¡.
 
 


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, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, 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–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.