Search in sources :

Example 1 with Objective

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");
}
Also used : Objective(com.autentia.tnt.businessobject.Objective) User(com.autentia.tnt.businessobject.User)

Aggregations

Objective (com.autentia.tnt.businessobject.Objective)1 User (com.autentia.tnt.businessobject.User)1