org.sakaiproject.archive.impl
Class SiteArchiver

java.lang.Object
  extended by org.sakaiproject.archive.impl.SiteArchiver

public class SiteArchiver
extends Object


Field Summary
protected  org.sakaiproject.authz.api.AuthzGroupService m_authzGroupService
          Dependency: AuthzService
protected  org.sakaiproject.content.api.ContentHostingService m_contentHostingService
          Dependency: ContentHosting
protected  org.sakaiproject.entity.api.EntityManager m_entityManager
          Dependency: EntityManager.
protected  org.sakaiproject.component.api.ServerConfigurationService m_serverConfigurationService
          Dependency: ServerConfigurationService.
protected  org.sakaiproject.site.api.SiteService m_siteService
          Dependency: SiteService
protected  org.sakaiproject.time.api.TimeService m_timeService
          Dependency: TimeService
protected  org.sakaiproject.user.api.UserDirectoryService m_userDirectoryService
          Dependency: UserDirectoryService
 
Constructor Summary
SiteArchiver()
           
 
Method Summary
 String archive(String siteId, String m_storagePath, String fromSystem)
           
protected  String archiveSite(org.sakaiproject.site.api.Site site, Document doc, Stack stack, String fromSystem)
          Archive the site definition.
protected  String archiveUsers(org.sakaiproject.site.api.Site site, Document doc, Stack stack)
          Archive the users defined in this site (internal users only).
 void setAuthzGroupService(org.sakaiproject.authz.api.AuthzGroupService service)
           
 void setContentHostingService(org.sakaiproject.content.api.ContentHostingService service)
           
 void setEntityManager(org.sakaiproject.entity.api.EntityManager service)
           
 void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService service)
           
 void setSiteService(org.sakaiproject.site.api.SiteService service)
           
 void setTimeService(org.sakaiproject.time.api.TimeService service)
           
 void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_serverConfigurationService

protected org.sakaiproject.component.api.ServerConfigurationService m_serverConfigurationService
Dependency: ServerConfigurationService.


m_entityManager

protected org.sakaiproject.entity.api.EntityManager m_entityManager
Dependency: EntityManager.


m_siteService

protected org.sakaiproject.site.api.SiteService m_siteService
Dependency: SiteService


m_authzGroupService

protected org.sakaiproject.authz.api.AuthzGroupService m_authzGroupService
Dependency: AuthzService


m_userDirectoryService

protected org.sakaiproject.user.api.UserDirectoryService m_userDirectoryService
Dependency: UserDirectoryService


m_timeService

protected org.sakaiproject.time.api.TimeService m_timeService
Dependency: TimeService


m_contentHostingService

protected org.sakaiproject.content.api.ContentHostingService m_contentHostingService
Dependency: ContentHosting

Constructor Detail

SiteArchiver

public SiteArchiver()
Method Detail

setServerConfigurationService

public void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService service)

setEntityManager

public void setEntityManager(org.sakaiproject.entity.api.EntityManager service)

setSiteService

public void setSiteService(org.sakaiproject.site.api.SiteService service)

setAuthzGroupService

public void setAuthzGroupService(org.sakaiproject.authz.api.AuthzGroupService service)

setUserDirectoryService

public void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService service)

setTimeService

public void setTimeService(org.sakaiproject.time.api.TimeService service)

setContentHostingService

public void setContentHostingService(org.sakaiproject.content.api.ContentHostingService service)

archive

public String archive(String siteId,
                      String m_storagePath,
                      String fromSystem)

archiveSite

protected String archiveSite(org.sakaiproject.site.api.Site site,
                             Document doc,
                             Stack stack,
                             String fromSystem)
Archive the site definition.

Parameters:
site - the site.
doc - The document to contain the xml.
stack - The stack of elements, the top of which will be the containing element of the "site" element.

archiveUsers

protected String archiveUsers(org.sakaiproject.site.api.Site site,
                              Document doc,
                              Stack stack)
Archive the users defined in this site (internal users only).

Parameters:
site - the site.
doc - The document to contain the xml.
stack - The stack of elements, the top of which will be the containing element of the "site" element.


Copyright © 2006-2012 Sakai Project. All Rights Reserved.