Examples of from()


Examples of com.projectlibre.core.pm.exchange.converters.mpx.type.MpxDependencyTypeConverter.from()

    MpxDurationConverter durationConverter=new MpxDurationConverter();
    dependency.setLag((Duration)durationConverter.from(mpxRelation.getLag()));

    MpxDependencyTypeConverter dependencyTypeConverter=new MpxDependencyTypeConverter();
    dependency.setType((DependencyType)dependencyTypeConverter.from(mpxRelation.getType()));

 
}
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.mpx.type.MpxDurationConverter.from()

    else if ("PT8H0M0S".equals(rawValue))
      value=new Duration(8*3600000D, TimeUnit.HOURS);
    else{
      MpxDurationConverter durationConverter=new MpxDurationConverter();
      net.sf.mpxj.Duration mpxDuration=DatatypeConverter.parseDuration(state.getMpxProjectFile(),null,rawValue);
      value=(Duration)durationConverter.from(mpxDuration);
    }
    TimephasedValue<Duration> timephased=new DefaultTimephasedValue<Duration>(start,finish,value,type);
    return timephased;
  }

View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.openproj.type.OpenprojDurationConverter.from()

    DateLongConverter dateConverter=new DateLongConverter();
    long start=(Long)dateConverter.from(mpxTimephased.getStart());
    long finish=(Long)dateConverter.from(mpxTimephased.getFinish());
    OpenprojDurationConverter durationConverter=new OpenprojDurationConverter();
    net.sf.mpxj.Duration mpxDuration=DatatypeConverter.parseDuration(state.getMpxProjectFile(),null,mpxTimephased.getValue());
    Duration value=(Duration)durationConverter.from(mpxDuration);
    TimephasedValue<Duration> timephased=new DefaultTimephasedValue<Duration>(start,finish,value,type);
    return timephased;
  }

 
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.type.CalendarUTCLongConverter.from()

  public TimephasedValue<?> from(net.sf.mpxj.mspdi.schema.TimephasedDataType mpxTimephased, MpxImportState state) {
    TimephasedType type=TimephasedType.getInstance(mpxTimephased.getType().intValue());
    if (!type.isWork())
      return null;
    CalendarUTCLongConverter dateConverter=new CalendarUTCLongConverter();
    long start=(Long)dateConverter.from(mpxTimephased.getStart());
    long finish=(Long)dateConverter.from(mpxTimephased.getFinish());
   
    Duration value;
    String rawValue=mpxTimephased.getValue();
    if (rawValue==null ||
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.type.DateHoursMinsConverter.from()

      return;
    TimeIntervals intervals=range.getIntervals();
    DateHoursMinsConverter converter=new DateHoursMinsConverter();
    for (DateRange mpxDateRange:mpxRange)
      if (mpxDateRange!=null)
        intervals.union((Long)converter.from(mpxDateRange.getStart()), (Long)converter.from(mpxDateRange.getEnd()));
  }
}
View Full Code Here

Examples of com.projectlibre.core.pm.exchange.converters.type.DateLongConverter.from()

  public TimephasedValue<?> from(net.sf.mpxj.mspdi.schema.TimephasedDataType mpxTimephased, MpxImportState state) {
    TimephasedType type=TimephasedType.getInstance(mpxTimephased.getType().intValue());
    if (!type.isWork())
      return null;
    DateLongConverter dateConverter=new DateLongConverter();
    long start=(Long)dateConverter.from(mpxTimephased.getStart());
    long finish=(Long)dateConverter.from(mpxTimephased.getFinish());
    OpenprojDurationConverter durationConverter=new OpenprojDurationConverter();
    net.sf.mpxj.Duration mpxDuration=DatatypeConverter.parseDuration(state.getMpxProjectFile(),null,mpxTimephased.getValue());
    Duration value=(Duration)durationConverter.from(mpxDuration);
    TimephasedValue<Duration> timephased=new DefaultTimephasedValue<Duration>(start,finish,value,type);
View Full Code Here

Examples of com.psddev.dari.util.MailMessage.from()

                for (NotificationMethod method : receiver.getNotifyVia()) {
                    switch (method) {
                        case EMAIL :
                            MailMessage email = createEmail(object, sender, date, receiver);

                            email.from("support@perfectsensedigital.com");
                            email.to(receiver.getEmail());
                            MailProvider.Static.getDefault().send(email);
                            break;

                        case SMS :
View Full Code Here

Examples of de.danet.an.workflow.internalapi.ExtTransitionLocal.from()

      transByFrom.put (key, new ArrayList ());
  }
  for (Iterator i = process.transitionsLocal().iterator ();
             i.hasNext(); ) {
      ExtTransitionLocal t = (ExtTransitionLocal)i.next();
      Collection fts = (Collection)transByFrom.get(t.from().key());
      if (fts == null) {
    // this may happen in the case of block activites with
    // exception triggered transitions, because there are
    // no real activities instantiated
    fts = new ArrayList ();
View Full Code Here

Examples of de.danet.an.workflow.localapi.TransitionLocal.from()

  // new evaluation needed
  nextActivitiesCache = new ArrayList();
  List allTrans = ((ProcessLocal)containerLocal()).transitionsLocal();
  for (Iterator tri = allTrans.iterator(); tri.hasNext();) {
      TransitionLocal trans = (TransitionLocal)tri.next();
      if (key().equals (trans.from().key())) {
    nextActivitiesCache.add
                    (((ExtActivityLocal)trans.to()).toActivity());
      }
  }
  return nextActivitiesCache;
View Full Code Here

Examples of javax.persistence.criteria.CriteriaDelete.from()

    }
   
    public void deleteMovie() {
        CriteriaBuilder builder = em.getCriteriaBuilder();
        CriteriaDelete deleteCriteria = builder.createCriteriaDelete(Movie.class);
        Root<Movie> updateRoot = deleteCriteria.from(Movie.class);
        deleteCriteria.where(builder.equal(updateRoot.get(Movie_.name), "The Matrix"));
        Query q = em.createQuery(deleteCriteria);
        q.executeUpdate();
        em.flush();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.