|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbiz.hammurapi.web.ActionsBase
biz.hammurapi.web.FileActions
Performs file operations
| Nested Class Summary | |
static class |
FileActions.DbFileEx
|
static class |
FileActions.FileInfoEx
|
| Nested classes inherited from class biz.hammurapi.web.ActionsBase |
ActionsBase.ErrorMessage |
| Field Summary | |
static java.lang.String |
ACTION_ID
|
static java.lang.String |
ACTION_INFO_PREFIX
Parameters and referrers of file actions are stored in session under keys ACTION_INFO_PREFIX<invocation id; Info is an object array with first element being a map of parameters and the second being referrer if any |
static java.lang.String |
ROOT_CONTENT_TYPE
|
| Fields inherited from class biz.hammurapi.web.ActionsBase |
compositeDomSerializer, converter, REFERRER_HEADER |
| Constructor Summary | |
FileActions()
|
|
| Method Summary | |
java.lang.Object |
actionInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns action info by actionId parameter and also request parameters |
void |
create(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Uploads file content to database (update). |
java.lang.Object |
delete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deletes file from the databse. |
void |
download(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionServlet servlet,
java.lang.String path)
Retrieves content of the file. |
void |
get(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionServlet servlet,
java.lang.String path)
Retrieves content of the file. |
java.lang.Object |
getActions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns a list of actions available for a given file or file type |
java.lang.Object |
getAsText(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns file record with content as text |
java.lang.Object |
getCreateFileTypes(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected static biz.hammurapi.web.file.sql.FileEngine |
getEngine(javax.servlet.http.HttpServletRequest request)
|
java.lang.Object |
getInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns file info by ID parameter or ownerId and ownerType parameters. |
java.lang.Object |
performAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs action on a file. |
java.lang.Object |
redirectTo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns file record with content as text |
void |
update(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Uploads file content to database (update). |
| Methods inherited from class biz.hammurapi.web.ActionsBase |
getGlobal, getMatched, getMenu, getReferrer, getRemoted, getUid, hasPermission, includeThisInPath, invoke, isBlank, java, request2xml, setReferrer, sql |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ACTION_ID
public static final java.lang.String ROOT_CONTENT_TYPE
public static final java.lang.String ACTION_INFO_PREFIX
| Constructor Detail |
public FileActions()
| Method Detail |
protected static biz.hammurapi.web.file.sql.FileEngine getEngine(javax.servlet.http.HttpServletRequest request)
public void download(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionServlet servlet,
java.lang.String path)
throws java.io.IOException,
java.sql.SQLException
request - response -
java.io.IOException
java.sql.SQLException
public void get(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionServlet servlet,
java.lang.String path)
throws java.io.IOException,
java.sql.SQLException
request - response -
java.io.IOException
java.sql.SQLException
public void update(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
request - response -
java.io.IOException
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
org.apache.commons.fileupload.FileUploadException
HammurapiWebException
java.security.NoSuchAlgorithmException
java.lang.Exception
public void create(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
java.sql.SQLException,
biz.hammurapi.config.ConfigurationException,
org.apache.commons.fileupload.FileUploadException,
HammurapiWebException
request - response -
java.io.IOException
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
org.apache.commons.fileupload.FileUploadException
HammurapiWebException
public java.lang.Object getInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.sql.SQLException,
biz.hammurapi.config.ConfigurationException
request - response -
java.sql.SQLException
biz.hammurapi.config.ConfigurationException
public java.lang.Object getAsText(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object redirectTo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object delete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.sql.SQLException
request - Shall have ID parameter.response -
java.sql.SQLException
public java.lang.Object performAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.sql.SQLException
request - Parameters ID, actionresponse -
java.sql.SQLException
public java.lang.Object getCreateFileTypes(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - response -
public java.lang.Object getActions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.sql.SQLException,
HammurapiWebException
request - Parameters ID of fileTyperesponse -
java.sql.SQLException
HammurapiWebException
public java.lang.Object actionInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - response -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||