com.j2biz.blogunity.web.actions.secure.blog.resources
Class CreateResourceDirectoryAction

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.resources.BlogResourceAction
              extended bycom.j2biz.blogunity.web.actions.secure.blog.resources.CreateResourceDirectoryAction
Direct Known Subclasses:
CreateFilesDirectoryAction, CreateImagesDirectoryAction

public abstract class CreateResourceDirectoryAction
extends BlogResourceAction

Since:
0.1
Author:
michelson

Field Summary
protected  String path
           
 
Fields inherited from class com.j2biz.blogunity.web.actions.secure.blog.resources.BlogResourceAction
FILE, IMAGE, LOG
 
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
CreateResourceDirectoryAction()
           
 
Method Summary
 IActionResult execute(HttpServletRequest request, HttpServletResponse response)
           
protected  Blog getBlog()
           
 boolean isValidDirectoryName(String name)
           
protected  IActionResult returnErrorForward(HttpServletRequest request, HttpServletResponse response, FormErrorList errors, Blog blog)
           
 
Methods inherited from class com.j2biz.blogunity.web.actions.secure.blog.resources.BlogResourceAction
getDirectoryFQN, getErrorForward, getFiles, getResourceType, getSuccessForward, getSuccessRedirect
 
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
 

Field Detail

path

protected String path
Constructor Detail

CreateResourceDirectoryAction

public CreateResourceDirectoryAction()
Method Detail

getBlog

protected Blog getBlog()
Specified by:
getBlog in class BlogResourceAction

execute

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

returnErrorForward

protected IActionResult returnErrorForward(HttpServletRequest request,
                                           HttpServletResponse response,
                                           FormErrorList errors,
                                           Blog blog)
                                    throws BlogunityException
Throws:
BlogunityException

isValidDirectoryName

public boolean isValidDirectoryName(String name)


Copyright (c)j2biz.com