public class SiteLoadPatch extends AbstractPatch
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTIES_CONTENTS |
static String |
PROPERTIES_GROUPS |
static String |
PROPERTIES_PEOPLE |
static String |
PROPERTIES_USERS |
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, patchService, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
SiteLoadPatch() |
| Modifier and Type | Method and Description |
|---|---|
protected 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(Map<String,Properties> bootstrapViews)
Sets the details of the bootstraps to perform
|
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setDisabled(boolean disabled) |
void |
setSiteName(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, applyAsync, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isDeferred, isForce, isIgnored, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDeferred, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setIgnored, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toStringpublic static final String PROPERTIES_USERS
public static final String PROPERTIES_PEOPLE
public static final String PROPERTIES_GROUPS
public static final String PROPERTIES_CONTENTS
public void setSiteName(String siteName)
siteName - The short name of the sitepublic void setSpacesBootstrap(ImporterBootstrap spacesBootstrap)
public void setUsersBootstrap(ImporterBootstrap usersBootstrap)
public void setBootstrapViews(Map<String,Properties> 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 String applyInternal() throws Exception
AbstractPatchapplyInternal in class AbstractPatchException - anything can be thrown. This must be used for all failures.AbstractPatch.apply()Copyright © 2005–2018 Alfresco Software. All rights reserved.