Class CorporateDesignResolverServiceImpl
java.lang.Object
ch.tocco.nice2.reporting.impl.service.CorporateDesignResolverServiceImpl
- All Implemented Interfaces:
CorporateDesignResolverService
@Component
public class CorporateDesignResolverServiceImpl
extends Object
implements CorporateDesignResolverService
-
Constructor Summary
ConstructorDescriptionCorporateDesignResolverServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultCorporateDesignOfBusinessUnit
(BusinessUnit businessUnit) get the defaultCorporate_design
to be used in widgetsresolveCorporateDesignForBusinessUnit
(Entity source, BusinessUnit businessUnit) get theCorporate_design
to be used with the given business unit for a template.resolveCorporateDesignForBusinessUnit
(Entity source, Entity businessUnit) get theCorporate_design
to be used with the given business unit for a template.get theCorporate_design
to be used with the current business unit for a template.
-
Constructor Details
-
CorporateDesignResolverServiceImpl
public CorporateDesignResolverServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
resolveCorporateDesignForCurrentBusinessUnit
Description copied from interface:CorporateDesignResolverService
get theCorporate_design
to be used with the current business unit for a template.source
must have a relation toOutput_template
resolves business unit withBusinessUnitManager
- Specified by:
resolveCorporateDesignForCurrentBusinessUnit
in interfaceCorporateDesignResolverService
- Parameters:
source
- the entity to get the corporate design for- Returns:
- the corporate design
-
resolveCorporateDesignForBusinessUnit
Description copied from interface:CorporateDesignResolverService
get theCorporate_design
to be used with the given business unit for a template.source
must have a relation toOutput_template
- Specified by:
resolveCorporateDesignForBusinessUnit
in interfaceCorporateDesignResolverService
- Parameters:
source
- the entity to get the corporate design forbusinessUnit
- the business unit to look for- Returns:
- the corporate design
-
resolveCorporateDesignForBusinessUnit
Description copied from interface:CorporateDesignResolverService
get theCorporate_design
to be used with the given business unit for a template.source
must have a relation toOutput_template
- Specified by:
resolveCorporateDesignForBusinessUnit
in interfaceCorporateDesignResolverService
- Parameters:
source
- the entity to get the corporate design forbusinessUnit
- the business unit to look for- Returns:
- the corporate design
-
getDefaultCorporateDesignOfBusinessUnit
- Specified by:
getDefaultCorporateDesignOfBusinessUnit
in interfaceCorporateDesignResolverService
- Parameters:
businessUnit
- the business unit to get theCorporate_design
from- Returns:
- the corporate design
-
getDefaultWidgetCorporateDesign
Description copied from interface:CorporateDesignResolverService
get the defaultCorporate_design
to be used in widgets- Specified by:
getDefaultWidgetCorporateDesign
in interfaceCorporateDesignResolverService
-