01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TaskoptionManager.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.scheduler;
09:
10: import com.uwyn.rife.scheduler.Taskoption;
11: import com.uwyn.rife.scheduler.exceptions.TaskoptionManagerException;
12: import java.util.Collection;
13:
14: public interface TaskoptionManager {
15: public void setScheduler(Scheduler scheduler);
16:
17: public Scheduler getScheduler();
18:
19: public boolean addTaskoption(Taskoption taskoption)
20: throws TaskoptionManagerException;
21:
22: public boolean updateTaskoption(Taskoption taskoption)
23: throws TaskoptionManagerException;
24:
25: public Taskoption getTaskoption(int taskid, String name)
26: throws TaskoptionManagerException;
27:
28: public Collection<Taskoption> getTaskoptions(int taskid)
29: throws TaskoptionManagerException;
30:
31: public boolean removeTaskoption(Taskoption taskoption)
32: throws TaskoptionManagerException;
33:
34: public boolean removeTaskoption(int taskid, String name)
35: throws TaskoptionManagerException;
36: }
|