Class EffortProjectionEntityListener

java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingEntityListener
ch.tocco.nice2.optional.effort.impl.entitylistener.EffortProjectionEntityListener
All Implemented Interfaces:
ContextListener, EntityFacadeListener, CommitListener, EventListener

public class EffortProjectionEntityListener extends CollectingEntityListener
Updates the "projection"-field, if it's null, on the "Effort"-entity to one of the following values:

 - The Effort_projection_template of the same User (via the associated entity)
 - The Effort_projection_template of the same Effort_type (via the associated entity)
 - The Effort_projection_template of the associated entity.
 
Current associated entities: Project (via Task), Case, Campaign, Certification Contributed via <effort-projection> in the hivemodule.xml of the corresponding module