net.sourceforge.crudo.gen.file
Class FolderSetup

java.lang.Object
  extended by net.sourceforge.crudo.gen.file.FolderSetup
All Implemented Interfaces:
CrudoConstants, IActionCommand

public class FolderSetup
extends java.lang.Object
implements IActionCommand


Field Summary
static java.lang.String FILE_EXTENSION
           
static java.lang.String STYLE_FILE_NAME
           
static java.lang.String TEMPLATE_FILE_NAME
           
 
Fields inherited from interface net.sourceforge.crudo.action.CrudoConstants
BASE_FOLDER, ENTITY, FACES_CONFIG_FILE, PAGE_NAME
 
Constructor Summary
FolderSetup()
           
 
Method Summary
protected  boolean baseFolderExists()
           
 void createBaseFolder()
           
 void createFunctionFolder()
           
 void createTemplate()
           
 void execute(java.util.Map<java.lang.String,java.lang.Object> context)
           
protected  boolean functionFolderExists()
           
protected  boolean functionViewExists()
           
 java.lang.String getBaseFolderName()
           
 java.lang.String getFunctionName()
           
 void setBaseFolderName(java.lang.String baseFolderName)
           
 void setFunctionName(java.lang.String functionName)
           
protected  boolean styleExists()
           
protected  boolean templateExists()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_FILE_NAME

public static final java.lang.String TEMPLATE_FILE_NAME
See Also:
Constant Field Values

STYLE_FILE_NAME

public static final java.lang.String STYLE_FILE_NAME
See Also:
Constant Field Values

FILE_EXTENSION

public static final java.lang.String FILE_EXTENSION
See Also:
Constant Field Values
Constructor Detail

FolderSetup

public FolderSetup()
Method Detail

execute

public void execute(java.util.Map<java.lang.String,java.lang.Object> context)
             throws java.lang.Exception
Specified by:
execute in interface IActionCommand
Throws:
java.lang.Exception

baseFolderExists

protected boolean baseFolderExists()

templateExists

protected boolean templateExists()

styleExists

protected boolean styleExists()

functionFolderExists

protected boolean functionFolderExists()

functionViewExists

protected boolean functionViewExists()

createBaseFolder

public void createBaseFolder()
                      throws java.io.IOException
Throws:
java.io.IOException

createTemplate

public void createTemplate()
                    throws java.lang.Exception
Throws:
java.lang.Exception

createFunctionFolder

public void createFunctionFolder()
                          throws java.io.IOException
Throws:
java.io.IOException

getBaseFolderName

public java.lang.String getBaseFolderName()

setBaseFolderName

public void setBaseFolderName(java.lang.String baseFolderName)

getFunctionName

public java.lang.String getFunctionName()

setFunctionName

public void setFunctionName(java.lang.String functionName)