lucee.Componentcommandbox.system.services.EndpointService
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I handle working with Endpoints
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
configService
|
true
|
false
|
|
any
|
consoleLogger
|
true
|
false
|
|
struct
|
endpointRegistry
|
true
|
false
|
|
string
|
endpointRootPath
|
/commandbox/system/endpoints
|
true
|
false
|
any
|
fileSystemUtil
|
true
|
false
|
|
any
|
logger
|
true
|
false
|
|
any
|
tempDir
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
buildEndpointRegistry([string rootDirectory='[runtime expression]'])
Inspect the endpoints folder and register them. |
any
|
createEndpointUser(string endpointName, string username, string password, string email, string firstName, string lastName)
A facade to create a user with an interactive endpoint. |
any
|
forgeboxEndpointNameComplete()
|
string
|
getConfigService()
|
string
|
getConsoleLogger()
|
commandbox.system.services.IEndpoint
|
getEndpoint(string endpointName)
Returns the endpoint object. |
string
|
getEndpointRegistry()
|
string
|
getEndpointRootPath()
|
string
|
getFileSystemUtil()
|
string
|
getLogger()
|
string
|
getTempDir()
|
string
|
getWirebox()
|
any
|
loginEndpointUser(string endpointName, string username, string password)
A facade to login a user with an interactive endpoint. |
any
|
onDIComplete()
|
any
|
publishEndpointPackage(string endpointName, string directory, [boolean upload='false'], [boolean forceUpload='false'])
A facade to publish a package with an interactive endpoint. |
any
|
registerCustomForgeboxEndpoints()
Look for custom ForgeBox endpoints that are in the config and register themm. |
any
|
registerEndpoint(any oEndPoint)
Register a single CFC instance as an endpoint. |
struct
|
resolveEndpoint(string ID, string currentWorkingDirectory)
Inspects ID and returns endpoint object, endpointName, and ID (with endpoint stripped). |
struct
|
resolveEndpointData(string ID, string currentWorkingDirectory)
Inspects ID and returns name of endpoint. |
any
|
setConfigService(any configService)
|
any
|
setConsoleLogger(any consoleLogger)
|
any
|
setEndpointRegistry(struct endpointRegistry)
|
any
|
setEndpointRootPath(string endpointRootPath)
|
any
|
setFileSystemUtil(any fileSystemUtil)
|
any
|
setLogger(any logger)
|
any
|
setTempDir(any tempDir)
|
any
|
setWirebox(any wirebox)
|
any
|
unpublishEndpointPackage(string endpointName, string directory, [string version=''])
A facade to unpublish a package with an interactive endpoint. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- configServiceserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:consoleserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- FileSystemserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- tempDir@constantsserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
Inspect the endpoints folder and register them.
rootDirectory
A facade to create a user with an interactive endpoint. Keeping this logic here so I can standardize the storage of the APIToken and make it reusable outside of the command.
endpointName
- The name of the endpointusername
- ForgeBox usernamepassword
- The passwordemail
- ForgeBox emailfirstName
- First namelastName
- Last NameReturns the endpoint object.
endpointName
- The name of the endpoint to retrieveA facade to login a user with an interactive endpoint. Keeping this logic here so I can standardize the storage of the APIToken and make it reusable outside of the command.
endpointName
- The name of the endpointusername
- The usernamepassword
- The password to useA facade to publish a package with an interactive endpoint.
endpointName
- The name of the endpoint to publish todirectory
- The directory to publishupload
forceUpload
Look for custom ForgeBox endpoints that are in the config and register themm These will use the same base ForgeBox.cfc endpoint but with custom data
Register a single CFC instance as an endpoint
oEndPoint
- An instance of a CFC implementing IEndPointInspects ID and returns endpoint object, endpointName, and ID (with endpoint stripped).
ID
- The id of the endpointcurrentWorkingDirectory
- Where we are working fromInspects ID and returns name of endpoint. If none is specified, tests for local file or folder. Defaults to forgebox.
ID
- The id of the endpointcurrentWorkingDirectory
- Where we are working fromconfigService
consoleLogger
endpointRegistry
endpointRootPath
fileSystemUtil
logger
tempDir
wirebox
A facade to unpublish a package with an interactive endpoint.
endpointName
- The name of the endpoint to publish todirectory
- The directory to publishversion
- The version to unpublish