public interface ArchiveService
ArchiveService takes care of exporting and importing entities.
| Modifier and Type | Field and Description |
|---|---|
static String |
FROM_CT
A tag for the input system.
|
static String |
FROM_SAKAI |
static String |
FROM_SAKAI_2_8 |
static String |
FROM_WT |
static boolean |
SAKAI_assign_draft_import |
static boolean |
SAKAI_msg_draft_import |
static boolean |
SAKAI_rsc_draft_import |
static boolean |
SAKAI_schedule_draft_import |
static String |
SERVICE_NAME
This string can be used to find the service in the service manager.
|
| Modifier and Type | Method and Description |
|---|---|
String |
archive(String siteId)
Create an archive for the resources of a site.
|
String |
archiveAndZip(String siteId)
Archive a site then compress it to a zip.
|
String |
merge(String archiveUrl,
String siteId,
String siteCreatorId)
Read in an archived set of resources, and merge the entries into the specified site, and set site creator name
|
String |
mergeFromZip(String zipFilePath,
String siteId,
String siteCreatorId)
Read in an archived set of resources, and merge the entries into the specified site, and set site creator name
Allows a ZIP file to be used instead of the site archive directory
|
static final String SERVICE_NAME
static final String FROM_CT
static final String FROM_WT
static final String FROM_SAKAI
static final String FROM_SAKAI_2_8
static final boolean SAKAI_msg_draft_import
static final boolean SAKAI_assign_draft_import
static final boolean SAKAI_rsc_draft_import
static final boolean SAKAI_schedule_draft_import
String archive(String siteId)
siteId - The id of the site to archive.String merge(String archiveUrl, String siteId, String siteCreatorId)
archiveUrl - The archive xml file Url.siteId - The id of the site to merge the content into.siteCreatorId - the site creator IdString mergeFromZip(String zipFilePath, String siteId, String siteCreatorId)
zipFilePath - The archived site as a zip filesiteId - The id of the site to merge the content into.siteCreatorId - the site creator IdString archiveAndZip(String siteId) throws IOException
siteId - - id of site to be archivedIOExceptionCopyright © 2003–2020 Sakai Project. All rights reserved.