Class WidgetInstance
- java.lang.Object
-
- lumis.service.pagepersonalization.bean.WidgetInstance
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HolderWidgetInstance
,HtmlFieldWidgetInstance
public class WidgetInstance extends Object implements Serializable
AWidget
instance.- Since:
- 10.2.0
- Version:
- $Revision: 21206 $ $Date: 2018-04-19 11:44:55 -0300 (Thu, 19 Apr 2018) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WidgetInstance(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(String interfaceInstanceId)
Returns the widget instance defined with the specified interface instance.static List<WidgetInstance>
findByWidgetContentId(String widgetContentId)
Returns the widget instances that belong to the specified widget content.String
getId()
Returns the identifier of this widget instance.String
getInterfaceInstanceId()
Returns the identifier of the service interface instance that corresponds to this widget instance.String
getWidgetContentId()
Returns the identifier of the content of the widget this instance is of.void
remove()
-
-
-
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
-
remove
public void remove() throws PortalException
- Throws:
PortalException
-
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
-
-