Interface ModuleTypeProvider

    • Method Detail

      • getModuleType

        <T extends ModuleType> @Nullable T getModuleType​(String UID,
                                                         @Nullable Locale locale)
        Gets the localized ModuleType defined by this provider. When the localization is not specified or it is not supported a ModuleType with default locale is returned.
        Type Parameters:
        T - the type of the required object.
        Parameters:
        UID - unique identifier of the ModuleType.
        locale - defines localization of label and description of the ModuleType or null.
        Returns:
        localized module type.
      • getModuleTypes

        <T extends ModuleTypeCollection<T> getModuleTypes​(@Nullable Locale locale)
        Gets the localized ModuleTypes defined by this provider. When localization is not specified or it is not supported the ModuleTypes with default localization is returned.
        Type Parameters:
        T - the type of the required object.
        Parameters:
        locale - defines localization of label and description of the ModuleTypes or null.
        Returns:
        collection of localized ModuleType provided by this provider.