Class AixFlowAction2
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.plugin.ai.aixflow.action.AixFlowAction2
-
Field Summary
Fields inherited from class org.bgerp.action.base.BaseAction
l, log, MAPPER, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setup
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, types
Fields inherited from class org.apache.struts.actions.BaseAction
messages
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForward
deleteFile
(DynActionForm form, ConnectionSet conSet) Deletes a file from the system.org.apache.struts.action.ActionForward
deleteTask
(DynActionForm form, ConnectionSet conSet) Deletes a task from n8n and from the databaseorg.apache.struts.action.ActionForward
listAllN8nTasks
(DynActionForm form, ConnectionSet conSet) Lists all n8n tasks with optional filteringorg.apache.struts.action.ActionForward
listFiles
(DynActionForm form, ConnectionSet conSet) Lists files saved in the database.org.apache.struts.action.ActionForward
listN8nTasks
(DynActionForm form, ConnectionSet conSet) Lists n8n tasks for a fileorg.apache.struts.action.ActionForward
n8nCallback
(DynActionForm form, ConnectionSet conSet) Handles a callback from n8n with task resultsorg.apache.struts.action.ActionForward
point3
(DynActionForm form, ConnectionSet conSet) Handles the point3.jsp page requestorg.apache.struts.action.ActionForward
requestTaskData
(DynActionForm form, ConnectionSet conSet) Requests task data from n8norg.apache.struts.action.ActionForward
saveFiles
(DynActionForm form, ConnectionSet conSet) Saves temporary files to permanent storage using FileDataDAO.org.apache.struts.action.ActionForward
searchFiles
(DynActionForm form, ConnectionSet conSet) Searches for files by name.org.apache.struts.action.ActionForward
sendFileToN8n
(DynActionForm form, ConnectionSet conSet) Sends a file to n8n for decryptionorg.apache.struts.action.ActionForward
unspecified
(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class org.bgerp.action.base.BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, updatePersonalization
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecified
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
AixFlowAction2
public AixFlowAction2()
-
-
Method Details
-
unspecified
public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception Description copied from class:BaseAction
Default action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecified
in classBaseAction
- Parameters:
form
-conSet
-- Returns:
- Throws:
Exception
-
point3
public org.apache.struts.action.ActionForward point3(DynActionForm form, ConnectionSet conSet) throws Exception Handles the point3.jsp page request- Parameters:
form
- the formconSet
- the connection set- Returns:
- the point3.jsp page
- Throws:
Exception
- if an error occurs
-
saveFiles
public org.apache.struts.action.ActionForward saveFiles(DynActionForm form, ConnectionSet conSet) throws Exception Saves temporary files to permanent storage using FileDataDAO.- Parameters:
form
- the form with temporary file IDsconSet
- the connection set- Returns:
- JSON response
- Throws:
Exception
- if an error occurs
-
listFiles
public org.apache.struts.action.ActionForward listFiles(DynActionForm form, ConnectionSet conSet) throws Exception Lists files saved in the database.- Parameters:
form
- the formconSet
- the connection set- Returns:
- JSON response with list of files
- Throws:
Exception
- if an error occurs
-
searchFiles
public org.apache.struts.action.ActionForward searchFiles(DynActionForm form, ConnectionSet conSet) throws Exception Searches for files by name.- Parameters:
form
- the formconSet
- the connection set- Returns:
- JSON response with search results
- Throws:
Exception
- if an error occurs
-
deleteFile
public org.apache.struts.action.ActionForward deleteFile(DynActionForm form, ConnectionSet conSet) throws Exception Deletes a file from the system.- Parameters:
form
- the form with file ID and secretconSet
- the connection set- Returns:
- JSON response
- Throws:
Exception
- if an error occurs
-
sendFileToN8n
public org.apache.struts.action.ActionForward sendFileToN8n(DynActionForm form, ConnectionSet conSet) throws Exception Sends a file to n8n for decryption- Parameters:
form
- the form with file ID and secretconSet
- the connection set- Returns:
- JSON response
- Throws:
Exception
- if an error occurs
-
n8nCallback
public org.apache.struts.action.ActionForward n8nCallback(DynActionForm form, ConnectionSet conSet) throws Exception Handles a callback from n8n with task results- Parameters:
form
- the form with task ID, status, result, and error messageconSet
- the connection set- Returns:
- JSON response
- Throws:
Exception
- if an error occurs
-
listN8nTasks
public org.apache.struts.action.ActionForward listN8nTasks(DynActionForm form, ConnectionSet conSet) throws Exception Lists n8n tasks for a file- Parameters:
form
- the form with file IDconSet
- the connection set- Returns:
- JSON response with list of tasks
- Throws:
Exception
- if an error occurs
-
listAllN8nTasks
public org.apache.struts.action.ActionForward listAllN8nTasks(DynActionForm form, ConnectionSet conSet) throws Exception Lists all n8n tasks with optional filtering- Parameters:
form
- the form with optional status filter and limitconSet
- the connection set- Returns:
- JSON response with list of tasks
- Throws:
Exception
- if an error occurs
-
requestTaskData
public org.apache.struts.action.ActionForward requestTaskData(DynActionForm form, ConnectionSet conSet) throws Exception Requests task data from n8n- Parameters:
form
- the form with task IDconSet
- the connection set- Returns:
- JSON response with task data
- Throws:
Exception
- if an error occurs
-
deleteTask
public org.apache.struts.action.ActionForward deleteTask(DynActionForm form, ConnectionSet conSet) throws Exception Deletes a task from n8n and from the database- Parameters:
form
- the form with task IDconSet
- the connection set- Returns:
- JSON response
- Throws:
Exception
- if an error occurs
-