Package com.projectlibre.pm.scheduling

Examples of com.projectlibre.pm.scheduling.ConstraintType


  public void to(NormalTask openprojTask, Task task, OpenprojImportState state) {
    //convert fields
    FieldUtil.convertFields(task, NormalTask.class, openprojTask, fieldsToConvert, false);
    FieldUtil.convertFields(task, CustomFields.class, openprojTask.getCustomFields(), customFieldsToConvert, false);
   
    ConstraintType constraintType=(ConstraintType)task.get("constraintType");
    if (constraintType!=null){
      LongDateConverter converter=new LongDateConverter();
      Long constraintDate=(Long)converter.to(task.get("constraintDate"));
      openprojTask.setScheduleConstraint(constraintType.getId(),constraintDate==null?0:constraintDate);
    }
   
    //find calendar
    WorkCalendar calendar=task.getCalendar();
    if (calendar!=null){
View Full Code Here


    return ConstraintType.getInstance(ct.getValue());
  }

  @Override
  public Object to(Object o) {
    ConstraintType ct=(ConstraintType)o;
    return net.sf.mpxj.ConstraintType.getInstance(ct.getId());
  }
View Full Code Here

TOP

Related Classes of com.projectlibre.pm.scheduling.ConstraintType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.