Interface ProfileAdvisor


@NonNullByDefault public interface ProfileAdvisor
Implementors can give advice which Profiles can/should be used for a given link.
Author:
Simon Kaufmann - Initial contribution
  • Method Details

    • getSuggestedProfileTypeUID

      @Nullable ProfileTypeUID getSuggestedProfileTypeUID(Channel channel, @Nullable String itemType)
      Suggest a custom profile for the given channel (and potentially also the itemType). Please note:
      • This will override any default behavior
      • A "profile" configuration on the link will override this suggestion
      Parameters:
      channel - the linked channel
      itemType - the linked itemType (not applicable for trigger channels)
      Returns:
      the profile identifier or null if this advisor does not have any advice
    • getSuggestedProfileTypeUID

      @Nullable ProfileTypeUID getSuggestedProfileTypeUID(ChannelType channelType, @Nullable String itemType)
      Suggest a custom profile for a given ChannelType (and potentially also the itemType). Please note:
      • This will override any default behavior
      • A "profile" configuration on the link will override this suggestion
      Parameters:
      channelType - the ChannelType of the linked channel
      itemType - the linked itemType (not applicable for trigger channels)
      Returns:
      the profile identifier or null if this advisor does not have any advice