Lucee 5.2 will come with a much extended Adminstrator.cfc
First of all it is necessary to explain about Administrator.cfc, the new improved component aims to provide a better access to manipulate the Lucee configuration, that will allow users to do whatever they could do with the tag cfadmin in the past.
In a first step the goal was not to give a complete new interface, it was to provide the interface from tag cfadmin in a more transparent way.
This of course includes a documentation of every single action possible with the component that will be part of the new documentation coming with every Lucee Server.
Because this tag is fully CFML based everybody is welcome to help to further improve this component.
Here is how to call the admin functions.
new Administrator( “”, “” );
@type specifies whether it is web/server. @password specifies the password to access the admin.
For example :
admin = new Administrator( "web", "password" );
getDataSource = admin.getDatasources();
dump(admin);
dump(getDataSource); //Returns all the datasources defined for current context
Like this way, we’ve to call all the cfadmin functions.
This is just the start to have status quo to the cfadmin tag, to review the current implementation simply install the latest Lucee 5.2 or review the component directly in the repository
The available functions are as follows:
- getRegional
- updateRegional
- resetRegional
- getCharset
- updateCharset
- resetCharset
- getOutputSetting
- updateOutputSetting
- resetOutputSetting
- getAvailableTimeZones
- getAvailableLocales
- getDatasourceSetting
- updateDatasourceSetting
- resetDatasourceSetting
- getDatasources
- getDatasource
- updateDatasource
- removeDatasource
- verifyDatasource
- getDatasourceDriverList
- getMailservers
- updateMailServer
- verifyMailServer
- removeMailServer
- getMailSetting
- updateMailSetting
- resetMailSetting
- getMappings
- getMapping
- updateMapping
- removeMapping
- compileMapping
- compileCTMapping
- compileComponentMapping
- createArchiveFromMapping
- getCustomTagMappings
- getExtensions
- getExtensionInfo
- updateExtensionInfo
- updateExtension
- removeExtension
- getServerExtensions
- getLocalExtension
- getLocalExtensions
- getExtensionProviders
- verifyExtensionProvider
- updateExtensionProvider
- removeExtensionProvider
- getORMSetting
- updateORMSetting
- resetORMSetting
- getORMEngine
- updateORMEngine
- removeORMEngine
- getComponent
- updateComponent
- getComponentMappings
- updateComponentMapping
- removeComponentMapping
- getCacheConnections
- verifyCacheConnection
- updateCacheConnection
- getCacheConnection
- removeCacheConnection
- getCompilerSettings
- updateCompilerSettings
- resetCompilerSettings
- getPerformanceSettings
- updatePerformanceSettings
- resetPerformanceSettings
- getGatewayEntries
- getGatewayEntry
- updateGatewayEntry
- gateway
- removeGatewayEntry
- getBundles
- getBundle
- getLoggedDebugData
- getDebugEntry
- updateDebugEntry
- removeDebugEntry
- getDebugSetting
- updateDebugSetting
- resetDebugSetting
- getDebug
- updateDebug
- resetDebug
- getSSLCertificate
- updateSSLCertificate
- getPluginDirectory
- getContextes
- getContexts
- updateContext
- updateLabel
- getFlds
- getTlds
- getTasks
- executeTask
- removeTask
- removeAllTask
- getTaskSetting
- updateTaskSetting
- resetTaskSetting
- verifyCFX
- getJavaCfxTags
- verifyJavaCFX
- updateJavaCFX
- removeCfx
- getLoginSettings
- updateLoginSettings
- getLogSettings
- updateLogSettings
- removeLogSetting
- getApplicationListener
- updateApplicationListener
- resetApplicationListener
- getScope
- updateScope
- resetScope
- getRestSettings
- updateRestSettings
- resetRestSettings
- getRestMappings
- updateRestMapping
- removeRestMapping
- getApplicationSetting
- updateApplicationSetting
- resetApplicationSetting
- getQueueSetting
- updateQueueSetting
- updatePassword
- resetPassword
- getDefaultPassword
- updateDefaultPassword
- removeDefaultPassword
- hashPassword
- getCustomTagSetting
- updateCustomTagSetting
- updateCustomTag
- removeCustomTag
- getError
- updateError
- resetError
- securityManager
- createSecurityManager
- getSecurityManager
- updateSecurityManager
- removeSecurityManager
- getDefaultSecurityManager
- updateDefaultSecurityManager
- storageGet
- storageSet
- getAPIKey
- updateAPIKey
- removeAPIKey
- createComponentArchive
- createCTArchive
- getUpdate
- updateUpdate
- runUpdate
- removeUpdate
- changeVersionTo
- resetId
- restart
- getMinVersion
- listPatches
- connect