Package org.opencustomer.db.dao.crm

Examples of org.opencustomer.db.dao.crm.JobDAO


        if (log.isDebugEnabled())
            log.debug("delete job (ID:" + job.getId() + ")");

        if (job.getId() != null) {
            try {
                new JobDAO().delete(job);
            } catch (HibernateException e) {
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("default.error.couldNotDeleteEntity", panel.getEntity().getId()));

                log.debug("problems deleting job (ID:" + job.getId() + ")");
            }
View Full Code Here


            if (job.getId() == null)
            {
                if (log.isDebugEnabled())
                    log.debug("create job " + job);
                new JobDAO().insert(job);
            }
            else
            {
                if (log.isDebugEnabled())
                    log.debug("save job " + job);
                new JobDAO().update(job);
            }

            HibernateContext.getSession().evict(job);
        }
        catch (HibernateException e)
View Full Code Here

    @Override
    public void loadEntity(ActionMessages errors, EditLoadForm form, Hashtable<String, Object> attributes, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    {
        try
        {
            JobVO job = new JobDAO().getById(form.getId());
            Hibernate.initialize(job.getReferencedCompany());
            Hibernate.initialize(job.getReferencedPerson());
           
            attributes.put("job", job);
        }
View Full Code Here

        {      
            Authenticator auth = new Authenticator(uservo);
            if(auth.isValid(Right.EXTERN_WEBSERVICE_READ))
            {
                jobList = new ArrayList<HashMap>();
                List<JobVO> jobs = new JobDAO().getByUser(uservo, startDate, endDate);        
                HashMap<String,String> jobMap;
                SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
               
                for(JobVO job : jobs)
                {
View Full Code Here

        if(uservo != null && errors.isEmpty())
        {
            Authenticator auth = new Authenticator(uservo);
            if(auth.isValid(Right.EXTERN_WEBSERVICE_WRITE))
            {
                JobVO job = new JobDAO().getById(id);
                if(status.equals(JobVO.Status.COMPLETED.toString()))
                    job.setStatus(JobVO.Status.COMPLETED);
                else if(status.equals(JobVO.Status.IN_PROGRESS.toString()))
                    job.setStatus(JobVO.Status.IN_PROGRESS);
                else if(status.equals(JobVO.Status.PLANNED.toString()))
                    job.setStatus(JobVO.Status.PLANNED);
                new JobDAO().insertOrUpdate(job);
            }
            else
            {
            if(log.isInfoEnabled())
                log.info("client access denied for username [" + user + "]");
View Full Code Here

                    if(log.isInfoEnabled())
                        log.info("no reminder date of old reminder date for: " + event);
                }
            }
           
            List<JobVO> jobs = new JobDAO().getByUser(user, startDate, endDate);
            if(log.isDebugEnabled())
                log.debug(jobs.size() + " job jobs found");
            for(JobVO job : jobs)
            {
                if(log.isDebugEnabled())
View Full Code Here

                        log.debug("generate status mail for: " + user.getUserName());
                   
                    try {
                        StatusEmail mail = new StatusEmail();
                        mail.addRecipient(user);
                        List<JobVO> jobs = new JobDAO().getByUser(user, startDate.getTime(), endDate.getTime());
                        List<EventVO> events = new EventDAO().getByTimePeriod(user.getCalendar(), startDate.getTime(), endDate.getTime(), user);
                        if(!jobs.isEmpty() || !events.isEmpty()) {
                            if(log.isDebugEnabled())
                                log.debug(jobs.size() + "jobs found");
                            for(JobVO job : jobs)
View Full Code Here

TOP

Related Classes of org.opencustomer.db.dao.crm.JobDAO

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.