BrightSide Workbench Full Report + Source Code
org.turro.contacts.command.RegisterSelfSummary Class Reference
Inheritance diagram for org.turro.contacts.command.RegisterSelfSummary:
Collaboration diagram for org.turro.contacts.command.RegisterSelfSummary:

Public Member Functions

void loadRegister ()
 
- Public Member Functions inherited from org.turro.plugin.command.SelfSummaryPlugin
 SelfSummaryPlugin ()
 
 SelfSummaryPlugin ()
 
- Public Member Functions inherited from org.turro.plugin.command.SummaryPlugin
 SummaryPlugin (String name)
 
String getName ()
 
boolean stopPropagating ()
 
void execute ()
 
 SummaryPlugin (String name)
 
String getName ()
 
boolean stopsPropagating ()
 
void setParams (Object params)
 
Object execute (Context context)
 
- Public Member Functions inherited from org.turro.action.DefaultPlugin
void setContext (Map< String, Object > params, Map< String, Object > results)
 
Object getParam (String key)
 
boolean itsMe (String name)
 
Object addResult (String key, Object value)
 

Protected Member Functions

void executePlugin ()
 
- Protected Member Functions inherited from org.turro.plugin.command.SummaryPlugin
void addToResult (Object data)
 
abstract void executePlugin (Context context) throws Exception
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.plugin.command.SelfSummaryPlugin
static Collection< Object > getSummaryFor (IContact contact)
 
static Collection< Object > getSummaryFor (Application app, IContact contact)
 
- Static Public Member Functions inherited from org.turro.plugin.command.SummaryPlugin
static Collection< Object > getSummaryFor (IContact contact, String name)
 
static Collection< Object > getSummaryFor (Application app, IContact contact, String name)
 
- Static Public Attributes inherited from org.turro.plugin.command.SelfSummaryPlugin
static final String NAME = "SelfSummary"
 
- Protected Attributes inherited from org.turro.plugin.command.SummaryPlugin
String name
 
IContact contact
 
Collection< Object > result
 
- Protected Attributes inherited from org.turro.action.DefaultPlugin
Map< String, Object > params
 
Map< String, Object > results
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 41 of file RegisterSelfSummary.java.

Member Function Documentation

◆ executePlugin()

void org.turro.contacts.command.RegisterSelfSummary.executePlugin ( )
protected

Reimplemented from org.turro.plugin.command.SummaryPlugin.

Definition at line 46 of file RegisterSelfSummary.java.

46  {
47  Application app = Application.getApplication();
48  if(app.isInRole("contact:log")) {
49  GroupboxArrow gba = new GroupboxArrow() {
50  @Override
51  protected void doFillContent() {
52  loadRegister();
53  CrossTabRegisterByUserGrid crossTab = new CrossTabRegisterByUserGrid(register);
54  appendChild(crossTab);
55  }
56  };
57  Hlayout hbox = new Hlayout();
58  gba.setCaption(hbox);
59  hbox.setSclass("z-valign-middle");
60  hbox.setValign("middle");
61  hbox.appendChild(new Image(Images.getImage("log")));
62  hbox.appendChild(LabelTypes.getSoftLabel(I_.get("Log")));
63  hbox.appendChild(new Space());
64  gba.setOpen(false);
65  addResult("register", gba);
66  }
67  }
Object addResult(String key, Object value)
Here is the call graph for this function:

◆ loadRegister()

void org.turro.contacts.command.RegisterSelfSummary.loadRegister ( )

Definition at line 69 of file RegisterSelfSummary.java.

69  {
70  Collection<ILogRegister> regs = LogUtil.load(null, null, LogUtil.GROUP_USER, null);
71  regs.addAll(LogUtil.loadLogin());
72  register = new CrossTabRegisterByUser();
73  register.addRegisters(regs);
74  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: