Package de.xanders.data.system.vo

Examples of de.xanders.data.system.vo.UserVO


        opportunityDetailForm = (OpportunityDetailForm) getForm(OPPORTUNITY_DETAIL_FORM);
    if (validateBeanProperties(opportunityDetailForm)) {
      try {
        opportunityVO = new OpportunityVO();
        CustomerMapperFactory.getOpportunityMapper().mapToObj(opportunityDetailForm, opportunityVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (opportunityVO.getOpportunityId() == null) {
                    opportunityVO.setCreatedOn(new Date());
                    opportunityVO.setCreatedBy(loggedInUserVO.getUserIdent());
                }
                else {
                    opportunityVO.setModifiedOn(new Date());
                    opportunityVO.setModifiedBy(loggedInUserVO.getUserIdent());
                }               
        opportunityVO = dataServiceLocator.getOpportunityService().saveOpportunity(opportunityVO);
        CustomerMapperFactory.getOpportunityMapper().mapToBean(opportunityVO, opportunityDetailForm);
      } catch (OpportunityServiceException ex) {
        logger.error("DAO exception occured, cause: ", ex);
View Full Code Here


        leadDetailForm = (LeadDetailForm) getForm(LEAD_DETAIL_FORM);
        if (validateBeanProperties(leadDetailForm)) {
            try {
                leadVO = new LeadVO();
                CustomerMapperFactory.getLeadMapper().mapToObj(leadDetailForm, leadVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (leadVO.getLeadId() == null) {
                    leadVO.setCreatedOn(new Date());
                    leadVO.setCreatedBy(loggedInUserVO.getUserIdent());
                }
                else {
                    leadVO.setModifiedOn(new Date());
                    leadVO.setModifiedBy(loggedInUserVO.getUserIdent());
                }
              leadVO = dataServiceLocator.getLeadService().saveLead(leadVO);
                CustomerMapperFactory.getLeadMapper().mapToBean(leadVO, leadDetailForm);
              setForm(LEAD_DETAIL_FORM, leadDetailForm);
            } catch (LeadServiceException ex) {
View Full Code Here

    public String saveContact() throws Exception {
        contactDetailForm = (ContactDetailForm) getForm(CONTACT_DETAIL_FORM);
        try {
            contactVO = new ContactVO();
            CustomerMapperFactory.getContactMapper().mapToObj(contactDetailForm, contactVO);
            UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
            if (contactVO.getContactId() == null) {
                contactVO.setCreatedOn(new Date());
                contactVO.setCreatedBy(loggedInUserVO.getUserIdent());
            }
            else {
                contactVO.setModifiedOn(new Date());
                contactVO.setModifiedBy(loggedInUserVO.getUserIdent());
            }           
            contactVO = dataServiceLocator.getContactService().saveContact(contactVO);
            CustomerMapperFactory.getContactMapper().mapToBean(contactVO, contactDetailForm);
        } catch (ContactServiceException ex) {
            logger.error("DAO exception occured, cause: ", ex);
View Full Code Here

    public String saveBankAccount() throws Exception {
        bankAccountDetailForm = (BankAccountDetailForm) getForm(BANK_ACCOUNT_DETAIL_FORM);
        try {
            bankAccountVO = new BankAccountVO();
            CustomerMapperFactory.getBankAccountMapper().mapToObj(bankAccountDetailForm, bankAccountVO);
            UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
            if (bankAccountVO.getBankAccountId() == null) {
                bankAccountVO.setCreatedOn(new Date());
                bankAccountVO.setCreatedBy(loggedInUserVO.getUserIdent());
            }
            else {
                bankAccountVO.setModifiedOn(new Date());
                bankAccountVO.setModifiedBy(loggedInUserVO.getUserIdent());
            }
            bankAccountVO = dataServiceLocator.getBankAccountService().saveBankAccount(bankAccountVO);
            CustomerMapperFactory.getBankAccountMapper().mapToBean(bankAccountVO, bankAccountDetailForm);
        } catch (BankAccountServiceException ex) {
            logger.error("DAO exception occured, cause: ", ex);
View Full Code Here

        quoteDetailForm = (QuoteDetailForm) getForm(QUOTE_DETAIL_FORM);
    if (validateBeanProperties(quoteDetailForm)) {
      try {
        quoteVO = new QuoteVO();
        CustomerMapperFactory.getQuoteMapper().mapToObj(quoteDetailForm, quoteVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (quoteVO.getQuoteId() == null) {
                    quoteVO.setCreatedOn(new Date());
                    quoteVO.setCreatedBy(loggedInUserVO.getUserIdent());
                }
                else {
                    quoteVO.setModifiedOn(new Date());
                    quoteVO.setModifiedBy(loggedInUserVO.getUserIdent());
                }
                quoteVO = dataServiceLocator.getQuoteService().saveQuote(quoteVO);
        CustomerMapperFactory.getQuoteMapper().mapToBean(quoteVO, quoteDetailForm);
      } catch (Exception ex) {
        logger.error("DAO exception occured, cause: ", ex);
View Full Code Here

        leadDetailForm = (LeadDetailForm) getBean(LEAD_DETAIL_FORM);
        if (validateBeanProperties(leadDetailForm)) {
            try {
                leadVO = new LeadVO();
                CustomerMapperFactory.getLeadMapper().mapToObj(leadDetailForm, leadVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(LOGGED_IN_USER);
                if (leadVO.getLeadId() == null) {
                    leadVO.setCreatedOn(new Date());
                    leadVO.setCreatedBy(loggedInUserVO.getUserIdent());
                }
                else {
                    leadVO.setModifiedOn(new Date());
                    leadVO.setModifiedBy(loggedInUserVO.getUserIdent());
                }
              leadVO = dataServiceLocator.getLeadService().saveLead(leadVO);
                CustomerMapperFactory.getLeadMapper().mapToBean(leadVO, leadDetailForm);
                leadDetailForm.setFormStatus(null);
            } catch (LeadServiceException ex) {
View Full Code Here

    public String saveActivity() throws Exception {
        activityDetailForm = (ActivityDetailForm) getForm(ACTIVITY_DETAIL_FORM);
        try {
            activityVO = new ActivityVO();
            CustomerMapperFactory.getActivityMapper().mapToObj(activityDetailForm, activityVO);
            UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
            if (activityVO.getActivityId() == null) {
                activityVO.setCreatedOn(new Date());
                activityVO.setCreatedBy(loggedInUserVO.getUserIdent());
            }
            else {
                activityVO.setModifiedOn(new Date());
                activityVO.setModifiedBy(loggedInUserVO.getUserIdent());
            }
          activityVO = dataServiceLocator.getActivityService().saveActivity(activityVO);
            CustomerMapperFactory.getActivityMapper().mapToBean(activityVO, activityDetailForm);
        } catch (ActivityServiceException ex) {
      logger.error("DAO exception occured, cause: ", ex);
View Full Code Here

        caseDetailForm = (CaseDetailForm) getForm(CASE_DETAIL_FORM);
        if (validateBeanProperties(caseDetailForm)) {
            try {
                casesVO = new CasesVO();
                CustomerMapperFactory.getCaseMapper().mapToObj(caseDetailForm, casesVO);
                UserVO loggedInUserVO = (UserVO)getSession().getAttribute(Constants.LOGGED_IN_USER);
                if (casesVO.getCaseId() == null) {
                    casesVO.setCreatedOn(new Date());
                    casesVO.setCreatedBy(loggedInUserVO.getUserIdent());
                }
                else {
                    casesVO.setModifiedOn(new Date());
                    casesVO.setModifiedBy(loggedInUserVO.getUserIdent());
                }
                casesVO = dataServiceLocator.getCasesService().saveCase(casesVO);
                CustomerMapperFactory.getCaseMapper().mapToBean(casesVO, caseDetailForm);
            } catch (CasesServiceException ex) {
          logger.error("DAO exception occured, cause: ", ex);
View Full Code Here

TOP

Related Classes of de.xanders.data.system.vo.UserVO

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.