Interface IModule

All Superinterfaces:
IndexAugmenter

public interface IModule extends IndexAugmenter

IModule interface.

  • Method Details Link icon

    • getId Link icon

      String getId()

      getId.

      Returns:
      a String object.
    • getName Link icon

      String getName()

      getName.

      Returns:
      a String object.
    • getVersion Link icon

      String getVersion()

      getVersion.

      Returns:
      a String object.
    • getVersionJson Link icon

      String getVersionJson()
      Returns:
      JSON object with version data
    • isLoaded Link icon

      boolean isLoaded()

      isLoaded.

      Returns:
      a boolean.
    • getConfiguration Link icon

      AbstractConfiguration getConfiguration()
      Module configuration object.
      Returns:
      a AbstractConfiguration object.
    • getCmsMenuContributions Link icon

      Map<String,String> getCmsMenuContributions()
      URLs for the CMS menu.
      Returns:
      a Map object.
    • getSidebarContributions Link icon

      List<String> getSidebarContributions()
      URLs to sidebar widgets.
      Returns:
      a List object.
    • getWidgetUsageContributions Link icon

      List<String> getWidgetUsageContributions()
      Contributions widget_usage.xhtml.
      Returns:
      List of HTML component URLs.
    • getAdminContributions Link icon

      List<String> getAdminContributions()
      URLs to widgets containing admin menu links.
      Returns:
      a List object.
    • getLoginNavigationContributions Link icon

      List<String> getLoginNavigationContributions()
      URLs to widgets containing navigation menu links.
      Returns:
      a List object.
    • getWidgets Link icon

      List<String> getWidgets(String type)
      Generic widget URLs than can be used from virtually anywhere. The URLs are configured in the config file.
      Parameters:
      type - a String object.
      Returns:
      a List object.
    • augmentResetRecord Link icon

      boolean augmentResetRecord()
      Any clean-up the module might want to do when resetting the currently loaded record.
      Returns:
      true if successful; false otherwise
    • deleteUserContributions Link icon

      int deleteUserContributions(User user)
      Removes content created by the given user.
      Parameters:
      user - User whose content to delete
      Returns:
      Number of deleted contributions
    • moveUserContributions Link icon

      int moveUserContributions(User fromUser, User toUser)
      Moves all content created by the given user to a different user.
      Parameters:
      fromUser - Source user
      toUser - Destination user
      Returns:
      Number of updated rows
    • getURLBuilder Link icon

      default Optional<IURLBuilder> getURLBuilder()

      getURLBuilder.

      Returns:
      the IURLBuilder for this module, if any. If this module should not alter url building, an empty optional should be returned