public interface SiteManageService
| Modifier and Type | Method and Description |
|---|---|
void |
importToolContent(String oSiteId,
Site site,
boolean bypassSecurity)
Copy tool content from old site
|
void |
importToolsIntoSite(Site site,
List<String> toolIds,
Map<String,List<String>> importTools,
boolean cleanup)
Contains the actual workflow for tools to be imported and their references to be updated
|
boolean |
importToolsIntoSiteThread(Site site,
List<String> toolIds,
Map<String,List<String>> toolsToImport,
boolean cleanup)
Import tools and content into the site.
|
boolean |
isAddMissingToolsOnImportEnabled()
Configuration setting for adding missing tools while importing
|
String |
transferSiteResource(String oSiteId,
String nSiteId,
String siteAttribute)
This is used to update exsiting site attributes with encoded site id in it.
|
boolean importToolsIntoSiteThread(Site site, List<String> toolIds, Map<String,List<String>> toolsToImport, boolean cleanup)
site - the site to import content intotoolIds - list of tools already in the sitetoolsToImport - list of tools that were selected for importcleanup - remove existing content in destination firstvoid importToolsIntoSite(Site site, List<String> toolIds, Map<String,List<String>> importTools, boolean cleanup)
site - the sitetoolIds - the tool ids in the site to be imported intoimportTools - the tools selected to be importedcleanup - true if content should be removed before the tool is copiedvoid importToolContent(String oSiteId, Site site, boolean bypassSecurity)
oSiteId - source (old) site idsite - destination sitebypassSecurity - use SecurityAdvisor if trueboolean isAddMissingToolsOnImportEnabled()
String transferSiteResource(String oSiteId, String nSiteId, String siteAttribute)
oSiteId - source (old) site idnSiteId - destination sitesiteAttribute - attribute to updateCopyright © 2003–2018 The Sakai Foundation. All rights reserved.