Class WidgetInstance

    • Constructor Summary

      Constructors 
      Constructor Description
      WidgetInstance​(java.lang.String widgetContentId)
      Creates a new widget instance for the specified widget.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static WidgetInstance findByInterfaceInstanceId​(java.lang.String interfaceInstanceId)
      Returns the widget instance defined with the specified interface instance.
      static java.util.List<WidgetInstance> findByWidgetContentId​(java.lang.String widgetContentId)
      Returns the widget instances that belong to the specified widget content.
      java.lang.String getId()
      Returns the identifier of this widget instance.
      java.lang.String getInterfaceInstanceId()
      Returns the identifier of the service interface instance that corresponds to this widget instance.
      java.lang.String getWidgetContentId()
      Returns the identifier of the content of the widget this instance is of.
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WidgetInstance

        public WidgetInstance​(java.lang.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 java.lang.String getId()
        Returns the identifier of this widget instance.
        Returns:
        the identifier of this widget instance.
        Since:
        10.2.0
      • getInterfaceInstanceId

        public java.lang.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 java.lang.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​(java.lang.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 java.util.List<WidgetInstance> findByWidgetContentId​(java.lang.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