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, target
CONFIG_KEY_TEMPLATE, SAXON_CLASS, template
applicationContext, 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, setPath
executeTemplate, getURIResolver, setTemplate
commitAllChanges, getCommitMessage, getConnection, getContentRepository, getGeneralLockService, getProperty, getRepositoryPath, init, loadResource, setApplicationContext, setContentRepository, setDataSource, setGeneralLockService, setServletContext, setStudioConfiguration, writeToRepo
protected 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 UpgradeOperation
execute
in class XsltFileUpgradeOperation
site
- the name of the siteUpgradeException
- if there is any error performing the upgradeCopyright © 2023 CrafterCMS. All rights reserved.