|
void | service (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException |
|
Object | doGet (Path path) throws QueryException |
|
URL | doPost (Path path, Object value) throws QueryException |
|
Serializer<?> | createSerializer (Path path) |
|
◆ createSerializer()
Serializer<?> org.turro.pivot.servlet.PivotServices.createSerializer |
( |
Path |
path | ) |
|
|
protected |
Definition at line 130 of file PivotServices.java.
131 if(
"/upload".equals(path.toString()) ||
"/download".equals(path.toString())) {
132 return new FileSerializer();
134 return new BinarySerializer();
◆ doGet()
Object org.turro.pivot.servlet.PivotServices.doGet |
( |
Path |
path | ) |
throws QueryException |
|
protected |
Definition at line 50 of file PivotServices.java.
51 if(
"/queryFolders".equals(path.toString())) {
52 return new ArrayList<String>(
new ListAdapter(AttachWd.queryFolders(
53 getParameters().
get(
"path"),
54 getParameters().
get(
"user"))));
55 }
else if (
"/queryFiles".equals(path.toString())) {
56 return new ArrayList<ServerFile>(
new ListAdapter<ServerFile>(AttachWd.queryVersionedAttachments(
57 getParameters().
get(
"path"),
58 getParameters().
get(
"user"))));
59 }
else if (
"/download".equals(path.toString())) {
60 return AttachWd.convertToFile(
61 getParameters().
get(
"path"),
62 getParameters().
get(
"fileName"),
63 getParameters().
get(
"user"),
64 "true".equals(getParameters().
get(
"forEditing")));
65 }
else if (
"/unlock".equals(path.toString())) {
66 return AttachWd.unlockFile(
67 getParameters().
get(
"path"),
68 getParameters().
get(
"fileName"),
69 getParameters().
get(
"user"));
◆ doPost()
URL org.turro.pivot.servlet.PivotServices.doPost |
( |
Path |
path, |
|
|
Object |
value |
|
) |
| throws QueryException |
|
protected |
Definition at line 114 of file PivotServices.java.
115 if(
"/upload".equals(path.toString())) {
116 AttachWd.saveFromFile((File) value,
117 getParameters().
get(
"fileName"),
118 getParameters().
get(
"fileDate"),
119 getParameters().
get(
"path"),
120 getParameters().
get(
"user"),
121 getParameters().
get(
"comment"),
122 "true".equals(getParameters().
get(
"lock")),
◆ service()
void org.turro.pivot.servlet.PivotServices.service |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws IOException, ServletException |
|
protected |
Definition at line 44 of file PivotServices.java.
45 request.setAttribute(
"el_app",
new ElephantApplication(request, response));
46 super.service(request, response);
The documentation for this class was generated from the following file: