railo-context.Componentcontentbox.model.updates.UpdateService
ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
appPath
|
true
|
false
|
|
any
|
moduleConfig
|
true
|
false
|
|
any
|
patchesLocation
|
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)
|
struct
|
applyUpdateFromURL(string downloadURL)
PUBLIC ********************************************. |
private boolean
|
applyUpdateOnDisk(any log)
PRIVATE ********************************************. |
IUpdate
|
buildUpdater()
|
UpdateService
|
deactivateORMUpdate()
Deactivate ORM Update. |
boolean
|
downloadPatch(string downloadURL, any log)
|
boolean
|
extractPatch(string filename, any log)
|
string
|
getAppPath()
|
string
|
getModuleConfig()
|
string
|
getPatchesLocation()
|
string
|
getWirebox()
|
string
|
getZipUtil()
|
any
|
isNewVersion([any cVersion], [any 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 railo-context.Component |
---|
None |
Constructor Detail |
---|
CONSTRUCTOR ********************************************
Property Detail |
---|
required
- falseinject
- coldbox:setting:ApplicationPathserializable
- truerequired
- falseinject
- coldbox:moduleConfig:contentboxserializable
- truerequired
- falseserializable
- truerequired
- falseinject
- wireboxserializable
- truerequired
- falseinject
- coldbox:plugin:Zipserializable
- trueMethod Detail |
---|
Activate ORM Update
fileField
PUBLIC ********************************************
downloadURL
PRIVATE ********************************************
log
Deactivate ORM Update
downloadURL
log
filename
log
Check for version updates cVersion.hint The current version of the system nVersion.hint The newer version received
cVersion
nVersion
onDIComplete startup the layouting services
Parse the semantic version
version
Process patch update removals if any
path
log
Process updated files
path
log
appPath
moduleConfig
patchesLocation
wirebox
zipUtil
Upload an update file to disk
fileField