BrightSide Workbench Full Report + Source Code
org.turro.elephant.configuration.SpaceUsageSelfSummary Class Reference
Inheritance diagram for org.turro.elephant.configuration.SpaceUsageSelfSummary:
Collaboration diagram for org.turro.elephant.configuration.SpaceUsageSelfSummary:

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

- 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)
 
- 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 46 of file SpaceUsageSelfSummary.java.

Member Function Documentation

◆ executePlugin()

void org.turro.elephant.configuration.SpaceUsageSelfSummary.executePlugin ( )
protected

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

Definition at line 49 of file SpaceUsageSelfSummary.java.

49  {
50  Application app = Application.getApplication();
51  if(app.isInRole("contact:all")) {
52  Clients.showBusy("Calculating usage...");
53  Plugins.execute("SpaceUsage", null);
54  Clients.clearBusy();
55  final File file = Files.file("/WEB-INF/space-usage.txt");
56  if(file.exists()) {
57  GroupboxArrow gba = new GroupboxArrow() {
58  @Override
59  protected void doFillContent() {
60  Label label = new Label(getFileContent(file));
61  label.setPre(true);
62  appendChild(label);
63  }
64  };
65  Hlayout hbox = new Hlayout();
66  gba.setCaption(hbox);
67  hbox.setSclass("z-valign-middle");
68  hbox.setValign("middle");
69  hbox.appendChild(new Image(Images.getImage("info")));
70  hbox.appendChild(LabelTypes.getSoftLabel("BaaS"));
71  gba.setOpen(false);
72  addResult("BaaS", gba);
73  }
74  }
75  }
Object addResult(String key, Object value)
Here is the call graph for this function:

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