19 package org.turro.financials.command;
21 import java.util.HashSet;
23 import org.turro.action.DefaultPlugin;
24 import org.turro.annotation.ElephantPlugin;
25 import org.turro.financials.entity.Company;
26 import org.turro.financials.entity.Contract;
27 import org.turro.financials.entity.Department;
28 import org.turro.financials.entity.Headquarters;
29 import org.turro.financials.model.business.CompanyWrapper;
40 return "CurrentCompany";
53 Set<Contract> departmentStores =
new HashSet<>();
55 for(
Department department : headquarters.getDepartments()) {
56 departmentStores.addAll(department.getStores());
59 addResult(
"departmentStores", departmentStores);
Object addResult(String key, Object value)
boolean stopPropagating()
Set< Headquarters > getHeadquarters()
static Company getDefaultCompany()