Search in sources :

Example 1 with ProjectRole

use of org.estatio.module.capex.dom.project.ProjectRole in project estatio by estatio.

the class PartyRoleMemberInferenceServiceForProjectRoleAndIncomingInvoice method doInferMembersOf.

@Override
protected List<Person> doInferMembersOf(final ProjectRoleTypeEnum roleType, final IncomingInvoice incomingInvoice) {
    final Project project = inferProject(incomingInvoice);
    if (project == null) {
        // can't go any further
        return null;
    }
    final List<ProjectRole> projectRoles = projectRoleRepository.findByProject(project);
    return currentPersonsFor(projectRoles);
}
Also used : Project(org.estatio.module.capex.dom.project.Project) ProjectRole(org.estatio.module.capex.dom.project.ProjectRole)

Aggregations

Project (org.estatio.module.capex.dom.project.Project)1 ProjectRole (org.estatio.module.capex.dom.project.ProjectRole)1