Package de.iritgo.aktera.scheduler.entity

Examples of de.iritgo.aktera.scheduler.entity.ScheduleDAO


   * @return True if the schedule action has moved
   * @throws ModelException
   */
  protected boolean moveScheduleActionUp(ModelRequest request, String id) throws ModelException
  {
    ScheduleDAO scheduleDAO = (ScheduleDAO) request.getSpringBean(ScheduleDAO.ID);
    ScheduleAction action = scheduleDAO.findScheduleActionById(NumberTools.toIntInstance(id));

    if (action != null)
    {
      return scheduleDAO.moveScheduleActionUp(action);
    }

    return false;
  }
View Full Code Here


   * @return True if the schedule action has moved
   * @throws ModelException
   */
  protected boolean moveScheduleActionDown(ModelRequest request, String id) throws ModelException
  {
    ScheduleDAO scheduleDAO = (ScheduleDAO) request.getSpringBean(ScheduleDAO.ID);
    ScheduleAction action = scheduleDAO.findScheduleActionById(NumberTools.toIntInstance(id));

    if (action != null)
    {
      return scheduleDAO.moveScheduleActionDown(action);
    }

    return false;
  }
View Full Code Here

   * @return True if the schedule has moved
   * @throws ModelException
   */
  protected boolean moveScheduleUp(ModelRequest request, String id) throws ModelException
  {
    ScheduleDAO scheduleDAO = (ScheduleDAO) request.getSpringBean(ScheduleDAO.ID);
    Schedule schedule = scheduleDAO.findScheduleById(NumberTools.toIntInstance(id));

    if (schedule != null)
    {
      return scheduleDAO.moveScheduleUp(schedule);
    }

    return false;
  }
View Full Code Here

   * @return True if the schedule has moved
   * @throws ModelException
   */
  protected boolean moveScheduleDown(ModelRequest request, String id) throws ModelException
  {
    ScheduleDAO scheduleDAO = (ScheduleDAO) request.getSpringBean(ScheduleDAO.ID);
    Schedule schedule = scheduleDAO.findScheduleById(NumberTools.toIntInstance(id));

    if (schedule != null)
    {
      return scheduleDAO.moveScheduleDown(schedule);
    }

    return false;
  }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.scheduler.entity.ScheduleDAO

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.