BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.repository.RepositoryAction Class Reference
Inheritance diagram for org.turro.elephant.impl.repository.RepositoryAction:
Collaboration diagram for org.turro.elephant.impl.repository.RepositoryAction:

Public Member Functions

 RepositoryAction ()
 
int execute () throws Exception
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractAction
 AbstractAction ()
 
void setConstructor (IConstructor constructor)
 
IConstructor getConstructor ()
 
String getContextParameter ()
 
String getIdelParameter ()
 
String getActionParameter ()
 
String getParameter (String param)
 
String getParameter (String param, boolean encode)
 
String getStringParameter (String param)
 
String getValueParameter (String param)
 
boolean getBooleanParameter (String param)
 
int getIntParameter (String param, int defaultValue)
 
double getDoubleParameter (String param, double defaultValue)
 
Date getDateParameter (String param, Date defaultValue)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractAction
static String makeDateParameter (Date date)
 
static String makeDateParameter (Timestamp date)
 
static String getValuePortion (String key, String value)
 
- Static Public Attributes inherited from org.turro.elephant.context.IAction
static final int DONE = 0
 
static final int NO_DATA = 1
 
static final int ERROR = 2
 
- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractAction
IConstructor constructor
 

Detailed Description

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

Definition at line 27 of file RepositoryAction.java.

Constructor & Destructor Documentation

◆ RepositoryAction()

org.turro.elephant.impl.repository.RepositoryAction.RepositoryAction ( )

Creates a new instance of RepositoryAction

Definition at line 30 of file RepositoryAction.java.

30  {
31  }

Member Function Documentation

◆ execute()

int org.turro.elephant.impl.repository.RepositoryAction.execute ( ) throws Exception

Called by constructor in request for one action.

Exceptions
java.lang.Exception
Returns
Action's result.

Implements org.turro.elephant.context.IAction.

Definition at line 34 of file RepositoryAction.java.

34  {
35  String folder = getParameter("folder"),
36  file = getParameter("file"),
37  action = getActionParameter(),
38  ctx = getParameter("context");
39 
40  if("delete".equals(action)) {
41  RepositoryBean repository = new RepositoryBean();
42  repository.setConstructor(constructor);
43  repository.setContext(ctx);
44  repository.setSubFolder(folder);
45  repository.deleteFile(file);
47  RepositoryBean.REPOSITORY_JSP +
48  "?context=" + ctx + "&folder=" + folder);
49  return IAction.DONE;
50  }
51  return IAction.NO_DATA;
52  }
String getParameter(String param)
Here is the call graph for this function:

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