Package com.centraview.customfield

Examples of com.centraview.customfield.CustomField


  {
    int elementID = Integer.parseInt(key);
    CustomFieldHome customFieldHome =(CustomFieldHome)CVUtility.getHomeObject("com.centraview.customfield.CustomFieldHome","CustomField");//call to CustomFieldEJB
    try
    {
      CustomField remote=(CustomField)customFieldHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteCustomField(indvID,elementID);
    }
    catch(Exception e)
    {
      logger.error("[Exception] CustomFieldList.deleteElement( int indvID, String key ) ", e);
    }
View Full Code Here


    ArrayList resultDeleteLog = new ArrayList();
    CustomFieldHome customFieldHome=(CustomFieldHome)CVUtility.getHomeObject("com.centraview.customfield.CustomFieldHome","CustomField");
    try
    {
      //call to EJB server
      CustomField remote=(CustomField)customFieldHome.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]);
          remote.deleteCustomField(individualID,elementID);
        }//end of if(recordID[i] != null && !recordID[i].equals(""))
      }//end of for (int i=0; i<recordID.length; i++)       
    }//end of try block
    catch( CreateException e )
    {
View Full Code Here

    CustomFieldHome cfh = (CustomFieldHome)CVUtility.getHomeObject(
        "com.centraview.customfield.CustomFieldHome", "CustomField");

    try {
      CustomField remote = cfh.create();
      remote.setDataSource(dataSource);

      remote.updateCustomField(custVo);

      CustomFieldVO cfvo = remote.getCustomField(fieldId);

      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
View Full Code Here

      CustomFieldVO cfvo = null;

      CustomFieldHome cfh = (CustomFieldHome)CVUtility.getHomeObject(
          "com.centraview.customfield.CustomFieldHome", "CustomField");
      CustomField remote = cfh.create();
      remote.setDataSource(dataSource);

      int userId = 0;
      if (session.getAttribute("userobject") != null) {
        userId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
      }

      request.setAttribute("RECORDOPERATIONRIGHT", new Integer(CVUtility.getRecordPermission(
          userId, "CustomFields", recordID, dataSource)));

      cfvo = remote.getCustomField(Integer.parseInt(rowId[0]), recordID);
      cfvo.setRecordID(recordID);

      request.setAttribute("CustomFieldVO", cfvo);
      returnStatus = ".view.contacts.view_custom_field";
    } catch (Exception e) {
View Full Code Here

        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    DynaActionForm entityForm = (DynaActionForm)form;
    // moc Types.
    entityForm.set("mocTypeList", Globals.MOC_TYPE);
    // Get the custom field stuff and set it on the form.
    CustomField customField = null;
    try {
      customField = (CustomField)CVUtility.setupEJB("CustomField",
          "com.centraview.customfield.CustomFieldHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Entity");
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 4 ? 4 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
View Full Code Here

    }
    IndividualVO individualVO = contactFacade.getIndividual(Integer.parseInt(viewIndividualId));
    individualVO.populateFormBean(individualForm);
    // Now we need to get the custom field stuff because it doesn't live on the
    // individualVO even though there is a nice space for it there
    CustomField customField = null;
    try {
      customField = (CustomField)CVUtility.setupEJB("CustomField",
          "com.centraview.customfield.CustomFieldHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Individual", individualVO
        .getContactID());
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 8 ? 8 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
View Full Code Here

        logger.error("[Exception] execute(): ", e);
      }
    }
    // moc Types.
    individualForm.set("mocTypeList", Globals.MOC_TYPE);
    CustomField customField = null;
    try {
      customField = (CustomField)CVUtility.setupEJB("CustomField",
          "com.centraview.customfield.CustomFieldHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Individual");
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 8 ? 8 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
View Full Code Here

    }
    entityVO = contactFacade.getEntity(Integer.parseInt(viewEntityId));
    DynaActionForm entityForm = (DynaActionForm)form;
    entityVO.populateFormBean(entityForm);

    CustomField customField = null;
    try {
      customField = (CustomField)CVUtility.setupEJB("CustomField",
          "com.centraview.customfield.CustomFieldHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Entity", entityVO.getContactID());
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 4 ? 4 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
View Full Code Here

    TreeMap hmap = null;
    try
    {
      CustomFieldHome cfh = (CustomFieldHome)
        CVUtility.getHomeObject("com.centraview.customfield.CustomFieldHome", "CustomField");
      CustomField remote = (CustomField) cfh.create();
      remote.setDataSource(dataSource);
      hmap = remote.getCustomFieldData(recordType);
    }
    catch (Exception e)
    {
      logger.error("[getCustomField] Exception thrown.", e);
    }
View Full Code Here

    TreeMap hmap = null;
    try
    {
      CustomFieldHome cfh = (CustomFieldHome)
        CVUtility.getHomeObject("com.centraview.customfield.CustomFieldHome", "CustomField");
      CustomField remote = (CustomField) cfh.create();
      remote.setDataSource(dataSource);
      hmap = remote.getCustomFieldData(recordType, recordID);
    }
    catch (Exception e)
    {
      logger.error("[getCustomField] Exception thrown.", e);
    }
View Full Code Here

TOP

Related Classes of com.centraview.customfield.CustomField

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.