BrightSide Workbench Full Report + Source Code
org.turro.file.FolderFile Class Reference
Inheritance diagram for org.turro.file.FolderFile:
Collaboration diagram for org.turro.file.FolderFile:

Public Member Functions

 FolderFile (File file)
 
void zip () throws IOException
 
- Public Member Functions inherited from org.turro.file.FileWrapper
 FileWrapper (File file)
 
File getFile ()
 
String getBaseName ()
 
String getExtension ()
 
List< FileActiongetActions ()
 
FileAction getAction (String label)
 
Properties getProperties () throws FileNotFoundException, IOException
 
FileItem getFileItem ()
 
void setFileItem (FileItem fileItem)
 
void delete ()
 
void copyTo (File destination) throws IOException
 
void download ()
 
void upload (final Command command)
 
void uploadContent (final Command command)
 

Static Public Member Functions

static boolean isMyType (File file)
 
- Static Public Member Functions inherited from org.turro.file.FileWrapper
static FileWrapper getFileByType (File file)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.file.FileWrapper
File file
 
FileItem fileItem
 
PropertiesFile propertiesFile
 
List< FileActionactions
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file FolderFile.java.

Constructor & Destructor Documentation

◆ FolderFile()

org.turro.file.FolderFile.FolderFile ( File  file)

Definition at line 34 of file FolderFile.java.

34  {
35  super(file);
36  actions.add(new AddFolderAction(this));
37  actions.add(new ZipAction(this));
38  if(!file.getAbsolutePath().contains("WEB-INF")) {
39  actions.add(new GalleryAction(this));
40  }
41  //actions.add(new SynchronizeAction(this));
42  actions.add(new RefreshAction());
43  }
List< FileAction > actions

Member Function Documentation

◆ isMyType()

static boolean org.turro.file.FolderFile.isMyType ( File  file)
static

Definition at line 50 of file FolderFile.java.

50  {
51  if(!file.exists()) {
52  file.mkdirs();
53  }
54  return file.isDirectory();
55  }
Here is the caller graph for this function:

◆ zip()

void org.turro.file.FolderFile.zip ( ) throws IOException

Definition at line 45 of file FolderFile.java.

45  {
46  String newZip = file.getAbsolutePath() + "/" + file.getName() + ".zip";
47  new Zipper().goOn(newZip, file.getAbsolutePath());
48  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: