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 Details

  • 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 interface EffortProjectionService
      Parameters:
      effort - effort to get the valid projection from template
      effortAssignmentRelation - relation to de assignment
      effortProjectionAssignmentRelation - relation to project
      Returns:
      an BigDecimal value
      Throws:
      NoEntityToLoadException