Package org.opencustomer.db.vo.crm

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


            return mapping.findForward("addUser");
        } else if(form.getDoRemoveUser().isSelected()) {
            if (log.isDebugEnabled())
                log.debug("remove user");
           
            CompanyVO company = (CompanyVO)getPanel().getEntity();
            company.setAssignedUser(null);
           
            return Panel.getForward(getPanel().getActivePage().getAction(), request);
        } else {
            return null;
        }
View Full Code Here


public class PageAddressAction extends EditPageAction<PageAddressForm> {
    private static Logger log = Logger.getLogger(PageAddressAction.class);

    @Override
    public void writeForm(PageAddressForm form, ActionMessages errors, HttpServletRequest request) {
        CompanyVO company = (CompanyVO) getPanel().getEntity();

        for(AddressVO address : company.getAddresses()) {
            if(AddressVO.Type.MAIN.equals(address.getType())) {
                form.setMainAddressName(address.getName());
                form.setMainAddressStreet(address.getStreet());
                form.setMainAddressZip(address.getZip());
                form.setMainAddressCity(address.getCity());
View Full Code Here

        }       
    }
   
    @Override
    public void readForm(PageAddressForm form, ActionMessages errors, HttpServletRequest request) {
        CompanyVO company = (CompanyVO) getPanel().getEntity();

        if (log.isDebugEnabled())
            log.debug("save button pressed");

        AddressVO mainAddress = getAddress(company, AddressVO.Type.MAIN);
View Full Code Here

    @Override
    protected void search(PageJobForm form, ActionMessages errors, HttpServletRequest request)
    {
        UserVO user       = (UserVO)request.getSession().getAttribute(Globals.USER_KEY);
        CompanyVO company = (CompanyVO) getPanel().getEntity();
        UserConfiguration conf = (UserConfiguration)request.getSession().getAttribute(Globals.CONFIGURATION_KEY);

        List list = null;
        long count = 0;
View Full Code Here

            log.error("problems loading user (ID:" + form.getId() + ")");
        }
        else
        {
            CompanyVO company = (CompanyVO) panel.getEntity();
           
            if(!EntityAccessUtility.isAccessGranted(user, company, EntityAccess.Access.WRITE))
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("module.generic.pageSystem.error.missingWriteAccessForAssignedUser", user.getUserName()));
            else
                company.setAssignedUser(user);
        }
    }
View Full Code Here

TOP

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

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.