BBjJettyContextConfiguration::canDelete


Description

In BBj 15.0 and higher, this method can be called to see if a context may be deleted.

Syntax

Return Value

Method

boolean

canDelete()

Parameters

None.

Return Value

true if the context can be deleted otherwise false

Remarks

It is not possible to delete the default BBj or the Enterprise Manager contexts.

Example

rem '=== THIS PROGRAM CHECKS IF A CONTEXT CAN BE DELETED ===

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()
if (root!.canDelete()) then
    print "Context is CAN BE DELETED"
else
    print "Context is CANNOT BE DELETED"
endif

See Also

BBjAPI

BBjJettyContextConfiguration