1
2
3
4 package org.asyrinx.joey.gui;
5
6 import java.io.Serializable;
7 import java.util.List;
8
9 import org.asyrinx.joey.om.EntityService;
10 import org.asyrinx.joey.om.EntityServiceManager;
11 import org.asyrinx.joey.om.SearchCondition;
12
13 /***
14 * @author akima
15 */
16 public interface EntityViewManager {
17
18 public EntityServiceManager getEntityServiceManager();
19
20 /***
21 *
22 * @param invoker
23 * @param entityClass
24 * @return
25 */
26 public EntityEditView getDetailEditView(Object invoker, Class entityClass);
27
28 /***
29 *
30 * @param invoker
31 * @param entityClass
32 * @return
33 */
34 public EntityListView getSelectionListView(
35 Object invoker,
36 Class entityClass);
37
38 /***
39 *
40 * @param invoker
41 * @param entity
42 * @param onSave
43 * @return
44 */
45 public EntityEditView showDetailEditView(Object invoker, Object entity);
46
47 /***
48 *
49 * @param invoker
50 * @param entityClass
51 * @param entityKey
52 * @return
53 */
54 public EntityEditView showDetailEditView(
55 Object invoker,
56 Class entityClass,
57 Serializable entityKey);
58
59 /***
60 *
61 * @param invoker
62 * @param entityClass
63 * @param entityKey
64 * @param finder
65 * @return
66 */
67 public EntityEditView showDetailEditView(
68 Object invoker,
69 Class entityClass,
70 Serializable entityKey,
71 final EntityService finder);
72
73 /***
74 *
75 * @param invoker
76 * @param entityClass
77 * @param selectedEntityKey
78 * @param entities
79 * @return
80 */
81 public EntityListView showSelectionListView(
82 Object invoker,
83 Class entityClass,
84 List entities,
85 Serializable selectedEntityKey);
86
87 /***
88 *
89 * @param invoker
90 * @param entityClass
91 * @param condition
92 * @param selectedEntityKey
93 * @return
94 */
95 public EntityListView showSelectionListView(
96 Object invoker,
97 Class entityClass,
98 SearchCondition condition,
99 Serializable selectedEntityKey);
100
101 /***
102 *
103 * @param invoker
104 * @param entityClass
105 * @param condition
106 * @param selectedEntityKey
107 * @param finder
108 * @return
109 */
110 public EntityListView showSelectionListView(
111 Object invoker,
112 Class entityClass,
113 SearchCondition condition,
114 Serializable selectedEntityKey,
115 EntityService finder);
116 }