use of com.autentia.tnt.businessobject.Objective in project TNTConcept by autentia.
the class CommissioningBean method createObjetives.
private void createObjetives() {
for (final User user : commissioning.getRevisers()) {
final Objective objective = new Objective();
objective.setUser(user);
objective.setProject(commissioning.getProject());
objective.setStartDate(commissioning.getRequestDate());
objective.setEndDate(commissioning.getDeliveryDate());
objective.setState(ObjectiveState.PENDING);
objective.setName(FacesUtils.formatMessage("commissioning.automaticObjectiveName", commissioning.getName()));
objectiveManager.insertEntity(objective);
}
FacesUtils.addInfoMessage(null, "commissioning.info.objectiveCreated");
}