forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch from Carl Hall Fixes Delayed events structure Thanks git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@53024 66ffb92e-73f9-0310-93c1-f5514f145a0a
- Loading branch information
Showing
10 changed files
with
263 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
kernel/api/src/main/java/org/sakaiproject/event/api/EventDelayHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package org.sakaiproject.event.api; | ||
|
||
import java.util.List; | ||
|
||
import org.sakaiproject.time.api.Time; | ||
|
||
/** | ||
* Event delayers delay an event for future propagation by the system. | ||
*/ | ||
public interface EventDelayHandler | ||
{ | ||
/** | ||
* Read an event delay by a specified delay ID. | ||
* | ||
* @param delayId | ||
* @return | ||
*/ | ||
Event readDelay(String delayId); | ||
|
||
/** | ||
* Read a list of event delay IDs using the provided event and user ID. | ||
* | ||
* @param event | ||
* @param userId | ||
* @return | ||
*/ | ||
List<String> findDelayIds(Event event, String userId); | ||
|
||
/** | ||
* Read a list of event delay IDs using the provided event. Does not look at the user ID. | ||
* | ||
* @param event | ||
* @return | ||
*/ | ||
List<String> findDelayIds(Event event); | ||
|
||
/** | ||
* Read a list of event delay IDs using resource and event. | ||
* | ||
* @param resource | ||
* @param event | ||
* @return | ||
*/ | ||
List<String> findDelayIds(String resource, String event); | ||
|
||
/** | ||
* Read a list of event delay IDs using resource and event. | ||
* | ||
* @param resource | ||
* @param event | ||
* @return | ||
*/ | ||
List<String> findDelayIds(String resource); | ||
|
||
/** | ||
* Schedules a delayed invocation of this notification to run at the requested time. | ||
* | ||
* @param event | ||
* @return The ID of the delay | ||
*/ | ||
String createDelay(Event event, Time fireTime); | ||
|
||
/** | ||
* Schedules a delayed invocation of this notification to run at the requested time. | ||
* | ||
* @param event | ||
* @param userId | ||
* @return The ID of the delay | ||
*/ | ||
String createDelay(Event event, String userId, Time fireTime); | ||
|
||
/** | ||
* Delete an event delay by referencing the delay ID. | ||
* | ||
* @param delayId | ||
* @return | ||
*/ | ||
boolean deleteDelayById(String delayId); | ||
|
||
/** | ||
* Delete an event delay by matching the event information. | ||
* | ||
* @param e | ||
* @return | ||
*/ | ||
boolean deleteDelay(Event e); | ||
|
||
/** | ||
* Delete a delayed event by matching resource and event | ||
* | ||
* @param resource | ||
* @param event | ||
* @return | ||
*/ | ||
boolean deleteDelay(String resource, String event); | ||
|
||
/** | ||
* Delete all delayed events for a resource | ||
* | ||
* @param resource | ||
* @param event | ||
* @return | ||
*/ | ||
boolean deleteDelay(String resource); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
kernel/api/src/main/java/org/sakaiproject/event/api/EventVoter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.