Package com.centraview.projects.projectfacade

Examples of com.centraview.projects.projectfacade.ProjectFacade


    ProjectFacadeHome aa = (ProjectFacadeHome)
      CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome", "ProjectFacade");

    try
    {
      ProjectFacade remote = (ProjectFacade) aa.create();
      remote.setDataSource(dataSource);
      remote.addTimeSlip(indvID, timeSlipVO);
    }
    catch (Exception e)
    {
      System.out.println("[Exception] AddTimeSlipHandler.execute: " + e.toString());
    }
View Full Code Here


    //call to EJB server
    int elementID = Integer.parseInt(key);
    ProjectFacadeHome projectFacadeHome = (ProjectFacadeHome)CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome","ProjectFacade");
    try
    {
      ProjectFacade remote =(ProjectFacade)projectFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteTimeSlip( elementID );
      // TODO deleteTimeSlip user-rights.
      this.setDirtyFlag(true);
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("TimeSlip");
    }
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    ProjectFacadeHome projectFacadeHome = (ProjectFacadeHome)CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome","ProjectFacade");
    try
    {
      //call to EJB server
      ProjectFacade remote =(ProjectFacade)projectFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            remote.deleteTimeSlip( elementID );
            // TODO deleteTimeSlip user-rights.
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
View Full Code Here

      (ProjectFacadeHome) CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome",
        "ProjectFacade");

    try
    {
      ProjectFacade remote = (ProjectFacade) projectFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteProject(indvID, elementID);
      this.setDirtyFlag(true);

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Project");
    }
View Full Code Here

     ArrayList resultDeleteLog = new ArrayList();
     ProjectFacadeHome projectFacadeHome = (ProjectFacadeHome) CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome","ProjectFacade");
     try
     {
       //call to EJB server
       ProjectFacade remote = (ProjectFacade) projectFacadeHome.create();
       remote.setDataSource(this.dataSource);
       for (int i=0; i<recordID.length; i++)
       {
         if(recordID[i] != null && !recordID[i].equals("")){
           int elementID = Integer.parseInt(recordID[i]);
           try{
             remote.deleteProject(individualID, elementID);
           }//end of try block
           catch(AuthorizationFailedException ae){
             String errorMessage = ae.getExceptionDescription();
             resultDeleteLog.add(errorMessage);
           }//end of catch block
View Full Code Here

    ProjectFacadeHome pfh = (ProjectFacadeHome)
      CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome", "ProjectFacade");

    try
    {
      ProjectFacade remote = (ProjectFacade) pfh.create();
      remote.setDataSource(dataSource);
      remote.updateProjectTask(indvID, taskVO);
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Task");
    }
    catch (Exception e)
    {
View Full Code Here

   
    String rowId[] = request.getParameterValues("rowId");
    ProjectFacadeHome projectFacadeHome = (ProjectFacadeHome)CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome","ProjectFacade");
    try
    {
      ProjectFacade remote = (ProjectFacade)projectFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {         
          int elementId = Integer.parseInt(rowId[i]);
          try
          {
            remote.deleteTask(elementId, individualId);
          } catch(AuthorizationFailedException ae) {
            String errorMessage = ae.getExceptionDescription();
            deleteLog.add(errorMessage);
          }
        }
View Full Code Here

      UserObject userobjectd = (UserObject) session.getAttribute("userobject");
      int individualID = userobjectd.getIndividualID();

      ProjectFacadeHome pfh = (ProjectFacadeHome)
        CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome", "ProjectFacade");
      ProjectFacade remote = (ProjectFacade) pfh.create();
      remote.setDataSource(dataSource);

      String[] rowId = null;

      if (request.getParameterValues("rowId") != null)
      {
        rowId = request.getParameterValues("rowId");
      }

      TaskVO taskVO = remote.getTask(Integer.parseInt(rowId[0]), individualID);
      TaskForm taskForm = (TaskForm) form;
      this.setForm(taskForm, taskVO, request, response);
      returnStatus = ".view.projects.new.task";
    }
    catch (Exception e)
View Full Code Here

    if (request.getParameter("contactID") != null)
    {
      projectForm.setContactID(Integer.parseInt(request.getParameter("contactID")));
    }
 
    ProjectFacade remote = (ProjectFacade) phh.create();
    remote.setDataSource(dataSource);
    Vector statusCol = remote.getProjectStatusList();
    projectForm.setProjectStatusVec(statusCol);
 
      request.setAttribute("projectForm", projectForm);
    } catch (Exception e)
    {
View Full Code Here

    ProjectFacadeHome aa = (ProjectFacadeHome)
      CVUtility.getHomeObject("com.centraview.projects.projectfacade.ProjectFacadeHome", "ProjectFacade");

    try
    {
      ProjectFacade remote = (ProjectFacade) aa.create();
      remote.setDataSource(dataSource);
      remote.updateProject(individualID, projectVO);
    }
    catch (Exception e)
    {
      System.out.println("[Exception] EditProjectHandler.execute: " + e.toString());
      //e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.centraview.projects.projectfacade.ProjectFacade

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.