Package com.centraview.activity.helper

Examples of com.centraview.activity.helper.ActivityHelperHome


            || typeOfActivity.equals(ConstantKeys.FORECASTSALE)
            || typeOfActivity.equals(ConstantKeys.LITERATUREREQUEST)
            || typeOfActivity.equals(ConstantKeys.MEETING)
            || typeOfActivity.equals(ConstantKeys.NEXTACTION)
            || typeOfActivity.equals(ConstantKeys.TODO) || typeOfActivity.equals(ConstantKeys.TASK))) {
          ActivityHelperHome home = (ActivityHelperHome)CVUtility.getHomeObject(
              "com.centraview.activity.helper.ActivityHelperHome", "ActivityHelper");
          try {
            ActivityHelper remote = home.create();
            remote.setDataSource(dataSource);
            String findActivityId = request.getParameter("rowId");
            typeOfActivity = remote.getTypeOfActivity(Integer.parseInt(findActivityId))
                .toUpperCase();
          } catch (Exception e) {
            logger.error("[execute]: Exception", e);
          }
        }
      } else if (request.getParameter(ConstantKeys.TYPEOFACTIVITY) != null) {
        typeOfActivity = request.getParameter(ConstantKeys.TYPEOFACTIVITY);
        // call to activity helper to get typeOfActivity if
        // here we get value from "TYPEOFACTIVITYLIST" hidden text box from jsp
        // pages
        if (!(typeOfActivity.equals(ConstantKeys.APPOINTMENT)
            || typeOfActivity.equals(ConstantKeys.CALL)
            || typeOfActivity.equals(ConstantKeys.FORECASTSALE)
            || typeOfActivity.equals(ConstantKeys.LITERATUREREQUEST)
            || typeOfActivity.equals(ConstantKeys.MEETING)
            || typeOfActivity.equals(ConstantKeys.NEXTACTION)
            || typeOfActivity.equals(ConstantKeys.TODO) || typeOfActivity.equals(ConstantKeys.TASK))) {

          ActivityHelperHome home = (ActivityHelperHome)CVUtility.getHomeObject(
              "com.centraview.activity.helper.ActivityHelperHome", "ActivityHelper");

          try {
            ActivityHelper remote = home.create();
            remote.setDataSource(dataSource);
            String findActivityId = request.getParameter("rowId");
            typeOfActivity = remote.getTypeOfActivity(Integer.parseInt(findActivityId))
                .toUpperCase();
          } catch (Exception e) {
View Full Code Here


        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    try {
      HttpSession session = request.getSession();
      String typeOfActivity = null;

      ActivityHelperHome home = (ActivityHelperHome)CVUtility.getHomeObject(
          "com.centraview.activity.helper.ActivityHelperHome", "ActivityHelper");
      try {
        ActivityHelper remote = home.create();
        remote.setDataSource(dataSource);
        String findActivityId = request.getParameter("rowId");
        typeOfActivity = remote.getTypeOfActivity(Integer.parseInt(findActivityId)).toUpperCase();
      } catch (Exception e) {
        logger.error("[execute]: Exception", e);
View Full Code Here

TOP

Related Classes of com.centraview.activity.helper.ActivityHelperHome

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.