Package de.akquinet.pest.logic

Examples of de.akquinet.pest.logic.ActivityViewListService


    Context context = Contexts.getConversationContext();
    Project project = (Project) context.get("project");

    try {
      ActivityViewListService activityViewListService = (ActivityViewListService) Component
          .getInstance("activityViewListService");

      response.setContentType("application/gantt");
      response.setCharacterEncoding("UTF-8");

      SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");

      String fileName = format.format(Calendar.getInstance().getTime())
          + "_PEST_Project_" + project.getId() + ".gan";

      response.setHeader("Content-Disposition", "attachment; filename=\""
          + fileName + "\"");
      PrintWriter printWriter = response.getWriter();
      activityViewListService.writeGantt(printWriter);
      printWriter.close();

    } catch (Exception e) {
      System.out.println("exception....");
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of de.akquinet.pest.logic.ActivityViewListService

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.