public class SiteLoadPatch extends AbstractPatch
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTIES_CONTENTS |
static java.lang.String |
PROPERTIES_GROUPS |
static java.lang.String |
PROPERTIES_PEOPLE |
static java.lang.String |
PROPERTIES_USERS |
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
SiteLoadPatch() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
applyInternal()
This method does the work.
|
protected void |
checkProperties()
Check that the schema version properties have been set appropriately.
|
boolean |
isDisabled() |
void |
setAuthorityService(AuthorityService authorityService)
Sets the Authority Service to be used for groups and people
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setBootstrapViews(java.util.Map bootstrapViews)
Sets the details of the bootstraps to perform
|
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setDisabled(boolean disabled) |
void |
setSiteName(java.lang.String siteName)
Sets the name of the site to be bootstrapped.
|
void |
setSiteService(SiteService siteService)
Sets the Site Service to be used for importing into
|
void |
setSpacesBootstrap(ImporterBootstrap spacesBootstrap) |
void |
setUsersBootstrap(ImporterBootstrap usersBootstrap) |
applies, apply, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isForce, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toStringpublic static final java.lang.String PROPERTIES_USERS
public static final java.lang.String PROPERTIES_PEOPLE
public static final java.lang.String PROPERTIES_GROUPS
public static final java.lang.String PROPERTIES_CONTENTS
public void setSiteName(java.lang.String siteName)
siteName - The short name of the sitepublic void setSpacesBootstrap(ImporterBootstrap spacesBootstrap)
public void setUsersBootstrap(ImporterBootstrap usersBootstrap)
public void setBootstrapViews(java.util.Map bootstrapViews)
public void setSiteService(SiteService siteService)
siteService - The Site Servicepublic void setAuthorityService(AuthorityService authorityService)
authorityService - The Authority Servicepublic void setDescriptorService(DescriptorService descriptorService)
descriptorService - the descriptorService to setpublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setDisabled(boolean disabled)
public boolean isDisabled()
protected void checkProperties()
AbstractPatchcheckProperties in class AbstractPatchprotected java.lang.String applyInternal()
throws java.lang.Exception
AbstractPatchapplyInternal in class AbstractPatchjava.lang.Exception - anything can be thrown. This must be used for all failures.AbstractPatch.apply()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.