public interface CourseSiteRemovalService
example:
fall term, 2008: starts August 22nd, 2008
ends December 15th, 2008
let's say that a site is created for bio 201 for the fall term 2008.
assume that we want the course site to be removed, since it will no longer be needed, two weeks after the term ends.
thus, we want the sakai site for bio 201 to be removed on December 15th + 14 days = December 29th, 2008.
if this service is invoked on any day after December 29th, 2008, the course will be removed or unpublished, depending
on how the service is configured in sakai.properties.
| Modifier and Type | Interface and Description |
|---|---|
static class |
CourseSiteRemovalService.Action |
| Modifier and Type | Field and Description |
|---|---|
static String |
PERMISSION_COURSE_SITE_REMOVAL |
static String |
SITE_PROPERTY_COURSE_SITE_REMOVAL |
| Modifier and Type | Method and Description |
|---|---|
int |
removeCourseSites(CourseSiteRemovalService.Action action,
int numDaysAfterTermEnds)
removes\\unpublishes course sites whose terms have ended and a specified number of days have passed.
|
static final String PERMISSION_COURSE_SITE_REMOVAL
static final String SITE_PROPERTY_COURSE_SITE_REMOVAL
int removeCourseSites(CourseSiteRemovalService.Action action, int numDaysAfterTermEnds)
action - whether to delete the course site or to simply unpublish it.numDaysAfterTermEnds - number of days after a term ends when course sites expire.
Copyright © 2006–2020 Sakai Project. All rights reserved.