Package org.opencustomer.db.vo.crm

Examples of org.opencustomer.db.vo.crm.ContactVO


            log.error("problems loading person (ID:" + form.getId() + ")");
        }
        else
        {
            ContactVO contact = (ContactVO) panel.getEntity();

            PersonContactVO pc = new PersonContactVO(person, contact);

            if (!contact.getPersonContacts().contains(pc))
                contact.getPersonContacts().add(pc);
        }
    }
View Full Code Here


    }
   
    @Override
    protected List<PersonVO> getIgnoredPersons(EntityPanel panel)
    {
        ContactVO contact = (ContactVO) panel.getEntity();
       
        List<PersonVO> ignoredPersons = new ArrayList<PersonVO>();
        for(PersonContactVO personContact : contact.getPersonContacts())
            ignoredPersons.add(personContact.getPerson());
       
        return ignoredPersons;
    }
View Full Code Here

    @Override
    protected void chooseEntity(EntityPanel panel, AddCompanyForm form, ActionMessages errors, HttpServletRequest request, HttpServletResponse response)
    {
        try
        {
            ContactVO contact = (ContactVO) panel.getEntity();
            contact.setCompany(new CompanyDAO().getById(form.getId()));
        }
        catch (HibernateException e)
        {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("default.error.invalidEntity", new Integer(form.getId())));
View Full Code Here

TOP

Related Classes of org.opencustomer.db.vo.crm.ContactVO

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.