|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.admin.patch.AbstractPatch
org.alfresco.repo.admin.patch.impl.SiteLoadPatch
public class SiteLoadPatch
A Patch based importer which creates and populates a site based on the supplied data
Field Summary | |
---|---|
static java.lang.String |
PROPERTIES_CONTENTS
|
static java.lang.String |
PROPERTIES_GROUPS
|
static java.lang.String |
PROPERTIES_PEOPLE
|
static java.lang.String |
PROPERTIES_USERS
|
Fields inherited from class org.alfresco.repo.admin.patch.AbstractPatch |
---|
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService |
Constructor Summary | |
---|---|
SiteLoadPatch()
|
Method Summary | |
---|---|
protected java.lang.String |
applyInternal()
This method does the work. |
protected void |
checkProperties()
Check that the schema version properties have been set appropriately. |
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 |
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)
|
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch |
---|
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, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public 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
Constructor Detail |
---|
public SiteLoadPatch()
Method Detail |
---|
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 setBehaviourFilter(BehaviourFilter behaviourFilter)
protected void checkProperties()
AbstractPatch
checkProperties
in class AbstractPatch
protected java.lang.String applyInternal() throws java.lang.Exception
AbstractPatch
applyInternal
in class AbstractPatch
java.lang.Exception
- anything can be thrown. This must be used for all failures.AbstractPatch.apply()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |