Package com.projectlibre.pm.resources

Examples of com.projectlibre.pm.resources.Resource


    state.setResourcePool(resourcePool);
    MpxResourceConverter converter=new MpxResourceConverter();
    for (net.sf.mpxj.Resource mpxResource : mpxProjectFile.getAllResources()){
      if (mpxResource.getNull() || mpxResource.getID()==null)
        continue;
      Resource resource;
      if (mpxResource.getID()==0)
        resource=resourcePool.getUnassignedResource();
      else {
        resource=new Resource();
        resourcePool.addResource(resource);
      }
      converter.from(mpxResource, resource, state);
      state.mapResource(resource.getId(), resource);
      //TODO insert blank lines ignored below
    }
  }
View Full Code Here


    "finish", "finish", "com.projectlibre.core.pm.exchange.converters.type.DateUTCConverter",   
    "work", "work", "com.projectlibre.core.pm.exchange.converters.mpx.type.MpxDurationConverter",   
  };

  public void from(net.sf.mpxj.ResourceAssignment mpxAssignment, Assignment assignment, MpxImportState state) {
    Resource resource;
    if (mpxAssignment.getResourceUniqueID().intValue() == Resource.UNASSIGNED_ID)
      resource=state.getResourcePool().getUnassignedResource();
    else resource = state.getResource(new NodeId(mpxAssignment.getResource().getUniqueID()));
    if (resource==null)
      return; //TODO handle error or log
View Full Code Here

TOP

Related Classes of com.projectlibre.pm.resources.Resource

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.