@Component public class RosterGenerator extends Object implements org.springframework.boot.ApplicationRunner
| Modifier and Type | Class and Description |
|---|---|
static class |
RosterGenerator.GeneratorType |
| Constructor and Description |
|---|
RosterGenerator() |
RosterGenerator(javax.persistence.EntityManager entityManager)
For benchmark only
|
public RosterGenerator()
public RosterGenerator(javax.persistence.EntityManager entityManager)
entityManager - never null@Transactional public void run(org.springframework.boot.ApplicationArguments args)
run in interface org.springframework.boot.ApplicationRunner@Transactional public void checkForExistingData()
@Transactional public void setUpGeneratedData()
@Transactional public Roster generateRoster(int spotListSize, int lengthInDays, RosterGenerator.GeneratorType generatorType, ZoneId zoneId)
@Transactional public Roster generateRoster(int spotListSize, int lengthInDays)
@Transactional public Tenant createTenant(RosterGenerator.GeneratorType generatorType, int employeeListSize)
@Transactional public RosterConstraintConfiguration createTenantConfiguration(RosterGenerator.GeneratorType generatorType, Integer tenantId, ZoneId zoneId)
@Transactional public RosterState createRosterState(RosterGenerator.GeneratorType generatorType, Tenant tenant, ZoneId zoneId, int lengthInDays)
@Transactional public List<Skill> createSkillList(RosterGenerator.GeneratorType generatorType, Integer tenantId, int size)
@Transactional public List<Spot> createSpotList(RosterGenerator.GeneratorType generatorType, Integer tenantId, int size, List<Skill> skillList)
@Transactional public List<Employee> createEmployeeList(RosterGenerator.GeneratorType generatorType, Integer tenantId, int size, List<Contract> contractList, List<Skill> generalSkillList)
@Transactional public List<ShiftTemplate> createShiftTemplateList(RosterGenerator.GeneratorType generatorType, Integer tenantId, RosterState rosterState, List<Spot> spotList, List<Employee> employeeList)
@Transactional public List<Shift> createShiftList(RosterGenerator.GeneratorType generatorType, Integer tenantId, RosterConstraintConfiguration rosterConstraintConfiguration, RosterState rosterState, List<Spot> spotList, List<ShiftTemplate> shiftTemplateList)
@Transactional public List<EmployeeAvailability> createEmployeeAvailabilityList(RosterGenerator.GeneratorType generatorType, Integer tenantId, RosterConstraintConfiguration rosterConstraintConfiguration, RosterState rosterState, List<Employee> employeeList, List<Shift> shiftList)
Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.