public class GenericBootstrapPatch extends AbstractPatch
importers
to import snippets into the system. These snippets would otherwise have been bootstrapped by
a clean install.
By providing this class with a bootstrap view and an importer, it can check whether the path exists and perform the import if it doesn't.
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
GenericBootstrapPatch() |
| 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.
|
void |
setBootstrapView(java.util.Properties bootstrapView) |
void |
setCheckPath(java.lang.String checkPath)
Set the XPath statement that must be executed to check whether the import data is
already present or not.
|
void |
setImporterBootstrap(ImporterBootstrap importerBootstrap) |
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 void setImporterBootstrap(ImporterBootstrap importerBootstrap)
importerBootstrap - the bootstrap bean that performs the user store bootstrappublic void setCheckPath(java.lang.String checkPath)
checkPath - an XPath statementpublic void setBootstrapView(java.util.Properties bootstrapView)
bootstrapView - the bootstrap locationImporterBootstrap.setBootstrapViews(List)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.