Package com.centraview.activity.activityfacade

Examples of com.centraview.activity.activityfacade.ActivityFacade


      //ejb call to update header 
      remote.updateHeader(userId,messageId,headerName,headerValue);
      remote = null;
      //ejb call to update activity
      ActivityFacadeHome afh = (ActivityFacadeHome)CVUtility.getHomeObject("com.centraview.activity.activityfacade.ActivityFacadeHome","ActivityFacade");
      ActivityFacade af = afh.create();
      af.setDataSource(dataSource);
      af.updateStatus(activityId,individualId,headerValue);
    }
    catch(Exception e)
    {
      System.out.println("[Exception] UpdateActivityStatusHandler.updateStatus: " + e.toString());
      //e.printStackTrace();
View Full Code Here


      String findActivityId = request.getParameter("rowId");

      ActivityVO activityVO = new ActivityVO();
      ActivityFacadeHome aa = (ActivityFacadeHome)CVUtility.getHomeObject(
          "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");
      ActivityFacade remote = aa.create();
      remote.setDataSource(dataSource);

      activityVO = remote.getActivity(Integer.parseInt(findActivityId), individualId);
      activityVO.changeTimeZoneOfAllDates("EST", currTimeZone);

      ActivityForm actFrm = (ActivityForm)form;
      ActivityGenericFillVOX agf = new ActivityGenericFillVOX();
      actFrm.setLocale(request.getLocale());
View Full Code Here

        com.centraview.syncfacade.SyncFacade sfremote = syncHome.create();
        sfremote.setDataSource(dataSource);
        int newEntityID = sfremote.findCompanyNameMatch(entityName, userId);
        activityVO.setEntityID(newEntityID);
      }
      ActivityFacade remote = activityFacade.create();
      remote.setDataSource(this.dataSource);
      results = remote.addActivity(activityVO, userId);
    } catch (Exception e) {
      logger.error("[Exception] SyncFacade.addActivity ", e);
      return ("FAIL");
    }
    return Integer.toString(results);
View Full Code Here

    ActivityVOX activityVOX = new ActivityVOX(form);
    ActivityVO activityVO = activityVOX.getVO();
    ActivityFacadeHome activityFacade = (ActivityFacadeHome)CVUtility.getHomeObject(
        "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");
    try {
      ActivityFacade remote = activityFacade.create();
      remote.setDataSource(this.dataSource);
      remote.updateActivity(activityVO, userId);
    } catch (Exception e) {
      logger.error("[Exception] SyncFacade.updateActivity ", e);
      return ("FAIL");
    }
    return ("OK");
View Full Code Here

    ActivityVO vo = null;
    ActivityFacadeHome activityFacade = (ActivityFacadeHome)CVUtility.getHomeObject(
        "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");

    try {
      ActivityFacade remote = activityFacade.create();
      remote.setDataSource(this.dataSource);
      vo = remote.getActivity(activityId, userId);
    } catch (Exception e) {
      logger.error("[Exception] SyncFacade.getActivity ", e);
    }
    return vo;
  }
View Full Code Here

  {
    int returnValue = -1;
    try {
      ActivityFacadeHome activityFacade = (ActivityFacadeHome)CVUtility.getHomeObject(
          "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");
      ActivityFacade remote = activityFacade.create();
      remote.setDataSource(this.dataSource);
      returnValue = remote.getActivityType(activityID);
    } catch (Exception e) {
      logger.error("[Exception] SyncFacade.getActivityType ", e);
    }
    return returnValue;
  } // end of getActivityType method
View Full Code Here

      int ownerID = -1;
      if (ownerIDString != null && !ownerIDString.equals("")) {
        ownerID = Integer.parseInt(ownerIDString);
      }

      ActivityFacade remote = aa.create();
      remote.setDataSource(this.dataSource);
      if (adminstratorUserFlag == true && ownerID != -1 && individualID != ownerID) {
        remote.deleteIndividualFromAttendee(activityID, individualID);
      } else {
        remote.deleteActivity(activityID, individualID);
      }
    } catch (Exception e) {
      logger.error("[Exception] SyncFacade.deleteActivity ", e);
      return ("FAIL");
    }
View Full Code Here

      // call to activity facade
      ActivityFacadeHome activityFacade = (ActivityFacadeHome)CVUtility.getHomeObject(
          "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");

      try {
        ActivityFacade remote = activityFacade.create();
        remote.setDataSource(dataSource);

        int rowId = remote.addActivity(activityVO, IndividualId);

        AuthorizationHome authHome = (AuthorizationHome)CVUtility.getHomeObject(
            "com.centraview.administration.authorization.AuthorizationHome", "Authorization");
        Authorization authRemote = authHome.create();
        authRemote.setDataSource(dataSource);
View Full Code Here

      rowId = Integer.parseInt(row);

      ActivityFacadeHome activityFacadeHome = (ActivityFacadeHome)CVUtility.getHomeObject(
          "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");
      try {
        ActivityFacade remote = activityFacadeHome.create();
        remote.setDataSource(dataSource);
        typeId = remote.getActivityType(rowId);
      } catch (CreateException ce) {
        logger.error("[execute] Exception thrown.", ce);
        throw new ServletException(ce);
      }
    } else {
View Full Code Here

    Vector vector = null;

    try {
      ActivityFacadeHome activityfacadehome = (ActivityFacadeHome)CVUtility.getHomeObject(
          "com.centraview.activity.activityfacade.ActivityFacadeHome", "ActivityFacade");
      ActivityFacade activityfacade = activityfacadehome.create();
      activityfacade.setDataSource(this.dataSource);

      vector = activityfacade.getAllResources();
    } catch (Exception exception) {
      logger.error("[getAllResources] Exception thrown.", exception);
    }
    return vector;
  }
View Full Code Here

TOP

Related Classes of com.centraview.activity.activityfacade.ActivityFacade

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.