1 package org.melati.admin.test;
2
3 import org.melati.Melati;
4 import org.melati.admin.AdminSpecialised;
5 import org.melati.admin.test.generated.UploadedFileBase;
6 import org.melati.template.MarkupLanguage;
7
8 /**
9 * Melati POEM generated, programmer modifiable stub
10 * for a <code>Persistent</code> <code>UploadedFile</code> object.
11 *
12 * <p>
13 * Description:
14 * A file uploaded by a user.
15 * </p>
16 *
17 * <table>
18 * <caption>
19 * Field summary for SQL table <code>UploadedFile</code>
20 * </caption>
21 * <tr><th>Name</th><th>Type</th><th>Description</th></tr>
22 * <tr><td> id </td><td> Integer </td><td> </td></tr>
23 * <tr><td> filename </td><td> String </td><td> The name of the file, as
24 * uploaded </td></tr>
25 * <tr><td> path </td><td> String </td><td> The full path to this file on the
26 * server </td></tr>
27 * <tr><td> description </td><td> String </td><td> A description of the file
28 * </td></tr>
29 * <tr><td> size </td><td> String </td><td> The size of this file </td></tr>
30 * <tr><td> when </td><td> Date </td><td> The date on which this file was
31 * uploaded </td></tr>
32 * <tr><td> uploadedby </td><td> User </td><td> The user who uploaded this
33 * file </td></tr>
34 * <tr><td> ownedby </td><td> User </td><td> The account to which this file
35 * belongs </td></tr>
36 * <tr><td> deleted </td><td> Boolean </td><td> Whether this file been
37 * deleted or not </td></tr>
38 * </table>
39 *
40 * See org.melati.poem.prepro.TableDef#generatePersistentJava
41 */
42 public class UploadedFile
43 extends UploadedFileBase
44 implements AdminSpecialised {
45
46 /**
47 * Constructor
48 * for a <code>Persistent</code> <code>UploadedFile</code> object.
49 * <p>
50 * Description:
51 * A file uploaded by a user.
52 * </p>
53 *
54 * See org.melati.poem.prepro.TableDef#generatePersistentJava
55 */
56 public UploadedFile() { }
57
58 // programmer's domain-specific code here
59
60 public String adminHandle(
61 Melati melatiContext,
62 MarkupLanguage markupLanguage)
63 throws Exception {
64 return null;
65 }
66
67 public String adminSpecialFacilities(
68 Melati melatiContext,
69 MarkupLanguage markupLanguage)
70 throws Exception {
71 return "org/melati/admin/test/UploadedFile-specials.wm";
72 }
73
74
75 }
76