Package com.centraview.administration.applicationsettings

Examples of com.centraview.administration.applicationsettings.AppSettingsHome


  public Vector getRecordType(String module)
  {
    Vector vec = new Vector();

    try {
      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject(
          "com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = appHome.create();
      appRemote.setDataSource(this.dataSource);

      vec = appRemote.getRecordType(module);
    } catch (Exception e) {
      logger.error("[getRecordType] Exception thrown.", e);
View Full Code Here


 
  private final File getCustomerLogoFile(String dataSource, File fsRoot)
  {
    String customerLogoName = null;
    try {
      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = appHome.create();
      appRemote.setDataSource(dataSource);
      customerLogoName = appRemote.getApplicationSettings("CUSTOMERLOGO");
    } catch (Exception e) {
      logger.error("[getCustomerLogoFile] Exception thrown.", e);
    }
View Full Code Here

      Mail mailRemote = (Mail)mailHome.create();
      mailRemote.setDataSource(dataSource);

      Vector accountList = (Vector)mailRemote.getAccountList();
     
      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome","AppSettings");
      AppSettings appRemote = (AppSettings)appHome.create();
      appRemote.setDataSource(dataSource);
     
      Vector supportMailIds = (Vector)appRemote.getSupportMailId();
     
      try {
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
   
    try {
      CustomerLogoForm custform = (CustomerLogoForm)form;
     
      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = (AppSettings)appHome.create();
      appRemote.setDataSource(dataSource);
     
      String cust = appRemote.getApplicationSettings("CUSTOMERLOGO");
     
      custform.setCurrentfile(cust);
View Full Code Here

        submodule = "";
      }

      DynaActionForm dynaform = (DynaActionForm)form;

      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = appHome.create();
      appRemote.setDataSource(dataSource);

      HashMap hm = (HashMap)appRemote.getCalendarSettings();

      SimpleDateFormat simpleDateFormat = new SimpleDateFormat("h:mm a");
View Full Code Here

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int IndividualId = userObject.getIndividualID();
      DynaActionForm dynaform = (DynaActionForm) form;

      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = appHome.create();
      appRemote.setDataSource(dataSource);
     
      SimpleDateFormat simpleDateFormat = new SimpleDateFormat("h:mm a");
      Time startTime;
      Time endTime;
View Full Code Here

          fileName = "logo_customer.gif";
          File logoFile = new File(fsRoot.getAbsolutePath() + Constants.CUSTOMERLOGO_PATH + fileName);
          siteInfo.setCustomerLogo(logoFile);
          siteInfo.setCustomerLogoDirty(true);
        }
        AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
        AppSettings appRemote = (AppSettings)appHome.create();
        appRemote.updateApplicationSettings("CUSTOMERLOGO", fileName);
      }
      FORWARD_final = FORWARD_save;
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
View Full Code Here

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");

    try {
      String returnStatus = "";
      String button = request.getParameter("buttonpress").toString();
      String setting = request.getParameter("setting").toString();
      String submodule = request.getParameter("submodule").toString();
      request.setAttribute("typeofsubmodule", submodule);

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int IndividualId = userObject.getIndividualID();
      DynaActionForm dynaform = (DynaActionForm) form;

      String[] optionValues = (String[]) dynaform.get("valueList");
      String[] optionIDs = (String[]) dynaform.get("valueIds");
      ArrayList vecOption = new ArrayList();

      //To Make sure we don't go out of bounds.
      int arrayLength = (optionIDs.length < optionValues.length) ? optionIDs.length : optionValues.length;

      for (int i = 0; i < arrayLength; i++) {
        DDNameValue tempDDNameValue =
        new DDNameValue(Integer.parseInt(optionIDs[i]), optionValues[i]);
        vecOption.add(tempDDNameValue);
      }
      AppSettings appRemote = appHome.create();
      appRemote.setDataSource(dataSource);
      appRemote.addMasterDataSettings(setting, (Collection) vecOption);

      GlobalMasterLists.refreshGlobalMasterList(dataSource);
      ProjectsHelperList.refreshProjectsHelperList();
View Full Code Here

            vecSend.addElement(new Integer(send[i]));
          }
        }
      }

      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject("com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = (AppSettings)appHome.create();
      appRemote.setDataSource(dataSource);

      appRemote.addSupportMailId(vecSend);

      HashMap supportMessages = new HashMap();
View Full Code Here

TOP

Related Classes of com.centraview.administration.applicationsettings.AppSettingsHome

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.