- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file UserContents.java.
◆ getContents() [1/2]
Definition at line 45 of file UserContents.java.
static Set< IElephantUserContent > getContents(IConstructor constructor, IContact contact)
◆ getContents() [2/2]
Definition at line 49 of file UserContents.java.
50 if(contact ==
null || !contact.isValid())
return Collections.EMPTY_SET;
51 Set<IElephantUserContent>
set = (Set<IElephantUserContent>) constructor.getSessionAttribute(USER_CONTENT_CONTEXT + contact.getId());
52 if(fresh || (
set ==
null)) {
53 set = loadContents(contact);
54 constructor.setSessionAttribute(USER_CONTENT_CONTEXT + contact.getId(),
set);
◆ getTags()
static Set<String> org.turro.user.content.UserContents.getTags |
( |
IConstructor |
constructor, |
|
|
IContact |
contact |
|
) |
| |
|
static |
Definition at line 59 of file UserContents.java.
60 Set<String>
set =
new TreeSet<>();
61 for(IElephantUserContent euc :
getContents(constructor, contact)) {
62 if(!Strings.isBlank(euc.render(constructor))) {
63 set.addAll(euc.getTags());
◆ parseContents()
static String org.turro.user.content.UserContents.parseContents |
( |
IConstructor |
constructor | ) |
|
|
static |
Definition at line 40 of file UserContents.java.
41 ElephantMarker marker =
new ElephantMarker(constructor);
42 return marker.parse(
"widgets/user",
"userContent");
◆ reset() [1/2]
static void org.turro.user.content.UserContents.reset |
( |
| ) |
|
|
static |
Definition at line 69 of file UserContents.java.
70 reset(Application.getApplication().getConstructor(), (IContact) Application.getUser());
◆ reset() [2/2]
static void org.turro.user.content.UserContents.reset |
( |
IConstructor |
constructor, |
|
|
IContact |
contact |
|
) |
| |
|
static |
Definition at line 73 of file UserContents.java.
74 for(IElephantUserContent euc :
getContents(constructor, contact)) {
75 if(euc instanceof AbstractUserContent) {
76 ((AbstractUserContent) euc).reset();
The documentation for this class was generated from the following file: