Class SiteLoadPatch

java.lang.Object
org.alfresco.repo.admin.patch.AbstractPatch
org.alfresco.repo.admin.patch.impl.SiteLoadPatch
All Implemented Interfaces:
Patch, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

public class SiteLoadPatch extends AbstractPatch
A Patch based importer which creates and populates a site based on the supplied data
Author:
Nick Burch
  • Field Details

  • Constructor Details

    • SiteLoadPatch

      public SiteLoadPatch()
  • Method Details

    • setSiteName

      public void setSiteName(String siteName)
      Sets the name of the site to be bootstrapped.
      Parameters:
      siteName - The short name of the site
    • setSpacesBootstrap

      public void setSpacesBootstrap(ImporterBootstrap spacesBootstrap)
    • setUsersBootstrap

      public void setUsersBootstrap(ImporterBootstrap usersBootstrap)
    • setBootstrapViews

      public void setBootstrapViews(Map<String,Properties> bootstrapViews)
      Sets the details of the bootstraps to perform
    • setSiteService

      public void setSiteService(SiteService siteService)
      Sets the Site Service to be used for importing into
      Parameters:
      siteService - The Site Service
    • setAuthorityService

      public void setAuthorityService(AuthorityService authorityService)
      Sets the Authority Service to be used for groups and people
      Parameters:
      authorityService - The Authority Service
    • setDescriptorService

      public void setDescriptorService(DescriptorService descriptorService)
      Parameters:
      descriptorService - the descriptorService to set
    • setBehaviourFilter

      public void setBehaviourFilter(BehaviourFilter behaviourFilter)
    • setDisabled

      public void setDisabled(boolean disabled)
    • isDisabled

      public boolean isDisabled()
    • checkProperties

      protected void checkProperties()
      Description copied from class: AbstractPatch
      Check that the schema version properties have been set appropriately. Derived classes can override this method to perform their own validation provided that this method is called by the derived class.
      Overrides:
      checkProperties in class AbstractPatch
    • applyInternal

      protected String applyInternal() throws Exception
      Description copied from class: AbstractPatch
      This method does the work. All transactions and thread-safety will be taken care of by this class. Any exception will result in the transaction being rolled back. Integrity checks are downgraded for the duration of the transaction.
      Specified by:
      applyInternal in class AbstractPatch
      Returns:
      Returns the report (only success messages).
      Throws:
      Exception - anything can be thrown. This must be used for all failures.
      See Also: