Class 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 a Messenger implementation for the following types to use this effectively:
    • CommandModel
    • GroupModel
    • ControllerModel
    • Field Detail

      • commandlerExtension

        protected final org.elypia.commandler.CommandlerExtension commandlerExtension
      • messageResolver

        protected final org.elypia.commandler.i18n.CommandlerMessageResolver messageResolver
    • Constructor Detail

      • DefaultHelpController

        @Inject
        public DefaultHelpController​(org.elypia.commandler.CommandlerExtension commandlerExtension,
                                     org.elypia.commandler.i18n.CommandlerMessageResolver messageResolver)
    • Method Detail

      • getAllGroups

        @StandardCommand(isDefault=true)
        public org.elypia.commandler.models.AllGroupsModel getAllGroups()
      • getGroup

        @StandardCommand
        public Object getGroup​(@Param
                               String query)
      • getControllerHelp

        @StandardCommand
        public org.elypia.commandler.models.ControllerModel getControllerHelp​(@Param
                                                                              org.elypia.commandler.metadata.MetaController controller)
        The default help command for a Controller, this should use the MetaController around this Controller to display helpful information to the user.
        Parameters:
        controller - The MetaController to 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)