Package org.elypia.commandler.newb
Class DefaultHelpController
- java.lang.Object
-
- org.elypia.commandler.newb.DefaultHelpController
-
@StandardController public class DefaultHelpController extends Object
The default help module, this is an optional module one can add to provide some basic help functionality. This is pre-implemented it can only be created with knowledge of Commandler as a framework, which we're not expecting new consumers of the API to immediately be able to follow. You'll need to ensure you have aMessengerimplementation for the following types to use this effectively:CommandModelGroupModelControllerModel
-
-
Field Summary
Fields Modifier and Type Field Description protected org.elypia.commandler.CommandlerExtensioncommandlerExtensionprotected org.elypia.commandler.i18n.CommandlerMessageResolvermessageResolver
-
Constructor Summary
Constructors Constructor Description DefaultHelpController(org.elypia.commandler.CommandlerExtension commandlerExtension, org.elypia.commandler.i18n.CommandlerMessageResolver messageResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elypia.commandler.models.AllGroupsModelgetAllGroups()org.elypia.commandler.models.ControllerModelgetControllerHelp(org.elypia.commandler.metadata.MetaController controller)The default help command for aController, this should use theMetaControlleraround thisControllerto display helpful information to the user.ObjectgetGroup(String query)protected List<org.elypia.commandler.models.PropertyModel>getLocalizedPublicProperties(org.elypia.commandler.metadata.MetaComponent metaComponent)
-
-
-
Method Detail
-
getAllGroups
@StandardCommand(isDefault=true) public org.elypia.commandler.models.AllGroupsModel getAllGroups()
-
getControllerHelp
@StandardCommand public org.elypia.commandler.models.ControllerModel getControllerHelp(@Param org.elypia.commandler.metadata.MetaController controller)The default help command for aController, this should use theMetaControlleraround thisControllerto display helpful information to the user.- Parameters:
controller- TheMetaControllerto get commands for.- Returns:
- The message to send to the end user.
-
getLocalizedPublicProperties
protected List<org.elypia.commandler.models.PropertyModel> getLocalizedPublicProperties(org.elypia.commandler.metadata.MetaComponent metaComponent)
-
-