◆ getAttribute() [1/2]
static Object org.turro.action.UserSummaries.getAttribute |
( |
String |
attribute | ) |
|
|
static |
Definition at line 78 of file UserSummaries.java.
79 return Application.getApplication().getConstructor().findAttribute(
"us_" + attribute);
◆ getAttribute() [2/2]
static Object org.turro.action.UserSummaries.getAttribute |
( |
String |
attribute, |
|
|
Object |
defaultValue |
|
) |
| |
|
static |
Definition at line 82 of file UserSummaries.java.
83 Object value = Application.getApplication().getConstructor().findAttribute(
"us_" + attribute);
84 return value ==
null ? defaultValue : value;
◆ getAttributes()
static Map<String, Object> org.turro.action.UserSummaries.getAttributes |
( |
| ) |
|
|
static |
Definition at line 91 of file UserSummaries.java.
92 return Application.getApplication().getConstructor().getSessionAttributeMap(
"us_");
◆ initSummaries()
static void org.turro.action.UserSummaries.initSummaries |
( |
IConstructor |
constructor | ) |
|
|
static |
Definition at line 37 of file UserSummaries.java.
38 for(IUserSummary iSummary : getSortedSummaries()) {
39 iSummary.init(constructor);
◆ isNotZero()
static boolean org.turro.action.UserSummaries.isNotZero |
( |
String |
attribute | ) |
|
|
static |
Definition at line 62 of file UserSummaries.java.
63 Object attr = Application.getApplication().getConstructor().findAttribute(
"us_" + attribute);
64 if(attr instanceof Number) {
65 return ((Number) attr).doubleValue() != 0.0;
◆ isTrue()
static boolean org.turro.action.UserSummaries.isTrue |
( |
String |
attribute | ) |
|
|
static |
Definition at line 70 of file UserSummaries.java.
71 Object attr = Application.getApplication().getConstructor().findAttribute(
"us_" + attribute);
72 if(attr instanceof Boolean) {
73 return ((Boolean) attr).booleanValue();
◆ parseSummaries()
static String org.turro.action.UserSummaries.parseSummaries |
( |
IConstructor |
constructor | ) |
|
|
static |
Definition at line 43 of file UserSummaries.java.
45 String prevSummary =
null, separator = renderSeparator(constructor);
46 StringBuilder sb =
new StringBuilder();
47 for(IUserSummary iSummary : getSortedSummaries()) {
48 String summary = iSummary.render(constructor);
49 if(!Strings.isBlank(summary)) {
50 if(!Strings.isBlank(prevSummary)) {
54 prevSummary = summary;
static void initSummaries(IConstructor constructor)
◆ removeAttributes()
static void org.turro.action.UserSummaries.removeAttributes |
( |
| ) |
|
|
static |
Definition at line 95 of file UserSummaries.java.
97 Application.getApplication().getConstructor().removeSessionAttribute(
"us_" + key);
static Map< String, Object > getAttributes()
◆ setAttribute()
static void org.turro.action.UserSummaries.setAttribute |
( |
String |
attribute, |
|
|
Object |
value |
|
) |
| |
|
static |
Definition at line 87 of file UserSummaries.java.
88 Application.getApplication().getConstructor().setSessionAttribute(
"us_" + attribute, value);
The documentation for this class was generated from the following file: