Class WidgetInstance

    • Constructor Detail

      • WidgetInstance

        public WidgetInstance​(String widgetContentId)
        Creates a new widget instance for the specified widget.
        Parameters:
        widgetContentId - the content identifier of the widget.
        Since:
        10.2.0
    • Method Detail

      • getId

        public String getId()
        Returns the identifier of this widget instance.
        Returns:
        the identifier of this widget instance.
        Since:
        10.2.0
      • getInterfaceInstanceId

        public String getInterfaceInstanceId()
        Returns the identifier of the service interface instance that corresponds to this widget instance.
        Returns:
        the identifier of the service interface instance.
        Since:
        10.2.0
      • getWidgetContentId

        public String getWidgetContentId()
        Returns the identifier of the content of the widget this instance is of.
        Returns:
        the widget content identifier.
        Since:
        10.2.0
      • findByInterfaceInstanceId

        public static WidgetInstance findByInterfaceInstanceId​(String interfaceInstanceId)
        Returns the widget instance defined with the specified interface instance.
        Parameters:
        interfaceInstanceId - the interface instance identifier.
        Returns:
        the widget or null if it was not found.
        Since:
        10.2.0
      • findByWidgetContentId

        public static List<WidgetInstance> findByWidgetContentId​(String widgetContentId)
        Returns the widget instances that belong to the specified widget content.
        Parameters:
        widgetContentId - the widget content identifier.
        Returns:
        the widget instances, or an empty list if none was found.
        Since:
        10.2.0