Package org.opencms.main
Interface I_CmsShellCommands
public interface I_CmsShellCommands
Provides scriptable access to a class from the CmsShell.
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initShellCmsObject
(CmsObject cms, CmsShell shell) Provides access to the shell CmsObject and the shell itself.void
May be called after shell exit, can e.g.void
May be called before shell startup, can e.g.
-
Method Details
-
initShellCmsObject
Provides access to the shell CmsObject and the shell itself.- Parameters:
cms
- the shell CmsObjectshell
- the CmsShell
-
shellExit
void shellExit()May be called after shell exit, can e.g. be used to output a goodbye message.Please note: This method is not guaranteed to be called. For a shell that has more than one shell command object initialized, only the exit method of one of those will be called.
-
shellStart
void shellStart()May be called before shell startup, can e.g. be used to output a welcome message.Please note: This method is not guaranteed to be called. For a shell that has more than one shell command object initialized, only the start method of one of those will be called.
-