Class EffortProjectionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.effort.impl.service.EffortProjectionServiceImpl
- All Implemented Interfaces:
EffortProjectionService
@Component
public class EffortProjectionServiceImpl
extends Object
implements EffortProjectionService
-
Constructor Summary
ConstructorDescriptionEffortProjectionServiceImpl
(QueryBuilderFactory queryBuilderFactory, Context context) -
Method Summary
Modifier and TypeMethodDescriptiongetEffortProjection
(Entity effort, String effortAssignmentRelation, String effortProjectionAssignmentRelation) get the projection amount of a Effort_projection_template try to get the template of the corresponding person if template is null, try to get the template of the corresponding type if template is null, try to get the template of assignment return Zero if no template has been found
-
Constructor Details
-
EffortProjectionServiceImpl
-
-
Method Details
-
getEffortProjection
public BigDecimal getEffortProjection(Entity effort, String effortAssignmentRelation, String effortProjectionAssignmentRelation) throws NoEntityToLoadException Description copied from interface:EffortProjectionService
get the projection amount of a Effort_projection_template try to get the template of the corresponding person if template is null, try to get the template of the corresponding type if template is null, try to get the template of assignment return Zero if no template has been found- Specified by:
getEffortProjection
in interfaceEffortProjectionService
- Parameters:
effort
- effort to get the valid projection from templateeffortAssignmentRelation
- relation to de assignmenteffortProjectionAssignmentRelation
- relation to project- Returns:
- an BigDecimal value
- Throws:
NoEntityToLoadException
-