Package org.opencustomer.webapp.module.calendar.util

Examples of org.opencustomer.webapp.module.calendar.util.EventBeanCalculator


        if(event.isOccupied()) { // validiere Termin, wenn dieser besetzt ist
            for(EventCalendarVO eventCalendar : event.getEventCalendars()) { // pr�fe jeden Kalender, von dem es Beteiligte gibt
                if(log.isDebugEnabled())
                    log.debug("validate calendar with id="+eventCalendar.getCalendar().getId());
               
                EventBeanCalculator calc = new EventBeanCalculator(eventCalendar.getCalendar(), event.getStartDate(), event.getEndDate());
                for(EventBean eventBean : calc.getEventBeans()) {
                    if(!eventBean.getEvent().equals(event)
                            && eventBean.getEvent().isOccupied()
                            && isEventValid(eventBean.getEvent(), eventCalendar.getCalendar())) { // mu� der Termin gepr�ft werden? (abgelehnte und gel�schte interessieren nicht)
                        if(DateUtility.isMatching(eventBean.getStartDate(), eventBean.getEndDate(), event.getStartDate(), event.getEndDate())) {
                            if(eventCalendar.getCalendar().getUser() != null) {
View Full Code Here


            if(auth.isValid(Right.EXTERN_WEBSERVICE_READ))
            {
                UserConfiguration userConf = new UserConfiguration(uservo);
               
                eventList = new ArrayList<HashMap>();
                EventBeanCalculator calc = new EventBeanCalculator(uservo.getCalendar(),startDate,endDate);
                calc.setWithReminderDate(true);
                List<EventBean> eventBeanList = calc.getEventBeans();
                HashMap<String,String> eventMap;
                SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
                               
                for(EventBean eventBean : eventBeanList)
                {
View Full Code Here

        {
            if(log.isDebugEnabled())
                log.debug("loading jobs for: " + user.getUserName());
            UserConfiguration userConf = new UserConfiguration(user);
           
            EventBeanCalculator calc = new EventBeanCalculator(user.getCalendar(),startDate,endDate);
            calc.setWithReminderDate(true);
            List<EventBean> eventBeanList = calc.getEventBeans();
            if(log.isDebugEnabled())
                log.debug(eventBeanList.size() + " event jobs found");
            for(EventBean event : eventBeanList)
            {
                if(event.getReminderDate() != null && event.getReminderDate().before(endDate) && event.getReminderDate().after(startDate))
View Full Code Here

TOP

Related Classes of org.opencustomer.webapp.module.calendar.util.EventBeanCalculator

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.