lucee.Componentcontentbox.models.updates.UpdateService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Manages Auto-Updates in ContentBox
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
appPath
|
true
|
false
|
|
any
|
moduleConfig
|
true
|
false
|
|
any
|
patchesLocation
The patches location in the system.
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
any
|
zipUtil
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
UpdateService
|
activateORMUpdate()
Activate ORM Update. |
struct
|
applyUpdateFromUpload(any fileField)
Apply updates from an upload, return results struct: [error,logInfo]. |
struct
|
applyUpdateFromURL(string downloadURL)
Apply updates from a download URL, return results struct: [error,logInfo]. |
private boolean
|
applyUpdateOnDisk(any log)
Apply an already downloaded update on disk. |
any
|
buildUpdater()
Build an updater CFC from our patch locations. |
UpdateService
|
deactivateORMUpdate()
Deactivate ORM Update. |
boolean
|
downloadPatch(string downloadURL, any log)
Download the patch from URL and mark it as ok or not. |
boolean
|
extractPatch(string filename, any log)
extract a patch in the updates location. |
string
|
getAppPath()
|
string
|
getModuleConfig()
|
string
|
getPatchesLocation()
|
string
|
getWirebox()
|
string
|
getZipUtil()
|
boolean
|
isNewVersion(string cVersion, string nVersion)
Check for version updates. |
void
|
onDIComplete()
onDIComplete startup the layouting services. |
private struct
|
parseSemanticVersion(string version)
Parse the semantic version. |
any
|
processRemovals(any path, any log)
Process patch update removals if any. |
any
|
processUpdates(any path, any log)
Process updated files. |
any
|
setAppPath(any appPath)
|
any
|
setModuleConfig(any moduleConfig)
|
any
|
setPatchesLocation(any patchesLocation)
|
any
|
setWirebox(any wirebox)
|
any
|
setZipUtil(any zipUtil)
|
struct
|
uploadUpdate(any fileField)
Upload an update file to disk. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- coldbox:setting:ApplicationPathserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:moduleConfig:contentboxserializable
- trueThe patches location in the system
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- zipUtil@cbserializable
- trueMethod Detail |
---|
Activate ORM Update
Apply updates from an upload, return results struct: [error,logInfo]
fileField
- The file field form nameApply updates from a download URL, return results struct: [error,logInfo]
downloadURL
- The download URL for the updateApply an already downloaded update on disk
log
- The log bufferBuild an updater CFC from our patch locations
Deactivate ORM Update
Download the patch from URL and mark it as ok or not
downloadURL
- The download URLlog
- The log file bufferextract a patch in the updates location
filename
- The file to extractlog
- The log file bufferCheck for version updates
cVersion
- The current version of the systemnVersion
- The newer version receivedonDIComplete startup the layouting services
Parse the semantic version
version
- The version stringProcess patch update removals if any
path
- The path of the patchlog
- The log bufferProcess updated files
path
- The path of the patchlog
- The log bufferappPath
moduleConfig
patchesLocation
wirebox
zipUtil
Upload an update file to disk
fileField
- The file field on the form