com.j2biz.blogunity.web.actions.secure.blog
Class DeleteBlogExecAction

java.lang.Object
  extended bycom.j2biz.blogunity.web.actions.AbstractAction
      extended bycom.j2biz.blogunity.web.actions.secure.MyAbstractAction
          extended bycom.j2biz.blogunity.web.actions.secure.blog.DeleteBlogExecAction

public class DeleteBlogExecAction
extends MyAbstractAction

Since:
0.1
Author:
michelson

Field Summary
 
Fields inherited from class com.j2biz.blogunity.web.actions.secure.MyAbstractAction
user
 
Fields inherited from class com.j2biz.blogunity.web.actions.AbstractAction
currentActionPath, navigationStack
 
Constructor Summary
DeleteBlogExecAction()
           
 
Method Summary
static boolean deleteDir(File dir)
          Deletes all files and subdirectories under dir.
 IActionResult execute(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class com.j2biz.blogunity.web.actions.secure.MyAbstractAction
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteBlogExecAction

public DeleteBlogExecAction()
Method Detail

execute

public IActionResult execute(HttpServletRequest request,
                             HttpServletResponse response)
                      throws BlogunityException
Specified by:
execute in class AbstractAction
Parameters:
request -
response -
Returns:
Throws:
BlogunityException

deleteDir

public static boolean deleteDir(File dir)
Deletes all files and subdirectories under dir. Returns true if all deletions were successful. If a deletion fails, the method stops attempting to delete and returns false.

Parameters:
dir -
Returns:


Copyright (c)j2biz.com