public class SiteVersionUpgradeOperation extends XsltFileUpgradeOperation
UpgradeOperation that updates or adds the version
file for the given site.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.io.Resource |
defaultFile
Path of the default file.
|
CONFIG_KEY_PATH, CONFIG_KEY_TARGET, path, targetCONFIG_KEY_TEMPLATE, SAXON_CLASS, templateapplicationContext, commitDetails, CONFIG_KEY_COMMIT_DETAILS, contentRepository, currentVersion, dataSource, generalLockService, nextVersion, servletContext, studioConfiguration| Constructor and Description |
|---|
SiteVersionUpgradeOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String site)
Performs a single upgrade operation.
|
void |
setDefaultFile(org.springframework.core.io.Resource defaultFile) |
doInit, setPathexecuteTemplate, getURIResolver, setTemplatecommitAllChanges, getCommitMessage, getConnection, getContentRepository, getGeneralLockService, getProperty, getRepositoryPath, init, loadResource, setApplicationContext, setContentRepository, setDataSource, setGeneralLockService, setServletContext, setStudioConfiguration, writeToRepoprotected org.springframework.core.io.Resource defaultFile
public void setDefaultFile(org.springframework.core.io.Resource defaultFile)
public void execute(String site) throws UpgradeException
execute in interface UpgradeOperationexecute in class XsltFileUpgradeOperationsite - the name of the siteUpgradeException - if there is any error performing the upgradeCopyright © 2023 CrafterCMS. All rights reserved.