| java.lang.Object biz.hammurapi.web.ActionsBase biz.hammurapi.web.FileActions
FileActions | public class FileActions extends ActionsBase (Code) | | Performs file operations
author: Pavel Vlasov |
Inner Class :public static class FileInfoEx extends FileInfoImpl | |
Inner Class :public static class DbFileEx extends DbFileImpl | |
Method Summary | |
public Object | actionInfo(HttpServletRequest request, HttpServletResponse response) | public void | create(HttpServletRequest request, HttpServletResponse response) Uploads file content to database (update). | public Object | delete(HttpServletRequest request, HttpServletResponse response) Deletes file from the databse. | public void | download(HttpServletRequest request, HttpServletResponse response, ActionServlet servlet, String path) Retrieves content of the file. | public void | get(HttpServletRequest request, HttpServletResponse response, ActionServlet servlet, String path) Retrieves content of the file. | public Object | getActions(HttpServletRequest request, HttpServletResponse response) | public Object | getAsText(HttpServletRequest request, HttpServletResponse response) | public Object | getCreateFileTypes(HttpServletRequest request, HttpServletResponse response) | protected static FileEngine | getEngine(HttpServletRequest request) | public Object | getInfo(HttpServletRequest request, HttpServletResponse response) Returns file info by ID parameter or ownerId and ownerType parameters. | public Object | performAction(HttpServletRequest request, HttpServletResponse response) Performs action on a file. | public Object | redirectTo(HttpServletRequest request, HttpServletResponse response) | public void | update(HttpServletRequest request, HttpServletResponse response) Uploads file content to database (update). |
ACTION_INFO_PREFIX | final public static String ACTION_INFO_PREFIX(Code) | | 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
|
ROOT_CONTENT_TYPE | final public static String ROOT_CONTENT_TYPE(Code) | | |
Methods inherited from biz.hammurapi.web.ActionsBase | protected static Object getGlobal(HttpServletRequest request, String name)(Code)(Java Doc) protected Menu getMatched(HttpServletRequest request)(Code)(Java Doc) protected Menu getMenu(HttpServletRequest request)(Code)(Java Doc) public static String getReferrer(HttpServletRequest request)(Code)(Java Doc) protected Object getRemoted(HttpServletRequest request, HttpServletResponse response, String name)(Code)(Java Doc) protected String getUid()(Code)(Java Doc) protected boolean hasPermission(HttpServletRequest request, Class clazz, String action)(Code)(Java Doc) protected static boolean includeThisInPath(HttpServletRequest request)(Code)(Java Doc) public void invoke(HttpServletRequest request, HttpServletResponse response) throws IOException(Code)(Java Doc) public static boolean isBlank(String str)(Code)(Java Doc) public void java(HttpServletRequest request, HttpServletResponse response, ActionServlet servlet) throws IOException(Code)(Java Doc) public DomSerializable request2xml(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected void setReferrer(HttpServletRequest request, Attributable target)(Code)(Java Doc) public Object sql(HttpServletRequest request, HttpServletResponse response, ActionServlet servlet) throws IOException(Code)(Java Doc)
|
|
|