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

Public Member Functions

String getName ()
 
boolean stopPropagating ()
 
void execute ()
 
- 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)
 

Additional Inherited Members

- 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 36 of file CurrentCompany.java.

Member Function Documentation

◆ execute()

void org.turro.financials.command.CurrentCompany.execute ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 49 of file CurrentCompany.java.

49  {
50  Company company = CompanyWrapper.getDefaultCompany();
51  if(company != null) {
52  addResult("company", company);
53  Set<Contract> departmentStores = new HashSet<>();
54  for(Headquarters headquarters : company.getHeadquarters()) {
55  for(Department department : headquarters.getDepartments()) {
56  departmentStores.addAll(department.getStores());
57  }
58  }
59  addResult("departmentStores", departmentStores);
60  }
61  }
Object addResult(String key, Object value)
Here is the call graph for this function:

◆ getName()

String org.turro.financials.command.CurrentCompany.getName ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 39 of file CurrentCompany.java.

39  {
40  return "CurrentCompany";
41  }

◆ stopPropagating()

boolean org.turro.financials.command.CurrentCompany.stopPropagating ( )

Reimplemented from org.turro.action.DefaultPlugin.

Definition at line 44 of file CurrentCompany.java.

44  {
45  return true;
46  }

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