|
static void | saveValues (Collection< Grouped > values) |
|
static void | setSelectedGroup (IConstructor constructor, String pathOrigin, String value) |
|
static String | getSelectedGroup (IConstructor constructor, String pathOrigin) |
|
static void | setCategory (IConstructor constructor, String pathOrigin, String value) |
|
static String | getCategory (IConstructor constructor, String pathOrigin) |
|
static Collection< String > | getPathsFromGroup (String path, String selectedGroup, String selectedCategory) |
|
static Collection< String > | getPathsFromGroup (String path, String selectedGroup, String selectedCategory, boolean exact) |
|
static Collection< String > | getPathsFromCategory (String path, String category) |
|
static FieldItSet | getFields (String entityPath) |
|
static ValueItSet | getValues (String entityPath) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file GroupItUtil.java.
◆ getCategory()
static String org.turro.groupit.GroupItUtil.getCategory |
( |
IConstructor |
constructor, |
|
|
String |
pathOrigin |
|
) |
| |
|
static |
Definition at line 65 of file GroupItUtil.java.
66 return (String) constructor.getSessionAttribute(pathOrigin +
"-selected-category");
◆ getFields()
static FieldItSet org.turro.groupit.GroupItUtil.getFields |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 81 of file GroupItUtil.java.
82 Collection<Grouped> groups = Grouped.groups(entityPath);
83 FieldItSet fis =
new FieldItSet();
84 for(Grouped g : groups) {
85 fis.addAll(g.getParent().fields());
◆ getPathsFromCategory()
static Collection<String> org.turro.groupit.GroupItUtil.getPathsFromCategory |
( |
String |
path, |
|
|
String |
category |
|
) |
| |
|
static |
Definition at line 77 of file GroupItUtil.java.
78 return Grouped.pathsFromCategory(path, category);
◆ getPathsFromGroup() [1/2]
static Collection<String> org.turro.groupit.GroupItUtil.getPathsFromGroup |
( |
String |
path, |
|
|
String |
selectedGroup, |
|
|
String |
selectedCategory |
|
) |
| |
|
static |
Definition at line 69 of file GroupItUtil.java.
static Collection< String > getPathsFromGroup(String path, String selectedGroup, String selectedCategory)
◆ getPathsFromGroup() [2/2]
static Collection<String> org.turro.groupit.GroupItUtil.getPathsFromGroup |
( |
String |
path, |
|
|
String |
selectedGroup, |
|
|
String |
selectedCategory, |
|
|
boolean |
exact |
|
) |
| |
|
static |
Definition at line 73 of file GroupItUtil.java.
74 return Grouped.paths(path, selectedGroup, selectedCategory, exact);
◆ getSelectedGroup()
static String org.turro.groupit.GroupItUtil.getSelectedGroup |
( |
IConstructor |
constructor, |
|
|
String |
pathOrigin |
|
) |
| |
|
static |
Definition at line 55 of file GroupItUtil.java.
56 return (String) constructor.getSessionAttribute(pathOrigin +
"-selected-group");
◆ getValues()
static ValueItSet org.turro.groupit.GroupItUtil.getValues |
( |
String |
entityPath | ) |
|
|
static |
Definition at line 90 of file GroupItUtil.java.
91 ValueItSet vis =
new ValueItSet();
93 vis.add(FieldItUtil.value(fi, entityPath));
static FieldItSet getFields(String entityPath)
◆ saveValues()
static void org.turro.groupit.GroupItUtil.saveValues |
( |
Collection< Grouped > |
values | ) |
|
|
static |
Definition at line 38 of file GroupItUtil.java.
39 Dao dao =
new ContactsPU();
40 for(Grouped v : values) {
43 }
else if(!Strings.isBlank(v.getId())) {
◆ setCategory()
static void org.turro.groupit.GroupItUtil.setCategory |
( |
IConstructor |
constructor, |
|
|
String |
pathOrigin, |
|
|
String |
value |
|
) |
| |
|
static |
Definition at line 59 of file GroupItUtil.java.
61 constructor.setSessionAttribute(pathOrigin +
"-selected-category", value);
◆ setSelectedGroup()
static void org.turro.groupit.GroupItUtil.setSelectedGroup |
( |
IConstructor |
constructor, |
|
|
String |
pathOrigin, |
|
|
String |
value |
|
) |
| |
|
static |
Definition at line 49 of file GroupItUtil.java.
51 constructor.setSessionAttribute(pathOrigin +
"-selected-group", value);
The documentation for this class was generated from the following file: